| | | |------------------|-----------------| |Previous ID | SR-9863 | |Radar | rdar://problem/47791327 | |Original Reporter | gmilos (JIRA User) | |Type | Bug | Attachment: [Download](https://user-images.githubusercontent.com/2727770/164963117-ed493665-e950-462d-bb41-d14cbc6f7578.gz) <details> <summary>Additional Detail from JIRA</summary> | | | |------------------|-----------------| |Votes | 0 | |Component/s | libdispatch | |Labels | Bug | |Assignee | ktopley-apple (JIRA) | |Priority | Medium | md5: e78b5ae6fce74b3d638d2adebfa603b3 </details> **Issue Description:** The attached reproduction shows how libdispatch semaphore crashes if the process is configured to receive a signal (non-default). This is due to unguarded sem_wait: <https://github.com/apple/swift-corelibs-libdispatch/blob/dde58922492859d3664ee0bc296a26dee80ee369/src/shims/lock.c#L206>