pcbend / GRUTinizer

Let's grutinize!
8 stars 32 forks source link

Crash while Histogramming #83

Open belargej opened 8 years ago

belargej commented 8 years ago

I got an error that I think may be root related. I was histogramming over 10 already sorted root files. I had several windows open, and it crashed with the following :


GRizer [0] Warning in <TSpectrum::SearchHighRes>: Peak buffer full
Error in <RootX11ErrorHandler>: BadWindow (invalid Window parameter) (TGMenuBar XID: 5243690, XREQ: 61)
TGMenuBar:      5243690

 *** Break *** segmentation violation

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

Thread 5 (Thread 0x7f737a364700 (LWP 19715)):
#0  0x00007f7380100df3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f737a648059 in ?? () from /usr/lib/libtcl8.5.so.0
#2  0x00007f73803bcb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#3  0x00007f738010730d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f7378d3b700 (LWP 19718)):
#0  pthread_cond_wait

GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f7380b1d71c in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#2  0x00007f7387512a2c in ThreadsafeQueue<TUnpackedEvent*>::Push (this=0x2d1e738, obj=0x7f7331b8c2e0) at /user/belarge/Programs/GRUTinizer/include/ThreadsafeQueue.h:61
#3  0x00007f73869fa645 in TChainLoop::Iteration (this=0x34f0db0) at libraries/TLoops/TChainLoop.cxx:103
#4  0x00007f73869f4a96 in StoppableThread::Loop (this=0x34f0db0) at libraries/TLoops/StoppableThread.cxx:186
#5  0x00007f7380b20400 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00007f73803bcb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#7  0x00007f738010730d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f737853a700 (LWP 19719)):
#0  0x00007f73803c491d in nanosleep () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f73869f5deb 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:226
#3  0x00007f7380b20400 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007f73803bcb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#5  0x00007f738010730d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f7377d39700 (LWP 19720)):
#0  0x00007f7380160cb1 in __memcmp_sse4_1 () at ../sysdeps/x86_64/multiarch/memcmp-sse4.S:52
#1  0x00007f738918278b in compare (__n=<optimized out>, __s2=0x7f7322ffda08 "GRETINA_Z_OFFSET", __s1=<optimized out>) at /usr/include/c++/4.7/bits/char_traits.h:257
#2  compare (__str=..., this=0x18951c0) at /usr/include/c++/4.7/bits/basic_string.h:2228
#3  operator< <char, std::char_traits<char>, std::allocator<char> > (__rhs=..., __lhs=...) at /usr/include/c++/4.7/bits/basic_string.h:2568
#4  operator() (__y=..., __x=..., this=<optimized out>) at /usr/include/c++/4.7/bits/stl_function.h:237
#5  _M_lower_bound (__k=..., __y=<optimized out>, __x=0x18951a0, this=<optimized out>) at /usr/include/c++/4.7/bits/stl_tree.h:1114
#6  find (__k=..., this=0x7f73893eb540) at /usr/include/c++/4.7/bits/stl_tree.h:1557
#7  count (__x=..., this=<optimized out>) at /usr/include/c++/4.7/bits/stl_map.h:776
#8  GValue::Value (name=...) at libraries/GROOT/GValue.cxx:35
#9  0x00007f7388ab3070 in TGretinaHit::GetFirstIntPosition (this=0x7f7377d37220) at libraries/TDetSystems/TGretina/TGretinaHit.cxx:312
#10 0x00007f737733228f in GetPosition (this=0x7f7377d37220) at /user/belarge/Programs/GRUTinizer/include/TGretinaHit.h:109
#11 GetDoppler (vec=0x7f7377d36b60, beta=0.39000000000000001, this=0x7f7377d37220) at /user/belarge/Programs/GRUTinizer/include/TGretinaHit.h:76
#12 MakeHistograms (obj=...) at histos/MakeHistos_e15020.cxx:456
#13 0x00007f7387511177 in TCompiledHistograms::Fill (this=0x2d1e5c8, detectors=...) at libraries/THistogramming/TCompiledHistograms.cxx:154
#14 0x00007f7387511a01 in THistogramLoop::Iteration (this=0x2d1e550) at libraries/THistogramming/THistogramLoop.cxx:60
#15 0x00007f73869f4a96 in StoppableThread::Loop (this=0x2d1e550) at libraries/TLoops/StoppableThread.cxx:186
#16 0x00007f7380b20400 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#17 0x00007f73803bcb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#18 0x00007f738010730d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#19 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f73895d5100 (LWP 19707)):
#0  0x00007f73800d6a7d in __libc_waitpid (pid=20294, stat_loc=<optimized out>, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:41
#1  0x00007f7380068949 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:149
#2  0x00007f7380068c80 in __libc_system (line=<optimized out>) at ../sysdeps/posix/system.c:190
#3  0x00007f7385875e0c in TUnixSystem::StackTrace() () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#4  0x00007f73858786b3 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  0x000000000154d650 in ?? ()
#7  0x00007f7386214713 in TGWindow::Print(char const*) const () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libGui.so.5
#8  0x00007f73862291db in TGCompositeFrame::Print(char const*) const () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libGui.so.5
#9  0x00007f737d0e5e45 in RootX11ErrorHandler(_XDisplay*, XErrorEvent*) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libGX11.so
#10 0x00007f7380fc92ba in _XError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#11 0x00007f7380fc65e1 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#12 0x00007f7380fc6625 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#13 0x00007f7380fc6eb5 in _XEventsQueued () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#14 0x00007f7380fb85cd in XPending () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#15 0x00007f73861ca552 in TGClient::ProcessOneEvent() () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libGui.so.5
#16 0x00007f73861ca61d in TGClient::HandleInput() () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libGui.so.5
#17 0x00007f7385878d68 in TUnixSystem::DispatchOneEvent(bool) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#18 0x00007f73858d6f56 in TSystem::InnerLoop() () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#19 0x00007f73858d8b44 in TSystem::Run() () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#20 0x00007f73858c8caf in TApplication::Run(bool) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#21 0x00007f7382a0ed67 in TRint::Run(bool) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libRint.so.5
#22 0x0000000000401906 in main (argc=17, argv=0x7ffe8df55e18) 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  0x000000000154d650 in ?? ()
#7  0x00007f7386214713 in TGWindow::Print(char const*) const () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libGui.so.5
#8  0x00007f73862291db in TGCompositeFrame::Print(char const*) const () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libGui.so.5
#9  0x00007f737d0e5e45 in RootX11ErrorHandler(_XDisplay*, XErrorEvent*) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libGX11.so
#10 0x00007f7380fc92ba in _XError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#11 0x00007f7380fc65e1 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#12 0x00007f7380fc6625 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#13 0x00007f7380fc6eb5 in _XEventsQueued () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#14 0x00007f7380fb85cd in XPending () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#15 0x00007f73861ca552 in TGClient::ProcessOneEvent() () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libGui.so.5
#16 0x00007f73861ca61d in TGClient::HandleInput() () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libGui.so.5
#17 0x00007f7385878d68 in TUnixSystem::DispatchOneEvent(bool) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#18 0x00007f73858d6f56 in TSystem::InnerLoop() () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#19 0x00007f73858d8b44 in TSystem::Run() () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#20 0x00007f73858c8caf in TApplication::Run(bool) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libCore.so.5
#21 0x00007f7382a0ed67 in TRint::Run(bool) () from /mnt/misc/sw/x86_64/Debian/7/root/gnu/5.34.32/lib/libRint.so.5
#22 0x0000000000401906 in main (argc=17, argv=0x7ffe8df55e18) at src/grutinizer.cxx:94
===========================================================

 *** Break *** segmentation violation
Segmentation fault

Note that the TSpectrum thing happened about 2 minutes before the crash, I just thought it may be relevant.