I am beating my head against a wall with this one...  I am using gcc 3.2.2 and 
glibc 2.3.1

For some reason I get random segfaults, about one a day on a daemon I made..  
Here is an example of the backtrace of the coredump.

ANY ideas at all would be very appreicated.


I have also read about linux threads and pthreads, and that you can 
interchange them..  is there any way to get a different thread library to 
test out?  

Thanks, Josh.

GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) core core.15812
Core was generated by `./listmngr ./workingdir/'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libapr-0.so.0...done.
Loaded symbols for /usr/lib/libapr-0.so.0
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0  0x40044447 in pthread_handle_sigrestart () from /lib/libpthread.so.0
(gdb) backtrace
#0  0x40044447 in pthread_handle_sigrestart () from /lib/libpthread.so.0
#1  <signal handler called>
#2  0x400d8bf9 in sigsuspend () from /lib/libc.so.6
#3  0x40044838 in __pthread_wait_for_restart_signal () from 
/lib/libpthread.so.0
#4  0x40046070 in __pthread_alt_lock () from /lib/libpthread.so.0
#5  0x40043037 in pthread_mutex_lock () from /lib/libpthread.so.0
#6  0x40031082 in apr_thread_mutex_lock (mutex=0x8069cf0) at 
thread_mutex.c:152
#7  0x40033234 in apr_pool_destroy (pool=0x8069cf4) at apr_pools.c:766
#8  0x0805cf73 in scan_list_queue (list_pool=0x40c00530) at 
scan_list_queue.c:249
#9  0x080561c7 in load_list (thread_data=0x40c00568) at load_list.c:78
#10 0x40042160 in pthread_start_thread () from /lib/libpthread.so.0
(gdb) quit


--
[EMAIL PROTECTED] mailing list

Reply via email to