mutex crash on ^C
2008-09-07 by Greg Troxel
I ran milter-greylist with -Dv under gdb and hit ^C
^Csmfi_main() returned 0
milter-greylist: Error detected by libpthread: Invalid mutex.
Detected by file "/n0/gdt/NetBSD-4/src/lib/libpthread/pthread_mutex.c", line 334, function "pthread_mutex_unlock".
See pthread(3) for information.
Program received signal SIGABRT, Aborted.
0xbbb0d23f in kill () from /usr/lib/libc.so.12
(gdb) i thr
(gdb) bt
#0 0xbbb0d23f in kill () from /usr/lib/libc.so.12
#1 0xbbbe3dcb in pthread__errorfunc () from /usr/lib/libpthread.so.0
#2 0xbbbe23d3 in pthread_mutex_unlock () from /usr/lib/libpthread.so.0
#3 0x0805f416 in mi_closener ()
#4 0x080612f9 in mi_stop_milters ()
#5 0x080613b9 in mi_signal_thread ()
#6 0xbbbe562d in pthread_join () from /usr/lib/libpthread.so.0
#7 0xbbb2ea24 in swapcontext () from /usr/lib/libc.so.12
I suspect I am in libmilter not compiled with -g, so I'll just send this and hope it's helpful.
^Csmfi_main() returned 0
milter-greylist: Error detected by libpthread: Invalid mutex.
Detected by file "/n0/gdt/NetBSD-4/src/lib/libpthread/pthread_mutex.c", line 334, function "pthread_mutex_unlock".
See pthread(3) for information.
Program received signal SIGABRT, Aborted.
0xbbb0d23f in kill () from /usr/lib/libc.so.12
(gdb) i thr
(gdb) bt
#0 0xbbb0d23f in kill () from /usr/lib/libc.so.12
#1 0xbbbe3dcb in pthread__errorfunc () from /usr/lib/libpthread.so.0
#2 0xbbbe23d3 in pthread_mutex_unlock () from /usr/lib/libpthread.so.0
#3 0x0805f416 in mi_closener ()
#4 0x080612f9 in mi_stop_milters ()
#5 0x080613b9 in mi_signal_thread ()
#6 0xbbbe562d in pthread_join () from /usr/lib/libpthread.so.0
#7 0xbbb2ea24 in swapcontext () from /usr/lib/libc.so.12
I suspect I am in libmilter not compiled with -g, so I'll just send this and hope it's helpful.