pcbend / GRUTinizer

Let's grutinize!
8 stars 32 forks source link

RestAll button in GUI does not work when cuts are defined. #75

Open belargej opened 8 years ago

belargej commented 8 years ago

It seems that there is a problem encountered in the MakeHistos file near the

TIter it(gates);
while(TObject *itobj = it.Next()){

The stack thread is here:

 *** Break *** segmentation violation

===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================

Thread 8 (Thread 0x7fba82a6c700 (LWP 26543)):
#0  0x00007fba883d3df3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fba82d50059 in ?? () from /usr/lib/libtcl8.5.so.0
#2  0x00007fba8868fb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#3  0x00007fba883da30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7fba81c5c700 (LWP 26544)):
#0  pthread_cond_wait

GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fba88df071c in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#2  0x00007fba8eccfd5c in ThreadsafeQueue<TRawEvent>::Push (this=this
entry=0x2156ae8, obj=...) at /user/belarge/Programs/GRUTinizer/include/ThreadsafeQueue.h:61
#3  0x00007fba8eccecb4 in TDataLoop::Iteration (this=0x2156a70) at libraries/TLoops/TDataLoop.cxx:62
#4  0x00007fba8ecc7a36 in StoppableThread::Loop (this=0x2156a70) at libraries/TLoops/StoppableThread.cxx:184
#5  0x00007fba88df3400 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00007fba8868fb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#7  0x00007fba883da30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7fba8145b700 (LWP 26545)):
#0  0x00007fba8869791d in nanosleep () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fba8ecc8d7b in sleep_for<long, std::ratio<1l> > (__rtime=...) at /usr/include/c++/4.7/thread:277
#2  StoppableThread::status_out_loop () at libraries/TLoops/StoppableThread.cxx:222
#3  0x00007fba88df3400 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007fba8868fb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#5  0x00007fba883da30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fba80c5a700 (LWP 26546)):
#0  pthread_cond_wait

GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fba88df071c in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#2  0x00007fba8eccd21a in ThreadsafeQueue<std::vector<TRawEvent, std::allocator<TRawEvent> > >::Push (this=this
entry=0x21572b0, obj=...) at /user/belarge/Programs/GRUTinizer/include/ThreadsafeQueue.h:61
#3  0x00007fba8eccb9ca in TBuildingLoop::CheckBuildWindow (this=this
entry=0x2157230, event=event
entry=0x7fba80c583f0) at libraries/TLoops/TBuildingLoop.cxx:86
#4  0x00007fba8eccbb31 in TBuildingLoop::Iteration (this=0x2157230) at libraries/TLoops/TBuildingLoop.cxx:70
#5  0x00007fba8ecc7a36 in StoppableThread::Loop (this=0x2157230) at libraries/TLoops/StoppableThread.cxx:184
#6  0x00007fba88df3400 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7  0x00007fba8868fb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#8  0x00007fba883da30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fba80459700 (LWP 26547)):
#0  pthread_cond_wait

GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fba88df071c in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#2  0x00007fba8f7e571c in ThreadsafeQueue<TUnpackedEvent*>::Push (this=0x2157818, obj=0x9234c60) at /user/belarge/Programs/GRUTinizer/include/ThreadsafeQueue.h:61
#3  0x00007fba8ecd12c1 in TUnpackingLoop::Iteration (this=0x2157790) at libraries/TLoops/TUnpackingLoop.cxx:79
#4  0x00007fba8ecc7a36 in StoppableThread::Loop (this=0x2157790) at libraries/TLoops/StoppableThread.cxx:184
#5  0x00007fba88df3400 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00007fba8868fb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#7  0x00007fba883da30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fba7fc58700 (LWP 26548)):
#0  __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136
#1  0x00007fba886923c4 in _L_lock_997 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007fba88692227 in __pthread_mutex_lock (mutex=0x1bb6c60) at pthread_mutex_lock.c:82
#3  0x00007fba8db3beec in TClass::GetClass(char const*, bool, bool) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#4  0x00007fba8db3cb19 in TClass::InheritsFrom(char const*) const () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#5  0x00007fba8db3cbba in TClass::CanSplit() const () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#6  0x00007fba8c9928e4 in int TStreamerInfo::WriteBufferAux<char**>(TBuffer&, char** const&, TStreamerInfo::TCompInfo* const*, int, int, int, int, int) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libRIO.so.5
#7  0x00007fba8c92b8ca in TStreamerInfoActions::VectorLooper::GenericWrite(TBuffer&, void*, void const*, TStreamerInfoActions::TLoopConfiguration const*, TStreamerInfoActions::TConfiguration const*) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libRIO.so.5
#8  0x00007fba8c9a5113 in TBufferFile::ApplySequence(TStreamerInfoActions::TActionSequence const&, void*, void*) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libRIO.so.5
#9  0x00007fba8b044317 in TBranchElement::FillLeavesCollectionMember(TBuffer&) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libTree.so.5
#10 0x00007fba8b03a163 in TBranch::Fill() () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libTree.so.5
#11 0x00007fba8b041d38 in TBranchElement::Fill() () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libTree.so.5
#12 0x00007fba8b041b08 in TBranchElement::Fill() () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libTree.so.5
#13 0x00007fba8b041b08 in TBranchElement::Fill() () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libTree.so.5
#14 0x00007fba8b077633 in TTree::Fill() () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libTree.so.5
#15 0x00007fba8ecd299e in TWriteLoop::WriteEvent (this=0x7fba78000af0, event=0x7fba3c5d8560) at libraries/TLoops/TWriteLoop.cxx:156
#16 0x00007fba8ecd2b6c in TWriteLoop::Iteration (this=0x7fba78000af0) at libraries/TLoops/TWriteLoop.cxx:76
#17 0x00007fba8ecc7a36 in StoppableThread::Loop (this=0x7fba78000af0) at libraries/TLoops/StoppableThread.cxx:184
#18 0x00007fba88df3400 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#19 0x00007fba8868fb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#20 0x00007fba883da30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#21 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fba7f436700 (LWP 26549)):
#0  0x00007fba883a9a7d in __libc_waitpid (pid=26565, stat_loc=<optimized out>, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:41
#1  0x00007fba8833b949 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:149
#2  0x00007fba8833bc80 in __libc_system (line=<optimized out>) at ../sysdeps/posix/system.c:190
#3  0x00007fba8db48e0c in TUnixSystem::StackTrace() () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#4  0x00007fba8db4b6b3 in TUnixSystem::DispatchSignals(ESignals) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#5  <signal handler called>
#6  0x0000000000000000 in ?? ()
#7  0x00007fba7ea2e170 in MakeHistograms (obj=...) at histos/MakeHistos_e15020_Unreacted.cxx:211
#8  0x00007fba8f7e3e77 in TCompiledHistograms::Fill (this=0x7fba700a15c8, detectors=...) at libraries/THistogramming/TCompiledHistograms.cxx:154
#9  0x00007fba8f7e4701 in THistogramLoop::Iteration (this=0x7fba700a1550) at libraries/THistogramming/THistogramLoop.cxx:60
#10 0x00007fba8ecc7a36 in StoppableThread::Loop (this=0x7fba700a1550) at libraries/TLoops/StoppableThread.cxx:184
#11 0x00007fba88df3400 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#12 0x00007fba8868fb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#13 0x00007fba883da30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#14 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fba91896100 (LWP 26535)):
#0  0x00007fba883cf6b3 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fba86a411c2 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fba86a42697 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fba86a428bb in xcb_wait_for_reply () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#4  0x00007fba8929a129 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#5  0x00007fba89295c0d in XSync () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#6  0x00007fba82fd018a in ?? () from /usr/lib/libtk8.5.so.0
#7  0x00007fba82ca3dbe in ?? () from /usr/lib/libtcl8.5.so.0
#8  0x00007fba82ca43d3 in Tcl_EvalObjv () from /usr/lib/libtcl8.5.so.0
#9  0x00007fba83604947 in ?? () from /usr/lib/python2.7/lib-dynload/_tkinter.so
#10 0x00007fba86ca5422 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#11 0x00007fba86ca54cb in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#12 0x00007fba86ca54cb in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#13 0x00007fba86ca54cb in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#14 0x00007fba86ca62e8 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
#15 0x00007fba86ca6422 in PyEval_EvalCode () from /usr/lib/libpython2.7.so.1.0
#16 0x00007fba86cfc9dd in PyRun_StringFlags () from /usr/lib/libpython2.7.so.1.0
#17 0x00007fba8961682a in TPython::Exec(char const*) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libPyROOT.so.5
#18 0x00007fba895dc0fc in G__G__PyROOT_258_0_4(G__value*, char const*, G__param*, int) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libPyROOT.so.5
#19 0x00007fba8cdcc3a7 in Cint::G__ExceptionWrapper(int (*)(G__value*, char const*, G__param*, int), G__value*, char*, G__param*, int) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCint.so.5
#20 0x00007fba8cd125d1 in G__execute_call () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCint.so.5
#21 0x00007fba8cd1299e in G__call_cppfunc () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCint.so.5
#22 0x00007fba8cd84e79 in G__interpret_func () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCint.so.5
#23 0x00007fba8cd3f114 in G__getfunction () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCint.so.5
#24 0x00007fba8cd43262 in G__getitem () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCint.so.5
#25 0x00007fba8cd497da in G__getexpr () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCint.so.5
#26 0x00007fba8cdc395e in G__exec_statement () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCint.so.5
#27 0x00007fba8cd01beb in G__exec_tempfile_core () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCint.so.5
#28 0x00007fba8cd0314e in G__exec_tempfile_fp () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCint.so.5
#29 0x00007fba8cdf307d in G__process_cmd () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCint.so.5
#30 0x00007fba8db1d501 in TCint::ProcessLine(char const*, TInterpreter::EErrorCode*) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#31 0x00007fba8db9ddee in TApplication::ProcessLine(char const*, bool, int*) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#32 0x00007fba8f388424 in TGRUTint::ProcessLine (this=0x1bb6c90, line=0x7fba56d25b10 "TPython::Exec(\"update()\");", sync=false, error=0x0) at libraries/TGRUTint/TGRUTint.cxx:512
#33 0x00007fba8db75a28 in TROOT::ProcessLine(char const*, int*) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#34 0x00007fba8db53b49 in TTimer::Notify() () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#35 0x00007fba8db539e1 in TTimer::CheckTimer(TTime const&) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#36 0x00007fba8db4b5b5 in TUnixSystem::DispatchTimers(bool) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#37 0x00007fba8db4bf71 in TUnixSystem::DispatchOneEvent(bool) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#38 0x00007fba8dba9f56 in TSystem::InnerLoop() () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#39 0x00007fba8dbabb44 in TSystem::Run() () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#40 0x00007fba8db9bcaf in TApplication::Run(bool) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#41 0x00007fba8ace1d67 in TRint::Run(bool) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libRint.so.5
#42 0x0000000000401906 in main (argc=6, argv=0x7fff4fcec7e8) at src/grutinizer.cxx:94
===========================================================

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  0x0000000000000000 in ?? ()
#7  0x00007fba7ea2e170 in MakeHistograms (obj=...) at histos/MakeHistos_e15020_Unreacted.cxx:211
#8  0x00007fba8f7e3e77 in TCompiledHistograms::Fill (this=0x7fba700a15c8, detectors=...) at libraries/THistogramming/TCompiledHistograms.cxx:154
#9  0x00007fba8f7e4701 in THistogramLoop::Iteration (this=0x7fba700a1550) at libraries/THistogramming/THistogramLoop.cxx:60
#10 0x00007fba8ecc7a36 in StoppableThread::Loop (this=0x7fba700a1550) at libraries/TLoops/StoppableThread.cxx:184
#11 0x00007fba88df3400 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#12 0x00007fba8868fb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#13 0x00007fba883da30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#14 0x0000000000000000 in ?? ()

===========================================================

 *** Break *** segmentation violation
terminate called without an active exception
Aborted