https://bugs.winehq.org/show_bug.cgi?id=51152
--- Comment #4 from François Gouget fgouget@codeweavers.com --- Here are the results of my tests in case they are still useful. It does crash:
$ gcc -o exception_test exception_test.c $ ./exception_test cs 0x33 ds 0 es 0 fs 0 gs 0 ss 0x2b Segmentation fault $ cat /proc/version Linux version 5.10.0-6-amd64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Debian 5.10.28-1 (2021-04-09)
The same happens on my box (so it's not QEmu's fault): $ cat /proc/version Linux version 4.19.0-16-amd64 (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.181-1 (2021-03-19)