Re: RootInterface.cc problem

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Tue, 23 Nov 2010 11:02:21 +0100


Hi Agnieszka,

I don't think we ever answered, right? Sorry about that.

It's hard to tell what's causing it. We will need a standalone example that we can execute ourselves to debug this crash.

Cheers, Axel.

Agnieszka Priebe wrote on 11/15/2010 04:42 PM:
> Hello,
>
> My root version 5.22, machine: Intel Core, CERN scientific Linux.
>
> My RootInterface.cc contains:
>
> ------------------------------------------------------------------------------------------------------
>
> //_________________________________________________________________________
> RootInterface::RootInterface() {
>
> // Declare and open here the histograms and/or ntuples.
> G4cout << "RootInterface::RootInterface() incarnation" << G4endl;
> static TROOT rootBase("simple","I/O for beam losses simulations");
>
> // root stuff initialyzing
>
> //---->create a new ROOT file
> rootfile = new TFile("out.root","RECREATE","root file with hits in
> magnet coil");
> G4cout << "rootfile created" << G4endl;
> // rootfile->SetCompressionLevel(0);
> //---->create a tree
> tree= new TTree("tree","energy deposits in coil and particles in BLM");
> tree->SetAutoSave(1000000);
> tree->SetBranchStyle(1);
>
> G4cout << "tree created" << G4endl;
>
>
> // new:
> event = new Event();
> G4cout << "event created" << G4endl;
>
>
> //<--------------------------------------------------------------------------------------------------------
> Somewhere here an errror occurs
>
> // TTree::SetBranchStyle(0);
> // BranchName ClassName addobj buffsize splitlevel
> // buffsize might be increased as I have more than 256 MB of RAM
> // split level=0 is memory saving (no division into subbranches)
> // magnet=tree->Branch("MQI","Event",&event);
> tree->Branch("MQI.","Event",&event,128000,99);
>
> G4cout << "RootInterface::RootInterface() incarnation end" << G4endl;
>
> }
>
>
> --------------------------------------------------------------------------------------
>
>
>
>
> While compiling it (gmake) everything is ok, but when I type
> "bin/Linux-g++/MQ" and then "/run/beamOn 1" I obtain an error:
>
>
>
>
> --------------------------------------------------------------------------------------
>
> ### Run 0 start.
> Generating event number 0
> shooting baryon with charge 1
> RootInterface::RootInterface() incarnation
> rootfile created
> tree created
> event created
>
> *** Break *** segmentation violation
> Attaching to program: /proc/6173/exe, process 6173
> [Thread debugging using libthread_db enabled]
> 0x0000003e2b899fc5 in waitpid () from /lib64/libc.so.6
> #1 0x0000003e2b83c331 in do_system () from /lib64/libc.so.6
> #2 0x00002ba14aeef145 in TUnixSystem::Exec (this=0xd7b6a30,
> at core/unix/src/TUnixSystem.cxx:1958
> #3 0x00002ba14aeee4c5 in TUnixSystem::StackTrace (this=0xd7b6a30)
> at core/unix/src/TUnixSystem.cxx:2138
> #4 0x00002ba14aef17ad in TUnixSystem::DispatchSignals (this=0xd7b6a30,
> sig=kSigSegmentationViolation) at core/unix/src/TUnixSystem.cxx:1105
> #5 0x00002ba14aef18d0 in SigHandler (sig=kSigSegmentationViolation)
> at core/unix/src/TUnixSystem.cxx:350
> #6 0x00002ba14aee7420 in sighandler (sig=11)
> at core/unix/src/TUnixSystem.cxx:3374
> #7 <signal handler called>
> #8 0x0000000000000000 in ??
> ()
> <----------------------------------HERE
> #9 0x00002ba14ae9b6ef in TClass::CallShowMembers (this=0x1e3dc6f0,
> obj=0x1e317ed8, insp=..., parent=0x7fff95bece20 "", isATObject=1)
> at core/meta/src/TClass.cxx:1439
> #10 0x00002ba14aea5a92 in TClass::BuildRealData (this=0x1e3dc6f0,
> pointer=0x1e317ed8, isTransient=false) at core/meta/src/TClass.cxx:1309
> #11 0x00002ba14aea71f7 in TBuildRealData::Inspect (this=0x7fff95bed4c0,
> cl=0x1e381810, pname=0x7fff95bed3b0 "",
> mname=0x2ba14f27db96 "fLastParticle", add=0x1e317ed8)
> at core/meta/src/TClass.cxx:479
> #12 0x00002ba14f27c47c in Event::ShowMembers(TMemberInspector&, char*) ()
> from /afs/cern.ch/user/a/apriebe/Ferma/MRoot2/libMRoot.so
> #13 0x00002ba14ae9b6ef in TClass::CallShowMembers (this=0x1e381810,
> obj=0x1e317e10, insp=..., parent=0x7fff95bed3b0 "", isATObject=1)
> at core/meta/src/TClass.cxx:1439
> #14 0x00002ba14aea5a92 in TClass::BuildRealData (this=0x1e381810,
> pointer=0x1e317e10, isTransient=false) at core/meta/src/TClass.cxx:1309
> #15 0x00002ba14dcdbee3 in TTree::BuildStreamerInfo (this=0x1e317c00,
> cl=0x1e381810, pointer=0x1e317e10) at tree/tree/src/TTree.cxx:2046
> #16 0x00002ba14dcdcc6c in TTree::BronchExec (this=0x1e317c00,
> name=0x4a0414 "MQI.", classname=0x4a040e "Event", addr=0x1e30fe48,
> isptrptr=true, bufsize=128000, splitlevel=99)
> at tree/tree/src/TTree.cxx:1880
> #17 0x00002ba14dccfffe in TTree::Bronch (this=0x1e317c00,
> name=0x4a0414 "MQI.", classname=0x4a040e "Event", addr=0x1e30fe48,
> bufsize=128000, splitlevel=99) at tree/tree/src/TTree.cxx:1710
> #18 0x00002ba14dccff4a in TTree::Branch (this=0x1e317c00,
> name=0x4a0414 "MQI.", classname=0x4a040e "Event", addobj=0x1e30fe48,
> bufsize=128000, splitlevel=99) at tree/tree/src/TTree.cxx:1356
> #19 0x00002ba14dcdf9f1 in TTree::BranchImp (this=0x1e317c00,
> branchname=0x4a0414 "MQI.", classname=0x4a040e "Event",
> ptrClass=0x1e381810, addobj=0x1e30fe48, bufsize=128000, splitlevel=99)
> at tree/tree/src/TTree.cxx:1032
> #20 0x0000000000498e23 in RootInterface::RootInterface() ()
> #21 0x0000000000499015 in RootInterface::getInstance() ()
> #22 0x0000000000463f20 in MQEventAction::EndOfEventAction(G4Event const*) ()
> #23 0x00002ba151ccc0a9 in G4EventManager::DoProcessing(G4Event*) ()
> from
> /afs/cern.ch/sw/lcg/external/geant4/9.3.p02/x86_64-slc5-gcc43/lib/libG4event.so
> #24 0x00002ba151a94750 in G4RunManager::DoEventLoop(int, char const*,
> int) ()
> from
> /afs/cern.ch/sw/lcg/external/geant4/9.3.p02/x86_64-slc5-gcc43/lib/libG4run.so
> #25 0x00002ba151a9411c in G4RunManager::BeamOn(int, char const*, int) ()
> from
> /afs/cern.ch/sw/lcg/external/geant4/9.3.p02/x86_64-slc5-gcc43/lib/libG4run.so
> #26 0x00002ba151a98192 in G4RunMessenger::SetNewValue(G4UIcommand*,
> G4String)
> ()
> from
> /afs/cern.ch/sw/lcg/external/geant4/9.3.p02/x86_64-slc5-gcc43/lib/libG4run.so
> #27 0x00002ba154bf5ccc in G4UIcommand::DoIt(G4String) ()
> from
> /afs/cern.ch/sw/lcg/external/geant4/9.3.p02/x86_64-slc5-gcc43/lib/libG4intercoms.so
> #28 0x00002ba154c016d8 in G4UImanager::ApplyCommand(char const*) ()
> from
> /afs/cern.ch/sw/lcg/external/geant4/9.3.p02/x86_64-slc5-gcc43/lib/libG4intercoms.so
> #29 0x00002ba150ba4c46 in G4UIterminal::ExecuteCommand(G4String) ()
> from
> /afs/cern.ch/sw/lcg/external/geant4/9.3.p02/x86_64-slc5-gcc43/lib/libG4interfaces.so
> #30 0x00002ba150ba61cb in G4UIterminal::SessionStart() ()
> from
> /afs/cern.ch/sw/lcg/external/geant4/9.3.p02/x86_64-slc5-gcc43/lib/libG4interfaces.so
> #31 0x000000000040beff in main ()
> A debugging session is active.
>
> ----------------------------------------------------------------------------------------------
>
> Could you please help me solving this problem?
>
> Best regards,
> Agnieszka Priebe
>
>
>
>
Received on Tue Nov 23 2010 - 11:02:26 CET

This archive was generated by hypermail 2.2.0 : Tue Nov 23 2010 - 11:50:01 CET