`pause` from `ghc-debug-stub` does not work with -threaded

Reed Mullanix
2025-11-28T15:02:45Z

If you call `pause` in an application that uses `-threaded`, then the process will crash when you attempt to attach a debugger. This happens because functions like `rts_listThreads` must be called on the same thread that called `rts_pause`, but get called within the forked thread for the debug socket.