Quantcast
Channel: Python extension for WinDbg
Viewing all articles
Browse latest Browse all 1625

New Post: Windbg exception when kernel debugging a multi-core processor machine

$
0
0
Hi, I am using pykd 0.3.1.7, WinDbg 10.0.14321.1024 AMD64 on Windows 10 x64 and the target virtual machine is running Windows 10 x86.

I am using pykd.eventHandler to monitor function calls.
The code I used is very simple. But I got a wired problem.

When the target machine has only one core, one processor, it works very well.
However when the target machine has multi-core processor. it would trigger a windbg exception as shown below:

Single step exception - code 80000004 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.

The code:
import pykd
class HandleNtCreateFile(pykd.eventHandler):
    def __init__(self):
        nt = pykd.module('nt')
        self.bp_init = pykd.setBp(nt.NtCreateFile, self.enter_call_back)

    def enter_call_back(self):
        print 'enter_call_back'

HandleNtCreateFile()
pykd.go()

Viewing all articles
Browse latest Browse all 1625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>