[Bug 52184] New: Initial breakpoint absent when debugging under WinDbg/CDB (build 22000.1)

WineHQ Bugzilla wine-bugs at winehq.org
Tue Dec 7 09:10:02 CST 2021


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 at winehq.org
          Reporter: jinoh.kang.kr at 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.

-- 
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