[Bug 240022] sem_wait broken by r350481

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Aug 21 18:25:39 UTC 2019


            Bug ID: 240022
           Summary: sem_wait broken by r350481
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: threads
          Assignee: threads at FreeBSD.org
          Reporter: andrew at tao11.riddles.org.uk
                CC: kib at FreeBSD.org, tmunro at FreeBSD.org

r350481 confuses _pthread_cancel_enter and _thr_cancel_enter, which take
different parameters (int vs. struct pthread *). The result is that sem_wait,
which calls _pthread_cancel_enter(1), segfaults because it ends up in

This breaks postgresql (easily reproduced by running regression tests) though
it ought to be easily testable otherwise. (Originally reported to me by tmunro)

Affects current and 12-stable.

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-threads mailing list