Repository navigation
Fix a hang on Darwin after SIGTSTP in isCFICheckTrap - #133270
Conversation
SIGTSTP in isCFICheckTrapSIGTSTP in isCFICheckTrap
|
Workflow [PR], commit [d33580f] Summary: ✅
AI ReviewSummaryPR #133270 fixes the Darwin hang by checking the signal before Missing context / blind spots
Final VerdictStatus: ✅ Approve |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units7 translation units recompiled, 6 s compile time in total, 7 of them have a recent master baseline. |
isCFICheckTrapread the signal context before checking the signal. The signal listener thread gets the context as a pointer into the stack of the signaled thread, and forSIGTSTPthe handler has already returned, so the pointer dangles. On macOSuc_mcontextis a pointer, so reading the program counter through it faulted in the listener thread. The listener then waited for itself to print the fatal error, so the process hung for about 5 minutes. On Linux the read was of stale but mapped memory and did not fault.With the binary from the failing CI run, 16 of 16 parallel loops of the
05042_crash_handler_without_global_contextsteps hung; with this change, 640 of 640 iterations exited.Closes: #133246
Caused by: #132527
Changelog category (leave one):
Workflow [PR]
Sync PR [sync-upstream/pr/133270]
Version info
26.12.1.95-master(included in26.12and later)