Dear all,
I don’t know with my very simple program crashes.
Could someone explain me the reason?
The program is compiled with the following command:
g++ test.cpp -o test -Iroot-config --incdir
-Lroot-config --libdir
-lGeom -lCore
When I try to run it, I get:
Info in TGeoManager::TGeoManager: Geometry geo, geo created
*** Break *** segmentation violation
===========================================================
There was a crash (#6 0xb6e623bb in SigHandler(ESignals) () from /home/mt/soft/ROOT/root_v5.34.21/lib/libCore.so).
This is the entire stack trace of all threads:
#0 0xb7761424 in __kernel_vsyscall ()
#1 0xb6a38ba3 in __waitpid_nocancel () at …/sysdeps/unix/syscall-template.S:81
#2 0xb69c2d1d in do_system (line=0x81bc220 “/home/mt/soft/ROOT/root_v5.34.21/etc/gdb-backtrace.sh 29607 1>&2”) at …/sysdeps/posix/system.c:148
#3 0xb6e5c4eb in TUnixSystem::Exec(char const*) () from /home/mt/soft/ROOT/root_v5.34.21/lib/libCore.so
#4 0xb6e601c2 in TUnixSystem::StackTrace() () from /home/mt/soft/ROOT/root_v5.34.21/lib/libCore.so
#5 0xb6e62287 in TUnixSystem::DispatchSignals(ESignals) () from /home/mt/soft/ROOT/root_v5.34.21/lib/libCore.so
#6 0xb6e623bb in SigHandler(ESignals) () from /home/mt/soft/ROOT/root_v5.34.21/lib/libCore.so
#7 0xb6e5b3c2 in sighandler(int) () from /home/mt/soft/ROOT/root_v5.34.21/lib/libCore.so
#8
#9 0x081bc160 in ?? ()
#10 0x00000000 in ?? ()
The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
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.
#9 0x081bc160 in ?? ()
#10 0x00000000 in ?? ()
Segmentation fault (core dumped)
Thanks in advance,
Matteo
test.cpp (284 Bytes)