-
-
Notifications
You must be signed in to change notification settings - Fork 146
Open
Description
I was having trouble where my fuzzer couldn't set breakpoints on any kernel functions to catch usermode crashes, etc on Windows. I used Process Monitor and saw that wtf.exe was trying to load msdia140.dll from all the directory entries of my %PATH% env var over and over again. I copied over the msdia140.dll from the host that took the snapshot (with DbgX WinDbg) and now it works.
Before
Command log:
..\..\src\build\wtf run --backend bochscpu --state .\state --input .\inputs --edges=1 --name my_target
Initializing the debugger instance.. (this takes a bit of time)
Setting debug register status to zero.
Setting debug register status to zero.
Could not set a breakpoint at nt!KeBugCheck2.
Failed to SetBreakpoint on KeBugCheck2
Failed to SetupUsermodeCrashDetectionHooks
Could not initialize target fuzzer.
symbol_store.json:
{"nt!KeBugCheck2":"0x0"}After
..\..\src\build\wtf run --backend bochscpu --state .\state --input .\inputs --edges=1 --name my_target
Initializing the debugger instance.. (this takes a bit of time)
Setting debug register status to zero.
Setting debug register status to zero.
Running .\inputs\initial_input.bin
--------------------------------------------------
Run stats:
Instructions executed: 55.4k (7.9k unique)
Dirty pages: 192.0kb
Memory accesses: 88.7kb
Edges executed: 4.1k (898.0 unique)
#1 cov: 7894 exec/s: 0.0 lastcov: 0.0s crash: 0 timeout: 0 cr3: 1 uptime: 3.0s
symbol_store.json:
{"nt!KeBugCheck2":"0xfffff80539316a10","nt!KiFastFailDispatch":"0xfffff80539212280","nt!KiProcessControlProtection":"0xfffff805393126a0","nt!SwapContext":"0xfffff80539205de0","ntdll!RtlDispatchException":"0x7ff8fdd02310","verifier":"0x7ff8caeb0000","verifier!VerifierStopMessage":"0x7ff8caeb6770"}I can submit a PR for this if that helps, I just wanted to make sure I'm not the only one hitting this first.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels