[ROOT] mutex problem

From: Ivan Kronkvist (ivan@physics.umn.edu)
Date: Fri Mar 29 2002 - 21:08:57 MET


My root program reads ASCII filesfrom a given directory, parses the
data, and updates a MySQL database. There are several types of input
files (all similar in format). For most filetypes it works fine, but for a
certain one, I get the following error after the program has finished
inserting the last file into the database:

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

The code executing this filetype is identical to that for other file types
except that the file format is slightly differnt and the database table
is too. Otherwise, all the code is very similar.

A backtrace shows:

#0  __pthread_mutex_lock (mutex=0x0) at mutex.c:82
#1  0x40e72c4b in __flockfile (stream=0x8762590) at lockfile.c:32
#2  0x40f96055 in _IO_getc (fp=0x8762590) 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 0x8066453 in main (argc=1, argv=0xbffff714) at ../src/Main/main.cpp:51

I have no idea what is going on here. Any suggestions?

/Ivan



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