We have some issues on a farm server which crashes several times a day. None of us have experience in WinDbg but my coworker managed to create dumps using adsutil.vbs and now I’m analyzing the dump.
Loading the symbols etc I’ve managed to do – I’ve then read a bit and tried both !analyze -v and several other commands. Among them I used .exr -1 which gives me the following:
0:013> .exr -1
ExceptionAddress: 089644b9
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 00000000
Parameter[1]: 00000000
Attempt to read from address 00000000
Somewhere in the !analyze dump I read some details about a Nullpointer-Exception occurring so that’s my lead so far. Now I’m a bit stuck – having a reference to a memorylocation without knowing where to look next… What would you suggest I should do now?
Since you seem to be able to create a dump at will (given the server crashes quite often), what I would do is this:
This way, you’ll be able to see exactly what your code has been doing while it was trying to access the null pointer, including the full state of the process memory at the time of the crash, at the comfort of your own development environment.
WinDbg is a fantastic tool for production debugging, but when possible, I always prefer taking the dumps back home, where its much easier to do the analysis.