May 8, 2026
8:46 p.m.
On Fri May 8 20:46:30 2026 +0000, Jacek Caban wrote:
This still uses leaked ESR for unhandled cases. We could ifdef `get_fault_esr` call and initialize esr to 0 on linux. Ah true. I found the [commit](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?i...) which exported ESR, it says it's only valid for SIGSEGV and SIGBUS (and it doesn't look like this has changed since then).
(But also it seems like a bug that an invalid/stale ESR is being passed to SIGTRAP, I'll report that upstream when I get a chance) -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10843#note_139275