https://bugs.winehq.org/show_bug.cgi?id=52184
Bug ID: 52184 Summary: Initial breakpoint absent when debugging under WinDbg/CDB (build 22000.1) Product: Wine Version: 6.23 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: jinoh.kang.kr@gmail.com Distribution: ---
When debugging with WinDbg or CDB (build 22000.1), the initial breakpoint before the program entry point is not hit at all.
This appears to be because DbgEng creates the debug port object with limited access permissions, causing NtQueryInformationProcess/ProcessDebugPort to fail with STATUS_ACCESS_DENIED. This leads to Wine's process_breakpoint() function (called by LdrInitializeThunk) failing to detect that the current process is being debugged, and the initial breakpoint is skipped.
https://bugs.winehq.org/show_bug.cgi?id=52184
--- Comment #1 from Jinoh Kang jinoh.kang.kr@gmail.com --- Patch submitted: https://source.winehq.org/patches/data/221588
https://bugs.winehq.org/show_bug.cgi?id=52184
Jinoh Kang jinoh.kang.kr@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |3e2f44300300eb80f1ac1208aac | |8bc59e5e6131d
--- Comment #2 from Jinoh Kang jinoh.kang.kr@gmail.com --- Fix committed: https://source.winehq.org/git/wine.git/?h=3e2f44300300eb80f1ac1208aac8bc59e5...
https://bugs.winehq.org/show_bug.cgi?id=52184
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 7.0-rc1.