https://bugs.winehq.org/show_bug.cgi?id=53032
--- Comment #15 from Artem S. Tashkinov aros@gmx.com --- The crash is in ntdll.dll.so but that's a huge library:
$ ls -la ntdll*so* -rwxr-xr-x. 1 root root 926240 May 23 09:42 ntdll.dll.so.o2 -rwxr-xr-x. 1 root root 950816 May 23 09:46 ntdll.dll.so.pentiumm
~25KB of extra binary code.
Here's another tidbit: even there's no crash (i.e. GCC 12: -O2 -m32, GCC 11.3: -O2 -march=pentium-m -m32), there's still something wrong when exiting Wine applications:
00b0:err:virtual:virtual_setup_exception nested exception on signal stack in thread 00b0 addr 0xf7cc2e9b stack 0x7ff7f0e0
I feel like there's a coding error which gets worse when using -march=pentium-m.
I still have no clue how to debug all of this. Considering how easy it's to reproduce ( see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105700#c2 ), would be great if Wine hackers chimed in instead.