[ROOT] libpthread problem??

From: Christian.Doerr@mpi-hd.mpg.de
Date: Tue Jun 11 2002 - 15:50:39 MEST


Hello roottalk,

I have a problem running my geant4 application (which is linked with some
root classes) on Red Hat 7.2 compiling either with g++ 2.96 or (same
problem) with egcs++ 1.1.2 . My program produces a seg fault, and using
gdb to learn more about it tells me:

--------------------------------------------------------------------------
....
Reading symbols from /lib/i686/libpthread.so.0...done.

warning: Unable to set global thread event mask: generic error
[New Thread 1024 (LWP 23334)]
Error while reading shared library symbols:
Cannot enable thread event reporting for Thread 1024 (LWP 23334): generic
error
Reading symbols from /lib/i686/libm.so.6...done.
Loaded symbols for /lib/i686/libm.so.6
Reading symbols from /usr/lib/libstdc++-libc6.2-2.so.3...done.
Loaded symbols for /usr/lib/libstdc++-libc6.2-2.so.3
Reading symbols from /lib/i686/libc.so.6...done.
Loaded symbols for /lib/i686/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /lib/libnss_nisplus.so.2...done.
Loaded symbols for /lib/libnss_nisplus.so.2
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libnss_nis.so.2...done.
Loaded symbols for /lib/libnss_nis.so.2
#0  pthread_sighandler (signo=11, ctx=
      {gs = 0, __gsh = 0, fs = 0, __fsh = 0, es = 43, __esh = 0, ds = 43,
__dsh = 0, edi = 139011744, esi = 39, ebp = 3212837932, esp = 3212837908,
ebx = 1086219768, edx = 11, ecx = 51696, eax = 0, trapno = 13, err = 0,
eip = 1086175353, cs = 35, __csh = 0, eflags = 66118, esp_at_signal =
3212837908, ss = 43, __ssh = 0, fpstate = 0x0, oldmask = 2147483648, cr2 =
0}) at signals.c:87
87      signals.c: No such file or directory.
        in signals.c

------------------------------------------------------------------------------------

As geant4 doesn't use threads, I think hthe problem must originate in
some interaction of ROOT with either compiler (btw, when using SuSE 7.3
with g++-2.95.3 , the problem disappears).

In my application I'm just doing some simple things like filling histos
and writing event trees, so could removing the usage of libpthread as
described in

http://root.cern.ch/root/roottalk/roottalk02/1907.html

be the solution? Is there any known problem with libpthread.so under g++
2.96 or egcs++ 1.1.2 ??? I'm using root-v3.03.05.

Thanks a lot for any advice!!

Cheers,
 Christian


-----------------------------------------------------------
Christian Doerr
Max-Planck-Institut fuer Kernphysik, Heidelberg
Bothe-Labor, room 232                phone: +49-6221-516-259
email: C.Doerr@mpi-hd.mpg.de         www.christiandoerr.de
-----------------------------------------------------------

     "Obi Wan taught you well, young Skywalker."



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:56 MET