+ /*
+ * Don't block SIGSEGV since we might trigger a segfault if the pthread
+ * struct is corrupt. The end user behavior is that the program will
+ * terminate with a SIGSEGV instead of a SIGABRT which is acceptable. If
+ * the user registers a SIGSEGV handler, then they are responsible for
+ * dealing with any corruption themselves and abort may not work.
+ * rdar://48853131
+ */
+ sigdelset(&act.sa_mask, SIGSEGV);
+ sigdelset(&act.sa_mask, SIGBUS);
+