Root Crash Version 6.26/10


Please read tips for efficient and successful posting and posting code

_ROOT Version: Verison 6.26/10
_Platform:_UBUNTU 22.04
_Compiler: terminal / geant4


Dear Rooters, I am facing problem in storing data in root format when I increase the number of events in the geant4. The crash message is below. Please have a look.

===========================================================
#6  0x00007f7981833eaf in int TStreamerInfo::WriteBufferAux<char**>(TBuffer&, char** const&, TStreamerInfo::TCompInfo* const*, int, int, int, int, int) () from /home/soofy/myPhysics/root/root-install/lib/libRIO.so
#7  0x00007f7981681b84 in TStreamerInfoActions::GenericWriteAction(TBuffer&, void*, TStreamerInfoActions::TConfiguration const*) () from /home/soofy/myPhysics/root/root-install/lib/libRIO.so
#8  0x00007f79815ac6d5 in TBufferFile::WriteClassBuffer(TClass const*, void*) () from /home/soofy/myPhysics/root/root-install/lib/libRIO.so
#9  0x00007f7981834285 in int TStreamerInfo::WriteBufferAux<char**>(TBuffer&, char** const&, TStreamerInfo::TCompInfo* const*, int, int, int, int, int) () from /home/soofy/myPhysics/root/root-install/lib/libRIO.so
#10 0x00007f7981681b84 in TStreamerInfoActions::GenericWriteAction(TBuffer&, void*, TStreamerInfoActions::TConfiguration const*) () from /home/soofy/myPhysics/root/root-install/lib/libRIO.so
#11 0x00007f79815ac6d5 in TBufferFile::WriteClassBuffer(TClass const*, void*) () from /home/soofy/myPhysics/root/root-install/lib/libRIO.so
#12 0x00007f7981bb434f in TStreamerBase::WriteBuffer(TBuffer&, char*) () from /home/soofy/myPhysics/root/root-install/lib/libCore.so
#13 0x00007f798183633c in int TStreamerInfo::WriteBufferAux<char**>(TBuffer&, char** const&, TStreamerInfo::TCompInfo* const*, int, int, int, int, int) () from /home/soofy/myPhysics/root/root-install/lib/libRIO.so
#14 0x00007f7981681b84 in TStreamerInfoActions::GenericWriteAction(TBuffer&, void*, TStreamerInfoActions::TConfiguration const*) () from /home/soofy/myPhysics/root/root-install/lib/libRIO.so
#15 0x00007f79815ac6d5 in TBufferFile::WriteClassBuffer(TClass const*, void*) () from /home/soofy/myPhysics/root/root-install/lib/libRIO.so
#16 0x00007f7981659abd in TKey::TKey(TObject const*, char const*, int, TDirectory*) () from /home/soofy/myPhysics/root/root-install/lib/libRIO.so
#17 0x00007f7981617709 in TFile::CreateKey(TDirectory*, TObject const*, char const*, int) () from /home/soofy/myPhysics/root/root-install/lib/libRIO.so
#18 0x00007f7981608059 in TDirectoryFile::WriteTObject(TObject const*, char const*, char const*, int) () from /home/soofy/myPhysics/root/root-install/lib/libRIO.so
#19 0x00007f7981ab490a in TObject::Write(char const*, int, int) const () from /home/soofy/myPhysics/root/root-install/lib/libCore.so
#20 0x0000555e91c1eb48 in RootAnalysis::saveFiles() ()
#21 0x0000555e91c6af18 in RunAction::EndOfRunAction(G4Run const*) ()
#22 0x00007f79807a2522 in G4RunManager::RunTermination() () from /home/soofy/myPhysics/geant4/geant4-install-seq/lib/libG4run.so
#23 0x00007f79807a043b in G4RunManager::BeamOn(int, char const*, int) () from /home/soofy/myPhysics/geant4/geant4-install-seq/lib/libG4run.so
#24 0x00007f79807beef5 in G4RunMessenger::SetNewValue(G4UIcommand*, G4String) () from /home/soofy/myPhysics/geant4/geant4-install-seq/lib/libG4run.so
#25 0x00007f797dd919d5 in G4UIcommand::DoIt(G4String) () from /home/soofy/myPhysics/geant4/geant4-install-seq/lib/libG4intercoms.so
#26 0x00007f797ddb0b96 in G4UImanager::ApplyCommand(char const*) () from /home/soofy/myPhysics/geant4/geant4-install-seq/lib/libG4intercoms.so
#27 0x00007f797dd7f161 in G4UIbatch::ExecCommand(G4String const&) () from /home/soofy/myPhysics/geant4/geant4-install-seq/lib/libG4intercoms.so
#28 0x00007f797dd811ca in G4UIbatch::SessionStart() () from /home/soofy/myPhysics/geant4/geant4-install-seq/lib/libG4intercoms.so
#29 0x00007f797ddb23a0 in G4UImanager::ExecuteMacroFile(char const*) () from /home/soofy/myPhysics/geant4/geant4-install-seq/lib/libG4intercoms.so
#30 0x00007f797dd9dbc2 in G4UIcontrolMessenger::SetNewValue(G4UIcommand*, G4String) () from /home/soofy/myPhysics/geant4/geant4-install-seq/lib/libG4intercoms.so
#31 0x00007f797dd919d5 in G4UIcommand::DoIt(G4String) () from /home/soofy/myPhysics/geant4/geant4-install-seq/lib/libG4intercoms.so
#32 0x00007f797ddb0b96 in G4UImanager::ApplyCommand(char const*) () from /home/soofy/myPhysics/geant4/geant4-install-seq/lib/libG4intercoms.so
#33 0x0000555e91be863f in main ()
===========================================================

Best regards
Vijay

Was there any other informational or error message before this?

Dear Pcanal, thankyou for the reply. I am attaching a screen shot. Is that Okay. Else I need to run again and wait more than 20 minutes. If the events are less then there is no pb ?

Best Regards
Vijay

What is the code of RootAnalysis::saveFiles()

Hi pcanal,

Sorry for a late response due to time zone. The savefile code write all trees/histograms/ntuples.
e.g.
gammaEnergy1D->Write();
neutronEnergy1D->Write();
energyDeposited1D->Write();

and so on…

I want to mention that for less number of events code runs without any problem.

Best Regards
Vijay

Hi Vijay,

I am still unclear what the problem could be. Please share the complete code and try running the failing example with valgrind:

valgrind --suppressions=$ROOTSYS/etc/valgrind-root.supp  execuable_name arguments

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.