wails/v2/internal
Lea Anthony 7ee2b2d856
fix(v2/linux): fix crash on panic in JS-bound Go methods (#4855)
* fix(v2/linux): fix crash on panic in JS-bound Go methods

WebKit2GTK installs signal handlers after gtk_main() starts, overriding
our SA_ONSTACK fix. This causes Go panics (e.g., nil pointer dereference)
in JS-bound methods to crash with 'non-Go code set up signal handler
without SA_ONSTACK flag'.

Fix by deferring signal handler installation via g_idle_add() to run
after GTK main loop starts, ensuring we fix handlers AFTER WebKit
has installed its own.

Fixes #3965

* docs: add changelog entry for Linux signal handler fix

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 12:38:58 +11:00
..
app fix(logger): respect log level from environment variable in dev mode (#4083) 2025-05-05 19:09:34 +10:00
binding Fix generated enums ordering (#4664) 2025-12-10 18:20:22 +11:00
colour feature/turn off color terminal output of dev command (#1947) 2022-10-20 21:11:20 +11:00
frontend fix(v2/linux): fix crash on panic in JS-bound Go methods (#4855) 2026-01-25 12:38:58 +11:00
fs [chore] lint fixes 2023-11-12 12:30:49 +11:00
github Update dependencies. Fix buildvcs compile error 2025-02-08 12:56:06 +11:00
go-common-file-dialog fix windows CI (#4378) 2025-07-01 17:36:12 +10:00
gomod [chore] lint fixes 2023-11-12 12:30:49 +11:00
goversion update go minimum version (#3285) 2024-03-24 17:00:11 +11:00
logger [chore] lint fixes 2023-11-12 12:30:49 +11:00
menumanager chore: fix some comments (#3932) 2024-12-06 14:35:46 +11:00
platform Prevent DLL hijacking by setting default DLL directories on initialization (#4207) 2025-09-24 15:44:58 +10:00
process [chore] lint fixes 2023-11-12 12:30:49 +11:00
project Add support for build tags to the wails project schema and update pro… (#4439) 2025-07-25 20:38:40 +10:00
s fix(v2): Replace ioutl.Discard with io.Discard (#4877) 2026-01-20 11:20:02 +11:00
shell [chore] lint fixes 2023-11-12 12:30:49 +11:00
signal [chore] lint fixes 2023-11-12 12:30:49 +11:00
staticanalysis Bump the go_modules group across 2 directories with 1 update (#3408) 2024-11-17 20:55:06 +11:00
system Added initial Windows 11-supporting branding 2025-01-21 21:15:24 +02:00
typescriptify Fix generated enums ordering (#4664) 2025-12-10 18:20:22 +11:00
webview2runtime [chore] lint fixes 2023-11-12 12:30:49 +11:00
wv2installer [chore] Use webview2 package (#2687) 2023-06-10 17:04:31 +10:00