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
After 2010. syslog() from a multi-threaded
program started hanging.  The stacktrace is:

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

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

Home | Main Index | Thread Index | Old Index