9 Mar
2023
9 Mar
'23
12:55 p.m.
Jinoh Kang (@iamahuman) commented about dlls/ntdll/unix/thread.c:
+/*********************************************************************** + * check_signal_stack + */ +void check_signal_stack(void) +{ + stack_t ss; + + sigaltstack( NULL, &ss ); + if (!(ss.ss_flags & SS_ONSTACK)) + { + struct sigaction sa; + + /* if this happened we probably got a signal from a non-wine thread. + * regardless of the reason, we can't get access to the TEB (or there + * isn't one), so print a message and bail */ + fprintf( stderr, "wine: received signal not on the signal stack; terminating\n" ); `fprintf` is not async-signal-safe.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/2126#note_26517