WinDBG Preview doesn't debug...FAILURE HR=0x80073D07

1

I recently installed WinDBG Preview(1.0.2001.02001) on my Windows 10 1607(14393.0),everything was fine until I started debugging,or rather tried to start:

The debugging session could not be started: FAILURE HR=0x80073D07: Failed to CreateProcessAndAttachWide: C:\Users\WayToExecutable\executable.exe

Command window:

Microsoft (R) Windows Debugger Version 10.0.19528.1000 X86
Copyright (c) Microsoft Corporation. All rights reserved.

CommandLine: C:\Users\WayToExecutable\executable.exe arg1 arg2
Cannot execute 'C:\Users\WayToExecutable\executable.exe arg1 arg2', Win32 error 0n15623
    "An error was detected in the system binary. Try restoring your PC to fix the problem."

Full log:

2020-01-10:01:52:11:145 : Information : DbgX.Shell.exe : OS Version: (Windows 10 Pro.10.0.14393) (14393.0.amd64fre.rs1_release.160715-1616) (64-bit)
2020-01-10:01:52:11:145 : Information : DbgX.Shell.exe : OS Version: (Windows 10 Pro.10.0.14393) (14393.0.amd64fre.rs1_release.160715-1616) (64-bit)
2020-01-10:01:52:11:208 : Warning : DbgX.Services.dll : Property CommandWindowSettings.CopyWithFormatting not found.
2020-01-10:01:52:11:223 : Warning : DbgX.Services.dll : Property CommandWindowSettings.MaxLineCount not found.
2020-01-10:01:52:11:270 : Information : DbgX.Debugger.dll : Found Sympath setting in dbgx.xml: srv*
2020-01-10:01:52:11:286 : Information : DbgX.dll : (E) Home directory is: C:\ProgramData\Dbg
2020-01-10:01:52:11:286 : Information : DbgX.Shell.exe : Version: 1.0.2001.02001
2020-01-10:01:52:11:676 : Information : DbgX.Shell.exe : Command line: "C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2001.2001.0_neutral__8wekyb3d8bbwe\DbgX.Shell.exe" 
2020-01-10:01:52:11:348 : Information : DbgX.Debugger.dll : Starting EngHost: C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2001.2001.0_neutral__8wekyb3d8bbwe\amd64\EngHost.exe npipe:pipe=DbgX_cae0d6bd60f9439f92c667e2c313d819,password=d6588643f577 "C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2001.2001.0_neutral__8wekyb3d8bbwe\amd64" "C:\ProgramData\Dbg"
2020-01-10:01:52:11:380 : Information : DbgX.dll : (E) Added process EngHost (3032) to job object 861441e4-01cc-403d-8cb4-9b37050e03ac
2020-01-10:01:52:12:630 : Information : DbgX.dll : (E) Changed client, isPrimaryClient=True
2020-01-10:01:52:12:645 : Information : DbgX.dll : (E) Executing secondary thread request: ChangeClientRequest
2020-01-10:01:52:14:286 : Information : DbgX.Debugger.dll : Code level changed to Assembly
2020-01-10:01:52:12:661 : Information : DbgX.dll : (E) Completed secondary thread request: ChangeClientRequest
2020-01-10:01:52:14:333 : Information : DbgX.Debugger.dll : Code level changed to Source
2020-01-10:01:52:12:661 : Information : DbgX.dll : (E) Executing request: ScriptProvidersRequest
2020-01-10:01:52:12:692 : Information : DbgX.dll : (E) Completed request (18 ms) : ScriptProvidersRequest
2020-01-10:01:52:12:692 : Information : DbgX.dll : (E) Refreshing because we're in a break state.
2020-01-10:01:52:14:427 : Information : DbgX.Debugger.dll : Notifying refresh requested
2020-01-10:01:52:14:474 : Information : DbgX.dll : (E) Executing request: ScriptProvidersRequest
2020-01-10:01:52:14:474 : Information : DbgX.dll : (E) Completed request (0 ms) : ScriptProvidersRequest
2020-01-10:01:52:14:489 : Information : DbgX.dll : (E) Executing request: GetSymbolPathRequest
2020-01-10:01:52:14:521 : Information : DbgX.Debugger.dll : Symbol path changed: srv*
2020-01-10:01:52:14:489 : Information : DbgX.dll : (E) Completed request (2 ms) : GetSymbolPathRequest
2020-01-10:01:52:14:630 : Information : DbgX.Shell.exe : Total startup time: 5145 ms
2020-01-10:01:52:14:630 : Information : DbgX.Shell.exe :     Phase 'Process startup' time: 363 ms, started at 0 ms
2020-01-10:01:52:14:630 : Information : DbgX.Shell.exe :     Phase 'Compatibility mitigations' time: 13 ms, started at 394 ms
2020-01-10:01:52:14:630 : Information : DbgX.Shell.exe :     Phase 'Create main window' time: 490 ms, started at 409 ms
2020-01-10:01:52:14:630 : Information : DbgX.Shell.exe :     Phase 'Composition catalog' time: 771 ms, started at 425 ms
2020-01-10:01:52:14:630 : Information : DbgX.Shell.exe :     Phase 'Merging resource dictionaries' time: 148 ms, started at 910 ms
2020-01-10:01:52:14:630 : Information : DbgX.Shell.exe :     Phase 'Compose components' time: 484 ms, started at 1191 ms
2020-01-10:01:52:14:646 : Information : DbgX.Shell.exe :     Phase 'Setting main window viewmodel' time: 286 ms, started at 1707 ms
2020-01-10:01:52:14:646 : Information : DbgX.Shell.exe :     Phase 'Startup listeners' time: 215 ms, started at 1988 ms
2020-01-10:01:52:14:646 : Information : DbgX.Shell.exe :     Phase 'ViewManager initialization' time: 809 ms, started at 2269 ms
2020-01-10:01:52:14:646 : Information : DbgX.Shell.exe :     Phase 'Main window show' time: 2071 ms, started at 3082 ms
2020-01-10:01:52:14:646 : Information : DbgX.Shell.exe :     Phase 'Shell startup listeners' time: 25 ms, started at 4738 ms
2020-01-10:01:53:11:494 : Information : DbgX.dll : (E) Executing request: CreateProcessRequest: Command Line 'C:\Users\WayToExecutable\executable.exe'
2020-01-10:01:53:11:497 : Information : DbgX.dll : (E) Using process server: 0x0000000000000000
2020-01-10:01:53:11:509 : Information : DbgX.Debugger.dll : Starting EngHost: C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2001.2001.0_neutral__8wekyb3d8bbwe\x86\EngHost.exe npipe:pipe=DbgX_b476be37a32e4231b4126d91068caece,password=5fd8ced27b46 "C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2001.2001.0_neutral__8wekyb3d8bbwe\x86" "C:\ProgramData\Dbg"
2020-01-10:01:53:11:515 : Information : DbgX.dll : (E) Added process EngHost (9080) to job object 97a89ead-fb17-4730-868e-194c305b599f
2020-01-10:01:53:13:732 : Information : DbgX.dll : (E) Killing process EngHost (3032) for job object 861441e4-01cc-403d-8cb4-9b37050e03ac (HasExited: False)
2020-01-10:01:53:13:733 : Information : DbgX.dll : (E) Changed client, isPrimaryClient=True
2020-01-10:01:53:13:752 : Information : DbgX.dll : (E) Executing secondary thread request: ChangeClientRequest
2020-01-10:01:53:13:771 : Information : DbgX.Debugger.dll : Code level changed to Assembly
2020-01-10:01:53:13:773 : Information : DbgX.Debugger.dll : Code level changed to Source
2020-01-10:01:53:13:874 : Information : DbgX.dll : (E) Completed secondary thread request: ChangeClientRequest
2020-01-10:01:53:13:893 : Information : DbgX.Services.dll : Action item published: Error - The debugging session could not be started: FAILURE HR=0x80073D07: Failed to CreateProcessAndAttachWide: C:\Users\WayToExecutable\executable.exe
2020-01-10:01:53:13:955 : Error : DbgX.Services.dll : 
WindowsDebugger.WindowsDebuggerException: FAILURE HR=0x80073D07: Failed to CreateProcessAndAttachWide: C:\Users\WayToExecutable\executable.exe
   в WindowsDebugger.DbgEng.HRESULTExtensions.ThrowOnFailed(HRESULT hr, String operation)
   в DbgX.Requests.Initialization.CreateProcessRequest.DoInitializeEngine(IEngineRequestServices ers, EngineInterfaces engine, UInt64 validatedServerToken)
   в DbgX.Requests.Initialization.SpecifiedServerInitializationRequest.DoExecute(IEngineRequestServices ers, EngineInterfaces engine, UInt64 validatedServerToken)
   в DbgX.Requests.SpecifiedServerEngineRequest`1.DoExecute(IEngineRequestServices ers, EngineInterfaces engine)
   в DbgX.Requests.EngineRequestWithTask`1.Execute(IEngineRequestServices ers, EngineInterfaces engine)
