RESOLVED FIXED 238694
[Cocoa] semaphore_timedwait() can return KERN_ABORTED
https://bugs.webkit.org/show_bug.cgi?id=238694
Summary [Cocoa] semaphore_timedwait() can return KERN_ABORTED
Myles C. Maxfield
Reported 2022-04-01 20:38:18 PDT
[Cocoa] semaphore_timedwait() can return KERN_ABORTED
Attachments
Patch (1.66 KB, patch)
2022-04-01 20:38 PDT, Myles C. Maxfield
no flags
Myles C. Maxfield
Comment 1 2022-04-01 20:38:58 PDT
Geoffrey Garen
Comment 2 2022-04-02 08:43:27 PDT
Comment on attachment 456436 [details] Patch Do you know how this happens? According to documentation, KERN_ABORTED means somebody manually terminated the thread or something like that. That's a bit surprising. Not sure how it would happen. Might be some other bug?
Myles C. Maxfield
Comment 3 2022-04-02 09:04:09 PDT
I only saw it happen while attached to the process in Xcode. I’m not sure exactly what’s happening but it might be due to the debugger.
EWS
Comment 4 2022-04-02 09:37:50 PDT
Committed r292267 (249165@main): <https://commits.webkit.org/249165@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 456436 [details].
Radar WebKit Bug Importer
Comment 5 2022-04-02 09:38:15 PDT
Chris Dumez
Comment 6 2022-04-02 10:06:55 PDT
(In reply to Geoffrey Garen from comment #2) > Comment on attachment 456436 [details] > Patch > > Do you know how this happens? > > According to documentation, KERN_ABORTED means somebody manually terminated > the thread or something like that. That's a bit surprising. Not sure how it > would happen. Might be some other bug? I think this can get called if the remote process (holding the other end of the IPC semaphore) is crashing, no?
Geoffrey Garen
Comment 7 2022-04-02 13:25:45 PDT
> I think this can get called if the remote process (holding the other end of > the IPC semaphore) is crashing, no? KERN_TERMINATED means the semaphore was destroyed (which I think is what happens when its creator crashes). If Xcode interruption triggers KERN_ABORTED on our semaphore, I wonder if execution continues correctly after that?
Note You need to log in before you can comment on or make changes to this bug.