mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 16:00:44 +02:00
When multiple threads simultaneously SIGBUS on the same address, one of them will perform the backpatching while the other will detect the backpatched instruction sequence and hence report the SIGBUS as "handled". This typo broke the instruction detection logic: The second thread would assume the source of the SIGBUS was unrelated to TSO emulation and hence report the signal as unhandled (generally triggering program abortion). In practice, this problem did not manifest as FEX does not currently share CodeBuffers between threads.