Hello,
I have a hard time debugging a recent version of DynamoRIO with WinDbg, i.e., 8.0.18663 on Windows 10 20H2 (build 19042.746). No dynamo_auto_start breakpoint is hit on x64, and I have access violations with WoW64. Are the debugging instructions at
the Wiki up to date? What I did is:
<start WinDbg x64 with C:\dynamorio\bin64\drrun.exe -- notepad.exe>
0:004> .childdbg 1
0:004> g
<at start of notepad.exe>
1:004> bp dynamo_auto_start
Bp expression 'dynamo_auto_start' could not be resolved, adding deferred bp
*** Bp expression 'dynamo_auto_start' contains symbols not qualified with module name.
g
<notepad.exe runs normally, no breakpoint is hit>
On WoW64, I even get access violation:
<start WinDbg x86 with C:\dynamorio\bin32\drrun.exe -- hello_world32.exe>
0:004> .childdbg 1
0:004> g
<at start of hello_world32.exe>
1:004> bp dynamo_auto_start
Bp expression 'dynamo_auto_start' could not be resolved, adding deferred bp
*** Bp expression 'dynamo_auto_start' contains symbols not qualified with module name.
1:004> g
*** Unable to resolve unqualified symbol in Bp expression 'dynamo_auto_start' from module 'C:\WINDOWS\SysWOW64\kernel.appcore.dll'.
ModLoad: 75490000 7549f000 C:\WINDOWS\SysWOW64\kernel.appcore.dll
(4ee8.46f4): Access violation - code c0000005 (first chance)
If instead I use bp dynamorio!dynamo_auto_start, there is a different failure:
<start WinDbg x86 with C:\dynamorio\bin32\drrun.exe -- hello_world32.exe>
0:000> bp dynamorio!dynamo_auto_start
Bp expression 'dynamorio!dynamo_auto_start' could not be resolved, adding deferred bp
0:000> .childdbg 1
Processes created by the current process will be debugged
0:000> g
ModLoad: 7bdb0000 7bdb0000 dynamorio.dll
Unable to insert breakpoint 0 at 7be31610, Win32 error 0n299
"Only part of a ReadProcessMemory or WriteProcessMemory request was completed."
bp0 at 7be31610 failed
WaitForEvent failed
eax=00000000 ebx=00000001 ecx=00000000 edx=00000000 esi=77723be0 edi=00000000
eip=777218ac esp=009fc6a8 ebp=009fce38 iopl=0 nv up ei pl nz na po nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000202
ntdll!NtMapViewOfSection+0xc:
777218ac c22800 ret 28h
In the past (some 7.x version) I was able to use set a breakpoint like that and step through DynamoRIO.
Any guidance?