threads/75273: FBSD 5.3 libpthread (KSE) bug

Enoch W. ixew at
Sun Dec 19 09:30:42 PST 2004

>Number:         75273
>Category:       threads
>Synopsis:       FBSD 5.3  libpthread (KSE) bug
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-threads
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 19 17:30:26 GMT 2004
>Originator:     Enoch W.
>Release:        FreeBSD 5.3-STABLE
__FreeBSD_version 503101
sigsuspend() bug

Thread aborts at /usr/src/lib/libpthread/thread/thr_sigsuspend.c line 77 with "oldsigmask is not cleared" when the main thread tries to pthread_cancel() it.

FreeBSD 4.x (libc_r) does not have this problem.

The easy solution :-) remove:
THR_ASSERT(curthread->oldsigmask == NULL, "oldsigmask is not cleared");


More information about the freebsd-threads mailing list