mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 02:11:36 -04:00
7ef25d50ff
SIGPROF can land on a thread that is still being created. On macOS arm64 pthread_self() there hits a pointer-authentication trap (EXC_BREAKPOINT in on_prof), which killed debug-tools builds at boot when a second instance started lobby threads. The handler now compares the interrupted stack pointer with the emulation thread's stack range; Linux keeps pthread_equal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>