Hi Rene,
Maybe so, it works fine after today's update.
Thanks
Kerry
-----Original Message-----
From: Rene Brun [mailto:Rene.Brun_at_cern.ch]
Sent: Thu 6/29/2006 9:30 AM
To: Lee, Kerry T. (JSC-SF)[LMIT]
Cc: roottalk_at_pcroot.cern.ch
Subject: Re: [ROOT] RE: TFile::Close() in CVS head June 28
 
Hi Kerry,
I cannot reproduce this problem. It could be that you took CVS in the middle of two check-ins.
Rene Brun
Lee, Kerry T. (JSC-SF)[LMIT] wrote:
>
> Dear Rooters,
>
> I have several macros that are broken as of yesterday (6/28) morning 
> after updating with the CVS head.  Here is an example with the 
> resulting stack dump.
>
> Thanks
> Kerry
>
> PS. I'm using linux CentOS with gcc 3.4.4
>
> //
> //CreateSimpleTree.C
> //
> //This macro creates a TFile (random.root) which holds the TTree 
> variable T
> //which has the name Random.  The tree has 5 branches with are filled with
> //different distributions created by a random number generator.
> {
>   TFile *f = new TFile("random.root","RECREATE");
>   float g,u,l,p,e;
>   TTree *T = new TTree("Random","Random Number Generated Branches");
>   TRandom2 *ran = new TRandom2();
>   T->Branch("Gaussian",&g,"g/F");
>   T->Branch("Uniform",&u,"u/F");
>   T->Branch("Landau",&l,"l/F");
>   T->Branch("Poisson",&p,"p/F");
>   T->Branch("Exp",&e,"e/F");
>
>   for(int i=0;i<1000000;i++) {
>     g=ran->Gaus();
>     u=ran->Uniform();
>     l=ran->Landau(1,0.001);
>     p=ran->Poisson(5);
>     e=ran->Exp(0.1);
>     T->Fill();
>   }
>   f->Write();
>   f->Close();
> }
> [kerrylee_at_jsc-sf-2148872 ROOTClass]$
> [kerrylee_at_jsc-sf-2148872 ROOTClass]$
> [kerrylee_at_jsc-sf-2148872 ROOTClass]$
> [kerrylee_at_jsc-sf-2148872 ROOTClass]$ root
>   *******************************************
>   *                                         *
>   *        W E L C O M E  to  R O O T       *
>   *                                         *
>   *   Version   5.11/07       1 June 2006   *
>   *                                         *
>   *  You are welcome to visit our Web site  *
>   *          http://root.cern.ch            *
>   *                                         *
>   *******************************************
>
> FreeType Engine v2.1.9 used to render TrueType fonts.
> Compiled on 27 June 2006 for linux with thread support.
>
> CINT/ROOT C/C++ Interpreter version 5.16.13, June 8, 2006
> Type ? for help. Commands must be C++ statements.
> Enclose multiple statements between { }.
> root [0] .x CreateSimpleTree.C
>
>  *** Break *** segmentation violation
>  Generating stack trace...
>  0x023952c0 in TTree::~TTree() + 0xe0 from 
> /home/root/gcc/development/root/lib/libTree.so
>  0x0040cb02 in TObjectTable::Delete(char const*) + 0x28 from 
> /home/root/gcc/development/root/lib/libCore.so
>  0x003f3b7e in TCollection::EmptyGarbageCollection() + 0xde from 
> /home/root/gcc/development/root/lib/libCore.so
>  0x00363de5 in TFile::Close(char const*) + 0x4fd from 
> /home/root/gcc/development/root/lib/libCore.so
>  0x004f857c in <unknown> from 
> /home/root/gcc/development/root/lib/libCore.so
>  0x00aa8bde in G__ExceptionWrapper + 0x42 from 
> /home/root/gcc/development/root/lib/libCint.so
>  0x00b64a6e in G__call_cppfunc + 0x2c0 from 
> /home/root/gcc/development/root/lib/libCint.so
>  0x00b52af0 in G__interpret_func + 0x83a from 
> /home/root/gcc/development/root/lib/libCint.so
>  0x00b3e959 in G__getfunction + 0x15fb from 
> /home/root/gcc/development/root/lib/libCint.so
>  0x00bd296d in G__getstructmem + 0xb53 from 
> /home/root/gcc/development/root/lib/libCint.so
>  0x00bc9d89 in G__getvariable + 0x5d5 from 
> /home/root/gcc/development/root/lib/libCint.so
>  0x00b347e9 in G__getitem + 0x571 from 
> /home/root/gcc/development/root/lib/libCint.so
>  0x00b330ea in G__getexpr + 0x9392 from 
> /home/root/gcc/development/root/lib/libCint.so
>  0x00b7e8e2 in G__exec_function + 0xca from 
> /home/root/gcc/development/root/lib/libCint.so
>  0x00b86cc6 in G__exec_statement + 0x3546 from 
> /home/root/gcc/development/root/lib/libCint.so
>  0x00b182b2 in G__exec_tempfile_core + 0x338 from 
> /home/root/gcc/development/root/lib/libCint.so
>  0x00b184d4 in G__exec_tempfile + 0x22 from 
> /home/root/gcc/development/root/lib/libCint.so
>  0x00b8fab3 in G__process_cmd + 0x4bc7 from 
> /home/root/gcc/development/root/lib/libCint.so
>  0x00414d5e in TCint::ProcessLine(char const*, 
> TInterpreter::EErrorCode*) + 0x13e from 
> /home/root/gcc/development/root/lib/libCore.so
>  0x00414ec6 in TCint::ProcessLineSynch(char const*, 
> TInterpreter::EErrorCode*) + 0x46 from 
> /home/root/gcc/development/root/lib/libCore.so
>  0x0033d3fb in TApplication::ProcessFile(char const*, int*) + 0x6c1 
> from /home/root/gcc/development/root/lib/libCore.so
>  0x0033ccbf in TApplication::ProcessLine(char const*, bool, int*) + 
> 0x5d9 from /home/root/gcc/development/root/lib/libCore.so
>  0x00a0fef6 in TRint::HandleTermInput() + 0x234 from 
> /home/root/gcc/development/root/lib/libRint.so
>  0x00a0e812 in TTermInputHandler::Notify() + 0x24 from 
> /home/root/gcc/development/root/lib/libRint.so
>  0x00a10374 in TTermInputHandler::ReadNotify() + 0x12 from 
> /home/root/gcc/development/root/lib/libRint.so
>  0x004b6194 in TUnixSystem::CheckDescriptors() + 0x148 from 
> /home/root/gcc/development/root/lib/libCore.so
>  0x004b5064 in TUnixSystem::DispatchOneEvent(bool) + 0x188 from 
> /home/root/gcc/development/root/lib/libCore.so
>  0x003c2c76 in TSystem::InnerLoop() + 0x18 from 
> /home/root/gcc/development/root/lib/libCore.so
>  0x003c2c16 in TSystem::Run() + 0x7a from 
> /home/root/gcc/development/root/lib/libCore.so
>  0x0033d566 in TApplication::Run(bool) + 0x32 from 
> /home/root/gcc/development/root/lib/libCore.so
>  0x00a0f8aa in TRint::Run(bool) + 0x40c from 
> /home/root/gcc/development/root/lib/libRint.so
>  0x08048d4b in main + 0x67 from 
> /home/root/gcc/development/root/bin/root.exe
>  0x07045e23 in __libc_start_main + 0xd3 from /lib/tls/libc.so.6
>  0x08048c5d in TApplicationImp::ShowMembers(TMemberInspector&, char*) 
> + 0x31 from /home/root/gcc/development/root/bin/root.exe
>
>
>
Received on Thu Jun 29 2006 - 21:43:49 MEST
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:59 MET