[Bug 209233] [patch] pthread_suspend_all_np races with check_suspend
| Newsgroups | gmane.os.freebsd.devel.threading |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209233
Bug ID: 209233
Summary: [patch] pthread_suspend_all_np races with
check_suspend
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Keywords: patch
Severity: Affects Some People
Priority: ---
Component: threads
Assignee: [email protected]
Reporter: [email protected]
Keywords: patch
Created attachment 169926
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=169926&action=edit
Patch to fix race
Currently the suspend all implementation in libthr only sets the NEED_SUSPEND
flag if a thread does not have the SUSPENDED flag set. However, that thread may
be in the process of resuming, and so its NEED_SUSPEND flag should always be
set if we wish a thread to stay suspended, even if already has the SUSPENDED
flag set.
--
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]"