--- End stack trace from previous location where exception occurred ---
   в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   в DbgX.Services.CommandLine.ConfiguredTargetManager.<LaunchTargetAsync>d__18.MoveNext()
2020-01-10:01:53:13:877 : Information : DbgX.dll : (E) Completed request (2382 ms) : CreateProcessRequest: Command Line 'C:\Users\WayToExecutable\executable.exe'
2020-01-10:01:53:13:877 : Information : DbgX.dll : (E) Refreshing because we're in a break state.
2020-01-10:01:53:14:107 : Information : DbgX.Debugger.dll : Notifying refresh requested
2020-01-10:01:53:14:111 : Error : DbgXUI.dll : 
WindowsDebugger.WindowsDebuggerException: FAILURE HR=0x80073D07: Failed to CreateProcessAndAttachWide: C:\Users\WayToExecutable\executable.exe
   в WindowsDebugger.DbgEng.HRESULTExtensions.ThrowOnFailed(HRESULT hr, String operation)
   в DbgX.Requests.Initialization.CreateProcessRequest.DoInitializeEngine(IEngineRequestServices ers, EngineInterfaces engine, UInt64 validatedServerToken)
   в DbgX.Requests.Initialization.SpecifiedServerInitializationRequest.DoExecute(IEngineRequestServices ers, EngineInterfaces engine, UInt64 validatedServerToken)
   в DbgX.Requests.SpecifiedServerEngineRequest`1.DoExecute(IEngineRequestServices ers, EngineInterfaces engine)
   в DbgX.Requests.EngineRequestWithTask`1.Execute(IEngineRequestServices ers, EngineInterfaces engine)
