Message: Segmentation Fault after many events (only in some computers) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Segmentation Fault after many events (only in some computers) 

Forum: Run Management
Date: 22 Jul, 2013
From: Carlos Ayerbe Gayoso <Carlos Ayerbe Gayoso>

Dear experts

first of all, excuse me if this is not the correct place of the post, I was tempted to post in Installation and Configuration, but it is none of both.

Second, I try here, since is a Geant4 issue for me, but I suspect that the error comes from something with ROOT

My simulation (a Shakshlik calorimeter, loosely based in N03 example with many extra structures) runs quite good in my computer using Fedora 17, Geant4-09-05-p01 and ROOT 5.32/04, it compiles quite good, it runs perfectly, and its rootfile output works. The problem comes when I migrate to the farm computer in JLab running Linux_CentOS6.2-x86_64-gcc4.4.6, Geant4 version: 4.9.5.p01 and ROOT version: 5.34.05

The program compiles perfect (the same as my computer), it starts to run good, but if I run with many events (the minimum I tried were 1000 events) the program crash after some events (sorry, I was not able to determine how many) with:

*** Break *** segmentation violation

and the following stack trace

===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0 0x0000003345eaad3e in waitpid () from /lib64/libc.so.6
#1 0x0000003345e3e329 in do_system () from /lib64/libc.so.6
#2 0x00007f69cebbe3c8 in TUnixSystem::StackTrace() () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/root/5.34.05/root/lib/libCore.so.5.34
#3 0x00007f69cebbd243 in TUnixSystem::DispatchSignals(ESignals) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/root/5.34.05/root/lib/libCore.so.5.34
#4 <signal handler called>
#5 0x00007f69ca80b3df in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#6 0x00007f69ca80b57f in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#7 0x00007f69ca80532c in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#8 0x00007f69ca806ef3 in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#9 0x00007f69ca80731e in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#10 0x00007f69ca828b94 in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#11 0x00007f69ca82d243 in QTextCursor::insertBlock(QTextBlockFormat const&, QTextCharFormat const&) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#12 0x00007f69ca7c8ae7 in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#13 0x00007f69ca9ba899 in QTextEdit::append(QString const&) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#14 0x00007f69d38b6847 in G4UIQt::ReceiveG4cout(G4String) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4interfaces.so
#15 0x00007f69cf7a45ee in G4strstreambuf::sync() () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4intercoms.so
#16 0x00000032966914f2 in std::basic_ostream<char, std::char_traits<char> >::flush() () from /usr/lib64/libstdc++.so.6
#17 0x0000000000423929 in ECalAnalysis::StepAceptance(G4Step const*) ()
#18 0x000000000041bc75 in SBSSteppingAction::UserSteppingAction(G4Step const*) ()
#19 0x00007f69d24e0d73 in G4SteppingManager::Stepping() () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4tracking.so
#20 0x00007f69d24e95b4 in G4TrackingManager::ProcessOneTrack(G4Track*) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4tracking.so
#21 0x00007f69d2713d63 in G4EventManager::DoProcessing(G4Event*) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4event.so
#22 0x00007f69d297510f in G4RunManager::DoEventLoop(int, char const*, int) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4run.so
#23 0x00007f69d29735bc in G4RunManager::BeamOn(int, char const*, int) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4run.so
#24 0x00007f69d297d9cf in G4RunMessenger::SetNewValue(G4UIcommand*, G4String) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4run.so
#25 0x00007f69cf797002 in G4UIcommand::DoIt(G4String) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4intercoms.so
#26 0x00007f69cf7a18ff in G4UImanager::ApplyCommand(char const*) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4intercoms.so
#27 0x00007f69d38c275b in G4VBasicShell::ExecuteCommand(G4String) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4interfaces.so
#28 0x00007f69d38c3c0c in G4VBasicShell::ApplyShellCommand(G4String, bool&, bool&) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4interfaces.so
#29 0x00007f69d38bd15a in G4UIQt::CommandEnteredCallback() () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4interfaces.so
#30 0x00007f69ca09cc78 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtCore.so.4
#31 0x00007f69ca96490d in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#32 0x00007f69ca09cc78 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtCore.so.4
#33 0x00007f69ca96c804 in QLineControl::processKeyEvent(QKeyEvent*) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#34 0x00007f69ca965469 in QLineEdit::keyPressEvent(QKeyEvent*) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#35 0x00007f69ca5f6a70 in QWidget::event(QEvent*) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#36 0x00007f69ca964db1 in QLineEdit::event(QEvent*) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#37 0x00007f69ca5adccc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#38 0x00007f69ca5b3eb4 in QApplication::notify(QObject*, QEvent*) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#39 0x00007f69ca089dac in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtCore.so.4
#40 0x00007f69ca63bb7b in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#41 0x00007f69ca63e97c in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#42 0x00007f69ca619298 in QApplication::x11ProcessEvent(_XEvent*) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#43 0x00007f69ca6408d4 in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#44 0x0000003347238f0e in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#45 0x000000334723c938 in ?? () from /lib64/libglib-2.0.so.0
#46 0x000000334723ca3a in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#47 0x00007f69ca0b1773 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtCore.so.4
#48 0x00007f69ca64039e in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#49 0x00007f69ca088c82 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtCore.so.4
#50 0x00007f69ca088ffe in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtCore.so.4
#51 0x00007f69ca08c259 in QCoreApplication::exec() () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtCore.so.4
#52 0x00007f69d38b5bcc in G4UIQt::SessionStart() () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4interfaces.so
#53 0x0000000000411499 in G4UIExecutive::SessionStart() ()
#54 0x0000000000410517 in main ()
===========================================================


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.
===========================================================
#5 0x00007f69ca80b3df in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#6 0x00007f69ca80b57f in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#7 0x00007f69ca80532c in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#8 0x00007f69ca806ef3 in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#9 0x00007f69ca80731e in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#10 0x00007f69ca828b94 in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#11 0x00007f69ca82d243 in QTextCursor::insertBlock(QTextBlockFormat const&, QTextCharFormat const&) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#12 0x00007f69ca7c8ae7 in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#13 0x00007f69ca9ba899 in QTextEdit::append(QString const&) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#14 0x00007f69d38b6847 in G4UIQt::ReceiveG4cout(G4String) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4interfaces.so
#15 0x00007f69cf7a45ee in G4strstreambuf::sync() () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4intercoms.so
#16 0x00000032966914f2 in std::basic_ostream<char, std::char_traits<char> >::flush() () from /usr/lib64/libstdc++.so.6
#17 0x0000000000423929 in ECalAnalysis::StepAceptance(G4Step const*) ()
#18 0x000000000041bc75 in SBSSteppingAction::UserSteppingAction(G4Step const*) ()
#19 0x00007f69d24e0d73 in G4SteppingManager::Stepping() () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4tracking.so
#20 0x00007f69d24e95b4 in G4TrackingManager::ProcessOneTrack(G4Track*) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4tracking.so
#21 0x00007f69d2713d63 in G4EventManager::DoProcessing(G4Event*) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4event.so
#22 0x00007f69d297510f in G4RunManager::DoEventLoop(int, char const*, int) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4run.so
#23 0x00007f69d29735bc in G4RunManager::BeamOn(int, char const*, int) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4run.so
#24 0x00007f69d297d9cf in G4RunMessenger::SetNewValue(G4UIcommand*, G4String) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4run.so
#25 0x00007f69cf797002 in G4UIcommand::DoIt(G4String) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4intercoms.so
#26 0x00007f69cf7a18ff in G4UImanager::ApplyCommand(char const*) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4intercoms.so
#27 0x00007f69d38c275b in G4VBasicShell::ExecuteCommand(G4String) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4interfaces.so
#28 0x00007f69d38c3c0c in G4VBasicShell::ApplyShellCommand(G4String, bool&, bool&) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4interfaces.so
#29 0x00007f69d38bd15a in G4UIQt::CommandEnteredCallback() () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4interfaces.so
#30 0x00007f69ca09cc78 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtCore.so.4
#31 0x00007f69ca96490d in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#32 0x00007f69ca09cc78 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtCore.so.4
#33 0x00007f69ca96c804 in QLineControl::processKeyEvent(QKeyEvent*) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#34 0x00007f69ca965469 in QLineEdit::keyPressEvent(QKeyEvent*) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#35 0x00007f69ca5f6a70 in QWidget::event(QEvent*) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#36 0x00007f69ca964db1 in QLineEdit::event(QEvent*) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#37 0x00007f69ca5adccc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#38 0x00007f69ca5b3eb4 in QApplication::notify(QObject*, QEvent*) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#39 0x00007f69ca089dac in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtCore.so.4
#40 0x00007f69ca63bb7b in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#41 0x00007f69ca63e97c in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#42 0x00007f69ca619298 in QApplication::x11ProcessEvent(_XEvent*) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#43 0x00007f69ca6408d4 in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#44 0x0000003347238f0e in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#45 0x000000334723c938 in ?? () from /lib64/libglib-2.0.so.0
#46 0x000000334723ca3a in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#47 0x00007f69ca0b1773 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtCore.so.4
#48 0x00007f69ca64039e in ?? () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtGui.so.4
#49 0x00007f69ca088c82 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtCore.so.4
#50 0x00007f69ca088ffe in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtCore.so.4
#51 0x00007f69ca08c259 in QCoreApplication::exec() () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/qt/4.8.1/lib/libQtCore.so.4
#52 0x00007f69d38b5bcc in G4UIQt::SessionStart() () from /site/12gev_phys/Linux_CentOS6.2-x86_64-gcc4.4.6/geant4/4.9.5.p01/lib64/libG4interfaces.so
#53 0x0000000000411499 in G4UIExecutive::SessionStart() ()
#54 0x0000000000410517 in main ()
===========================================================


Segmentation fault


As you can see, this is a Root message, but its not clear for me why it works in mine and not in the farm.
Besides, I'm running it without any visualization and forcing it writing /vis/disable

It works for a few events, but great number of events, it crash. I could blame to a memory problem, but again I run 10k events in my computer and works, in the farm crash.

Any tip, suggestion or idea?

Thank you very much

Carlos Ayerbe

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Idea: Re: Segmentation Fault after many events (only in some computers)   (Carlos Ayerbe Gayoso - 06 Aug, 2013)
 Add Message Add Message
to: "Segmentation Fault after many events (only in some computers)"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]