Running remoll with a macro fails sometimes. The stack trace is below:
There was a crash.
This is the entire stack trace of all threads:
Thread 3 (Thread 0x2b7f2fba0700 (LWP 46231)):
#0 0x0000003402a0e264 in __lll_lock_wait () from /lib64/libpthread.so.0
#1 0x0000003402a09508 in _L_lock_854 () from /lib64/libpthread.so.0
#2 0x0000003402a093d7 in pthread_mutex_lock () from /lib64/libpthread.so.0
#3 0x000000000045fe9d in G4TemplateAutoLock<pthread_mutex_t, G4int ()(G4Mutex), G4int ()(G4Mutex)>::lock (this=0x2b7f2fb36f80) at /share/apps/geant4/geant4.10.01.p03-install/include/Geant4/G4AutoLock.hh:90
#4 0x000000000045f777 in G4TemplateAutoLock<pthread_mutex_t, G4int ()(G4Mutex), G4int ()(G4Mutex)>::G4TemplateAutoLock (this=0x2b7f2fb36f80, mtx=0x6dc760, l=0x453e28 <pthread_mutex_lock
plt>, u=0x453d58 <pthread_mutex_unlock
plt>) at /share/apps/geant4/geant4.10.01.p03-install/include/Geant4/G4AutoLock.hh:74
#5 0x000000000045f0f8 in G4ImpMutexAutoLock::G4ImpMutexAutoLock (this=0x2b7f2fb36f80, mtx=0x6dc760) at /share/apps/geant4/geant4.10.01.p03-install/include/Geant4/G4AutoLock.hh:113
#6 0x0000000000464b0e in remollEventAction::EndOfEventAction (this=0x2b7f340c9450, aEvent=0x2b7f344dcda0) at /home/cameronc/gitdir/remoll/src/remollEventAction.cc:31
#7 0x00002b7f2782649c in G4EventManager::DoProcessing(G4Event*) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4event.so
#8 0x00002b7f275d516c in G4WorkerRunManager::ProcessOneEvent(int) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4run.so
#9 0x00002b7f275d57d9 in G4WorkerRunManager::DoEventLoop(int, char const*, int) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4run.so
#10 0x00002b7f275cbc5c in G4RunManager::BeamOn(int, char const*, int) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4run.so
#11 0x00002b7f275ddc20 in G4MTRunManagerKernel::StartThread(void*) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4run.so
#12 0x0000003402a079d1 in start_thread () from /lib64/libpthread.so.0
#13 0x00000034022e88fd in clone () from /lib64/libc.so.6
Thread 2 (Thread 0x2b7f30ba1700 (LWP 46232)):
#0 0x00000034022ac65d in waitpid () from /lib64/libc.so.6
#1 0x000000340223e609 in do_system () from /lib64/libc.so.6
#2 0x000000340223e940 in system () from /lib64/libc.so.6
#3 0x00002b7f21eee608 in TUnixSystem::StackTrace() () from /share/apps/root/lib/libCore.so
#4 0x00002b7f21eed483 in TUnixSystem::DispatchSignals(ESignals) () from /share/apps/root/lib/libCore.so
#5
#6 0x00002b7f23061ee0 in TBufferFile::WriteFastArray(int const*, int) () from /share/apps/root/lib/libRIO.so
#7 0x00002b7f24a75d3d in TBranch::FillLeavesImpl(TBuffer&) () from /share/apps/root/lib/libTree.so
#8 0x00002b7f24a7810a in TBranch::Fill() () from /share/apps/root/lib/libTree.so
#9 0x00002b7f24ac7225 in TTree::Fill() () from /share/apps/root/lib/libTree.so
#10 0x0000000000484247 in remollIO::FillTree (this=0x2b7f2e070010) at /home/cameronc/gitdir/remoll/src/remollIO.cc:168
#11 0x0000000000464ce8 in remollEventAction::EndOfEventAction (this=0x2b7f380c93e0, aEvent=0x2b7f384dc670) at /home/cameronc/gitdir/remoll/src/remollEventAction.cc:72
#12 0x00002b7f2782649c in G4EventManager::DoProcessing(G4Event*) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4event.so
#13 0x00002b7f275d516c in G4WorkerRunManager::ProcessOneEvent(int) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4run.so
#14 0x00002b7f275d57d9 in G4WorkerRunManager::DoEventLoop(int, char const*, int) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4run.so
#15 0x00002b7f275cbc5c in G4RunManager::BeamOn(int, char const*, int) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4run.so
#16 0x00002b7f275ddc20 in G4MTRunManagerKernel::StartThread(void*) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4run.so
#17 0x0000003402a079d1 in start_thread () from /lib64/libpthread.so.0
#18 0x00000034022e88fd in clone () from /lib64/libc.so.6
Thread 1 (Thread 0x2b7f2d206be0 (LWP 46205)):
#0 0x0000003402a0b5bc in pthread_cond_wait
GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x00002b7f275d1631 in G4MTRunManager::WaitForEndEventLoopWorkers() () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4run.so
#2 0x00002b7f275d0d7d in G4MTRunManager::RunTermination() () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4run.so
#3 0x00002b7f275cbc65 in G4RunManager::BeamOn(int, char const*, int) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4run.so
#4 0x00002b7f275e0160 in G4RunMessenger::SetNewValue(G4UIcommand*, G4String) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4run.so
#5 0x00002b7f2a9ffebb in G4UIcommand::DoIt(G4String) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4intercoms.so
#6 0x00002b7f2aa0c357 in G4UImanager::ApplyCommand(char const*) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4intercoms.so
#7 0x00002b7f2a9f1827 in G4UIbatch::ExecCommand(G4String const&) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4intercoms.so
#8 0x00002b7f2a9f27ab in G4UIbatch::SessionStart() () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4intercoms.so
#9 0x00002b7f2aa09fd3 in G4UImanager::ExecuteMacroFile(char const*) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4intercoms.so
#10 0x00002b7f2aa05318 in G4UIcontrolMessenger::SetNewValue(G4UIcommand*, G4String) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4intercoms.so
#11 0x00002b7f2a9ffebb in G4UIcommand::DoIt(G4String) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4intercoms.so
#12 0x00002b7f2aa0c357 in G4UImanager::ApplyCommand(char const*) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4intercoms.so
#13 0x0000000000455253 in main (argc=2, argv=0x7fff722f6b48) at /home/cameronc/gitdir/remoll/remoll.cc:138
The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
http://root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
#6 0x00002b7f23061ee0 in TBufferFile::WriteFastArray(int const*, int) () from /share/apps/root/lib/libRIO.so
#7 0x00002b7f24a75d3d in TBranch::FillLeavesImpl(TBuffer&) () from /share/apps/root/lib/libTree.so
#8 0x00002b7f24a7810a in TBranch::Fill() () from /share/apps/root/lib/libTree.so
#9 0x00002b7f24ac7225 in TTree::Fill() () from /share/apps/root/lib/libTree.so
#10 0x0000000000484247 in remollIO::FillTree (this=0x2b7f2e070010) at /home/cameronc/gitdir/remoll/src/remollIO.cc:168
#11 0x0000000000464ce8 in remollEventAction::EndOfEventAction (this=0x2b7f380c93e0, aEvent=0x2b7f384dc670) at /home/cameronc/gitdir/remoll/src/remollEventAction.cc:72
#12 0x00002b7f2782649c in G4EventManager::DoProcessing(G4Event*) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4event.so
#13 0x00002b7f275d516c in G4WorkerRunManager::ProcessOneEvent(int) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4run.so
#14 0x00002b7f275d57d9 in G4WorkerRunManager::DoEventLoop(int, char const*, int) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4run.so
#15 0x00002b7f275cbc5c in G4RunManager::BeamOn(int, char const*, int) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4run.so
#16 0x00002b7f275ddc20 in G4MTRunManagerKernel::StartThread(void*) () from /share/apps/geant4/geant4.10.01.p03-install/lib64/libG4run.so
#17 0x0000003402a079d1 in start_thread () from /lib64/libpthread.so.0
#18 0x00000034022e88fd in clone () from /lib64/libc.so.6
/opt/gridengine/default/spool/compute-0-0/job_scripts/2777: line 6: 46205 Segmentation fault (core dumped) ../../remoll ../../macros/runexample_dump.mac