[ROOT] pthread_mutex_lock SIGSEGV

From: Ivan Kronkvist (ivan@physics.umn.edu)
Date: Wed Apr 24 2002 - 00:05:59 MEST


Hi,

I have a program which is ROOT based and which reads text files, parses
data into classes and inserts it into a MySQL database. There are a few
different types of files, each with a similar format. My program wors fine
for all classes but one, where I get the SIGSEGV
pthread_mutex_lock (mutex=0x0) at the end of the execution. Actually,
my code finishes inserting all the data into the database and returns to
ROOT which then seems to generate the SIGSEGV. I'm using RedHat 6.2
ROOT version 3.02_07.
Running in gdb I get the following error message and backtrace:

Program received signal SIGSEGV, Segmentation fault.
__pthread_mutex_lock (mutex=0x0) at mutex.c:82
82      mutex.c: No such file or directory.
Current language:  auto; currently c
#0  __pthread_mutex_lock (mutex=0x0) at mutex.c:82
#1  0x40e72c4b in __flockfile (stream=0x8781ef0) at lockfile.c:32
#2  0x40f96055 in _IO_getc (fp=0x8781ef0) at getc.c:38
#3  0x4048440a in G__fgetc () from /usr/local/root/pro/lib/libCint.so
#4  0x404cd67a in G__exec_statement () from /usr/local/root/pro/lib/libCint.so
#5  0x404654bb in G__exec_tempfile () from /usr/local/root/pro/lib/libCint.so
#6  0x404d88fe in G__process_cmd () from /usr/local/root/pro/lib/libCint.so
#7  0x4013d1be in TCint::ProcessLine () from /usr/local/root/pro/lib/libCore.so
#8  0x400d9143 in TApplication::ProcessLine ()
   from /usr/local/root/pro/lib/libCore.so
#9  0x40b18583 in TRint::HandleTermInput ()
   from /usr/local/root/pro/lib/libRint.so
#10 0x40b17848 in TTermInputHandler::Notify ()
   from /usr/local/root/pro/lib/libRint.so
#11 0x40b1870f in TTermInputHandler::ReadNotify ()
   from /usr/local/root/pro/lib/libRint.so
#12 0x40170ecb in TUnixSystem::CheckDescriptors ()
   from /usr/local/root/pro/lib/libCore.so
#13 0x40170643 in TUnixSystem::DispatchOneEvent ()
   from /usr/local/root/pro/lib/libCore.so
#14 0x40118960 in TSystem::InnerLoop () from /usr/local/root/pro/lib/libCore.so
#15 0x401188e3 in TSystem::Run () from /usr/local/root/pro/lib/libCore.so
#16 0x400d9a39 in TApplication::Run () from /usr/local/root/pro/lib/libCore.so
#17 0x40b180b7 in TRint::Run () from /usr/local/root/pro/lib/libRint.so
#18 0x8068903 in main (argc=1, argv=0xbffff714) at ../src/Main/main.cpp:51

I did a diff between a working file insertion class and the one that crashes,
and the only differences are in the class names. (I even renamed the class once
to no avail). I've been trying to find information on the web about this error,
but nothing that is very useful. I need help with this.

Regards,
Ivan Kronkvist



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