--- End stack trace from previous location where exception occurred ---
   в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   в DbgX.Services.CommandLine.ConfiguredTargetManager.<LaunchTargetAsync>d__18.MoveNext()
--- End stack trace from previous location where exception occurred ---
   в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   в DbgXUI.Dialogs.LaunchExecutableViewModel.<LaunchAndReportAsync>d__51.MoveNext()
2020-01-10:01:53:14:114 : Information : DbgX.Services.dll : Action item published: Error - Could not launch process under the debugger: FAILURE HR=0x80073D07: Failed to CreateProcessAndAttachWide: C:\Users\WayToExecutable\executable.exe
2020-01-10:01:53:14:108 : Information : DbgX.dll : (E) Executing request: ScriptProvidersRequest
2020-01-10:01:53:14:108 : Information : DbgX.dll : (E) Completed request (0 ms) : ScriptProvidersRequest
2020-01-10:01:53:14:110 : Information : DbgX.dll : (E) Executing request: GetSymbolPathRequest
2020-01-10:01:53:14:119 : Information : DbgX.Debugger.dll : Symbol path changed: srv*
2020-01-10:01:53:14:110 : Information : DbgX.dll : (E) Completed request (0 ms) : GetSymbolPathRequest

And when I tried to attach to target process,and the problem did not occur.

I tried many different executable,but they all display the same error...

I also tried to start debug on classical WinDBG and it does not display errors..

Version of classical WinDBG:

Microsoft (R) Windows Debugger Version 10.0.18362.1 X86
Copyright (c) Microsoft Corporation. All rights reserved.

command line: '"C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\windbg.exe" '  Debugger Process 0xF34 
dbgeng:  image 10.0.18362.1, 
        [path: C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\dbgeng.dll]
dbghelp: image 10.0.18362.1, 
        [path: C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\dbghelp.dll]
        DIA version: 26213
Extension DLL search Path:
    C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\WINXP;C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\winext;C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\winext\arcade;C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\pri;C:\Program Files (x86)\Windows Kits\10\Debuggers\x86;C:\Users\User\AppData\Local\Dbg\EngineExtensions32;C:\Program Files (x86)\Windows Kits\10\Debuggers\x86;C:\Python27\;c:\strawberry\c\libexec\gcc\x86_64-w64-mingw32\9.1.0;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\PuTTY\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files (x86)\dotnet\;C:\Program Files (x86)\Bitvise SSH Client;c:\strawberry\c\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk-11.0.2\bin;C:\Users\Pavyk\AppData\Local\GitHubDesktop\bin;C:\Python27
Extension DLL chain:
    dbghelp: image 10.0.18362.1, API 10.0.6, 
        [path: C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\dbghelp.dll]
    ext: image 10.0.18362.1, API 1.0.0, 
        [path: C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\winext\ext.dll]
    wow64exts: image 10.0.18362.1, API 1.0.0, 
        [path: C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\WINXP\wow64exts.dll]
    exts: image 10.0.18362.1, API 1.0.0, 
        [path: C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\WINXP\exts.dll]
    uext: image 10.0.18362.1, API 1.0.0, 
        [path: C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\winext\uext.dll]
    ntsdexts: image 10.0.18362.1, API 1.0.0, 
        [path: C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\WINXP\ntsdexts.dll]
WOW64 extensions loaded

I will be grateful if someone helps me

windows
debugging
reverse-engineering
windbg
disassembly
asked on Stack Overflow Jan 9, 2020 by Champloo

1 Answer

0

For your output, it seems there is a target bitness mismatch. This should not happen, WinDbgNext is still in beta, so those things are expected.

Try this, use the advanced mode and make sure you are targetting 32-bit. If the application is 64-bits, choose Use 64-bit instead.

Advanced mode

To know the bitness of your application, run:

dumpbin /headers C:\Users\WayToExecutable\executable.exe 

If it is 32-bit will look like this:

FILE HEADER VALUES
             14C machine (x86)
(...)

If it is 64-bit:

FILE HEADER VALUES
            8664 machine (x64)
(...)

NOTE: dumpbin.exe is part of the SDK

answered on Stack Overflow Jan 29, 2020 by Rodney Viana

User contributions licensed under CC BY-SA 3.0