NetBSD-Bugs archive

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

kern/37791: _lwp_park() bug

>Number:         37791
>Category:       kern
>Synopsis:       _lwp_park() doesn't honour its timeout but returns immediately
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 18 01:10:00 +0000 2008
>Originator:     Reinoud Zandijk
>Release:        NetBSD 4.99.49


System: NetBSD 4.99.49 NetBSD 4.99.49 (GENERIC) #1: 
Fri Jan 18 00:02:06 CET 2008
Architecture: i386
Machine: i386

When calling pthread_cond_timedwait(), it doesn't honour its abstime but 
immediately returns. Even specifying values in seconds does not make a 
difference; it just returns.

pthread_cond_wait() eventually dispatches to _lwp_park() that obviously 
returns immediately.

try a pthread_cond_timedwait() with a timeout of few seconds and whatever 
you pass, it returns immediately.



Home | Main Index | Thread Index | Old Index