[Bug 58414] New: winedbg from winehq packages in Fedora 42 crashes during attaching to process.
http://bugs.winehq.org/show_bug.cgi?id=58414 Bug ID: 58414 Summary: winedbg from winehq packages in Fedora 42 crashes during attaching to process. Product: Wine Version: 10.10 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: dbghelp Assignee: wine-bugs(a)winehq.org Reporter: bernhardu(a)mailbox.org Distribution: --- Created attachment 78829 --> http://bugs.winehq.org/attachment.cgi?id=78829 fedora-42-winehq-devel-10.10-windbg-attach-crash.txt While investigating bug #58335 I found me getting a crash from winedbg when I tried to attach to some process like winemine.exe. In function dwarf2_parse_compilation_unit it looks like comp_dir.u.string is allowed to contain NULL because of the assignment in line 3090: 3090 comp_dir.u.string = NULL; Unfortunately a few lines later this comp_dir.u.string is given to function source_build_path: 3100 tmp = source_build_path(comp_dir.u.string, name.u.string); But therefore function source_build_path does an unconditional strlen(NULL), which causes a SIGSEGV: 62 unsigned bsz = strlen(base); -- 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=58414 Bernhard Übelacker <bernhardu(a)mailbox.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Fedora -- 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=58414 Eric Pouech <eric.pouech(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eric.pouech(a)gmail.com --- Comment #1 from Eric Pouech <eric.pouech(a)gmail.com> --- a quick look at Fedora's ntdll.so debug file show that the AT_comp_dir is present, but has been stored in an external .dwz file so need to investigate why the strp_alt form isn't correctly working in this case quick question (may or may not be related): how did you install the debug info packages? - explicitely installed the wine-core-debuginfo package? - did nothing explicit (debuginfod triggered by gdb, lldb... may have filled local debug info) - other -- 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=58414 --- Comment #2 from Bernhard Übelacker <bernhardu(a)mailbox.org> --- (In reply to Eric Pouech from comment #1)
quick question (may or may not be related): how did you install the debug info packages? - explicitely installed the wine-core-debuginfo package? - did nothing explicit (debuginfod triggered by gdb, lldb... may have filled local debug info) - other
This are my wine related manual dnf calls: $ dnf history list ID Command line 6 dnf install wine-devel-debuginfo-10.10-1.1.x86_64 4 dnf install winehq-devel -- 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=58414 Eric Pouech <eric.pouech(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lukasz.letek.11(a)gmail.com --- Comment #3 from Eric Pouech <eric.pouech(a)gmail.com> --- *** Bug 59095 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.
http://bugs.winehq.org/show_bug.cgi?id=58414 --- Comment #4 from Eric Pouech <eric.pouech(a)gmail.com> --- just to trace, there are (at least) two different issues to look at (tested on Fedora 42, likely the same on F43): - the crash is only triggered when user has (with another debugger than winedbg) downloaded in his/her ~/.cache/debuginfod_client directory the stripped debug symbols (dbghelp cannot resolve for some reasons the debug link in main ELF modules; so it doesn't locate the split debug info packages if they are installed in /usr/lib*) - the crash in itself is caused by Fedora using a .dwz debug info file (shared for across all Wine split debug info files); and Wine dbghelp fails to handle properly the attributes in the .dwz file) -- 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