[Bug 53032] winedevice.exe segfaults on exit when built by GCC >=12.0 and -march=pentium-m
WineHQ Bugzilla
wine-bugs at winehq.org
Tue May 24 15:39:42 CDT 2022
https://bugs.winehq.org/show_bug.cgi?id=53032
Bernhard Übelacker <bernhardu at mailbox.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bernhardu at mailbox.org
--- Comment #16 from Bernhard Übelacker <bernhardu at mailbox.org> ---
Created attachment 72435
--> https://bugs.winehq.org/attachment.cgi?id=72435
debugging-with-rr.txt
I tried if I could reproduce it inside a qemu VM.
And I guess I succeeded in getting at least the "stack overlow" variant.
This combined with rr-debugger and an old but modified version of gdbinit.py
I reached in winedevice.exe a segfault.
(rr) bt
#0 0x7e154db0 in SetupCloseLog ()
#1 0x7bc54b16 in call_dll_entry_point ()
#2 0x7bc59381 in MODULE_InitDLL ()
...
Some notes, the backtrace and singlestepping through SetupCloseLog
showing the esp register are in attached file.
It is a build without mingw compilers and from flags without much debug
information, but function SetupCloseLog is quite short with just a few
function calls.
As far as I see the esp register has "just" the wrong value
when the ret instruction is reached.
Unfortunately I cannot point exactly to a single instruction
which might be wrong.
Maybe someone with better assembly knowledge can have a look?
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list