[Bug 59803] New: Program crash on debugger interrupt in wow64 mode
http://bugs.winehq.org/show_bug.cgi?id=59803 Bug ID: 59803 Summary: Program crash on debugger interrupt in wow64 mode Product: Wine Version: 11.9 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winedbg Assignee: wine-bugs@list.winehq.org Reporter: wine@tomashu.dev Distribution: --- Created attachment 81045 --> http://bugs.winehq.org/attachment.cgi?id=81045 backtrace Distro: CachyOS When debugging a 32-bit program in wow64 mode, trying to interrupt its execution with Ctrl+C causes it to crash. As an example, let's take wine's `notepad.exe` as it has both 64 and 32 bit versions. Steps to reproduce: 1. change directory to <wine_prefix>/drive_c/windows 2. launch 32bit version: `winedbg syswow64/notepad.exe` 3. continue program execution (with `c`) 4. interrupt the program (with `Ctrl+C`) 5. the program crashes. The window still exists, but is not responsive. 6. Exit debugger (with `quit`) Repeating the same steps but with 64 bit version does not result in a crash 2. launch 64bit version: `winedbg system32/notepad.exe` Interestingly, when launching e.g. `syswow64/regedit.exe`, the UI doesn't become unresponsive after the crash and continues to work. Maybe its related to multithreading? -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59803 Eric Pouech <eric.pouech@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|winedbg |ntdll Ever confirmed|0 |1 CC| |eric.pouech@gmail.com, | |julliard@winehq.org Status|UNCONFIRMED |NEW --- Comment #1 from Eric Pouech <eric.pouech@gmail.com> --- confirming issue lies in fact in ntdll's NtCreateThreadEx implementation (hence change in component for this ticket) DbgUiIssueRemoteBreakin calls NtCreateThreadEx with a 64bit thread start address, which gets incorrectly cropped to 32bit when starting the thread. AFAICT this call is supported by native. cc:ing Alexandre to check if either he wants to take care of it (otherwise, we could pass the 32bit version of the start address, but that would be uglier) -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59803 Eric Pouech <eric.pouech@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lahvuun@gmail.com --- Comment #2 from Eric Pouech <eric.pouech@gmail.com> --- *** Bug 59827 has been marked as a duplicate of this bug. *** -- 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.
participants (1)
-
WineHQ Bugzilla