https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105700
--- Comment #2 from Artem S. Tashkinov <aros at gmx dot com> --- This bug doesn't require any extensive debugging. You just 1. wget https://dl.winehq.org/wine/source/7.x/wine-7.9.tar.xz 2. tar xf wine-7.9.tar.xz 3. cd wine-7.9 4. build using the instructions above 5. wine notepad.exe That will result in a crash a few seconds after you close notepad.exe. winedevice.exe is a background process which gets started automatically, so the crash will happen in background.