[Bug 240022] sem_wait broken by r350481

[email protected]
Newsgroups gmane.os.freebsd.devel.threading
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240022

            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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

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
_thr_cancel_enter(1).

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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-threads
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.