[Serdev] 0.9.0: deadlock inside daemonize()

Dmitry Semyonov dsemyonov at dins.ru
Mon Jun 6 10:00:00 UTC 2005


Hello all.

I linked one of SER modules with external library which uses 
pthread.so. Everything works fine when SER logs to stderr, but if I 
try to enable syslog, SER deadlocks. Here is the backtrace:

#0  0x4006c666 in sigsuspend () from /lib/libc.so.6
#1  0x40edec28 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0#2  0x40ee0ef0 in __pthread_alt_lock () from /lib/libpthread.so.0
#3  0x40edd170 in pthread_mutex_lock () from /lib/libpthread.so.0
#4  0x40123060 in openlog () from /lib/libc.so.6
#5  0x080519c2 in daemonize (name=0xbffff3a5 "/usr/local/ser/sbin/ser") at daemonize.c:202
#6  0x0805d495 in main (argc=2, argv=0xbfffd824) at main.c:1524
#7  0x40059917 in __libc_start_main () from /lib/libc.so.6

The following information might be related to the issue:
http://lists.debian.org/debian-ssh/2005/02/msg00038.html
http://sources.redhat.com/ml/libc-hacker/2004-06/msg00048.html

I use self-compiled 2.4.29 SMP kernel on RedHat-9.
Any ideas how to fix the issue? TIA

-- 
...Bye..Dmitry.




More information about the Serdev mailing list