NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/44248: syslog() from a multithreaded program hangs



>Number:         44248
>Category:       lib
>Synopsis:       syslog() from a multithreaded program hangs
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 17 19:10:06 +0000 2010
>Originator:     Antti Kantee
>Release:        
>Organization:
>Environment:
>Description:
After 2010.12.16.15.29.28 syslog() from a multi-threaded
program started hanging.  The stacktrace is:

(gdb) bt
#0  0xbbb35e87 in ___lwp_park50 () from /usr/lib/libc.so.12
#1  0xbbbe3d89 in pthread__park () from /usr/lib/libpthread.so.1
#2  0xbbbe0bc1 in pthread_rwlockattr_destroy () from /usr/lib/libpthread.so.1
#3  0xbbb599f0 in __tzset50 () from /usr/lib/libc.so.12
#4  0xbbb55f0c in strftime () from /usr/lib/libc.so.12
#5  0xbbb9cb0c in vsyslogp_r () from /usr/lib/libc.so.12
#6  0xbbb9d398 in vsyslog_r () from /usr/lib/libc.so.12
#7  0xbbb9d450 in vsyslog () from /usr/lib/libc.so.12
#8  0xbbb9d5f1 in syslog () from /usr/lib/libc.so.12
#9  0x080486b8 in main () at testi.c:7

>How-To-Repeat:
Look at test run output, observe all LFS tests hanging.  Confirm
problem with a very simple program which just calls
syslog() from main().

I'll commit a test to tests/lib/libc/gen/t_syslog_pthread
>Fix:



Home | Main Index | Thread Index | Old Index