https://bugs.winehq.org/show_bug.cgi?id=53700
Bug ID: 53700 Summary: DbgChild crashes because of missing function RtlDosPathNameToRelativeNtPathName_U in ntdll Product: Wine Version: 7.17 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: loic.taleb02@gmail.com Distribution: ArchLinux
Created attachment 73104 --> https://bugs.winehq.org/attachment.cgi?id=73104 Backtrace for x32dbg in Wine 7.15
Reproduction steps:
1. Create a new 64 bit Wine prefix 2. If Wine >= 7.16, install Visual C++ 2013 Redistributable (winetricks vcrun2013) (workaround for https://bugs.winehq.org/show_bug.cgi?id=53672) 3. Download x64dbg from https://github.com/x64dbg/x64dbg/releases/download/snapshot/snapshot_2022-09... (SHA-256: dcd3b74faa6e845a533756f778a2c7eb020f130239bf3e7cbb881acd91d3e76b) and extract the release folder 4. Download DbgChild from https://github.com/therealdreg/DbgChild/releases/download/beta10/DbgChild.Be... (SHA-256: f17f588795d8f5f94d71335a8acfa58946bb03a94a5637be7f3e804c652ea2b4) and extract the contents of the release folder in the release folder of x64dbg 5. Run x32/x32dbg.exe or x64/x64dbg.exe 6. Plugins>dbgchild then check Auto from x32dbg/x64dbg Hook process creation, Auto from x32dbg/x64dbg Unpatch NTDLL entry and Launch from x32dbg/x64dbg NewProcessWatcher without ask 7. File>Open then choose any executable file 8. x32dbg/x64dbg crashes
Patching x32/CreateProcessPatch.exe and x64/CreateProcessPatch.exe to replace RtlDosPathNameToRelativeNtPathName_U by RtlDosPathNameToRelativeNtPathName_U_WithStatus fixes the crash
https://bugs.winehq.org/show_bug.cgi?id=53700
--- Comment #1 from Loïc TALEB loic.taleb02@gmail.com --- Created attachment 73105 --> https://bugs.winehq.org/attachment.cgi?id=73105 Backtrace for x32dbg in Wine 7.17
https://bugs.winehq.org/show_bug.cgi?id=53700
--- Comment #2 from Loïc TALEB loic.taleb02@gmail.com --- Created attachment 73106 --> https://bugs.winehq.org/attachment.cgi?id=73106 Backtrace for x64dbg in Wine 7.15
https://bugs.winehq.org/show_bug.cgi?id=53700
--- Comment #3 from Loïc TALEB loic.taleb02@gmail.com --- Created attachment 73107 --> https://bugs.winehq.org/attachment.cgi?id=73107 Backtrace for x64dbg in Wine 7.17
https://bugs.winehq.org/show_bug.cgi?id=53700
--- Comment #4 from Loïc TALEB loic.taleb02@gmail.com --- Created attachment 73108 --> https://bugs.winehq.org/attachment.cgi?id=73108 Patched DbgChild exe files (doesn't crash)
https://bugs.winehq.org/show_bug.cgi?id=53700
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Summary|DbgChild crashes because of |DbgChild crashes on |missing function |unimplemented function |RtlDosPathNameToRelativeNtP |ntdll.dll.RtlDosPathNameToR |athName_U in ntdll |elativeNtPathName_U Keywords| |download URL| |https://github.com/thereald | |reg/DbgChild/releases/downl | |oad/beta10/DbgChild.Beta.10 | |.zip Status|UNCONFIRMED |NEW
--- Comment #5 from Gijs Vermeulen gijsvrm@gmail.com --- Confirming unimplemented.
I've opened https://gitlab.winehq.org/wine/wine/-/merge_requests/884 for this.
https://bugs.winehq.org/show_bug.cgi?id=53700
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Fixed by SHA1| |1b3f61d7a596c4673a734243d16 | |6cdabf028537b
--- Comment #6 from Gijs Vermeulen gijsvrm@gmail.com --- I couldn't reproduce the app calling this function when using the steps in the OP, but this function is implemented now.
Marking FIXED.
https://bugs.winehq.org/show_bug.cgi?id=53700
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 7.19.