BaseException: File: .\dia\symexport.cpp Line: 103 TODO

Feb 13, 2014 at 8:39 AM
Edited Feb 13, 2014 at 8:39 AM
kd> !py e:\py\drvobj.py
Traceback (most recent call last):
File "e:\py\drvobj.py", line 108, in <module>
run()
File "e:\py\drvobj.py", line 105, in run
printDrvMajorTable( "afd" )
File "e:\py\drvobj.py", line 81, in printDrvMajorTable
drvObjPtr = getObjectByName( objName )
File "e:\py\drvobj.py", line 72, in getObjectByName
rootDir = typedVar( "nt!_OBJECT_DIRECTORY", ptrPtr( expr( "nt!ObpRootDirectoryObject" ) ) )
BaseException: File: .\dia\symexport.cpp Line: 103 TODO

Why ?
Coordinator
Feb 13, 2014 at 10:25 AM
pykd failed to find symbols for the nt module ( windows kernel )

Run windbg command:
lmm nt 
for sure you have a symbols for windows kernel.

To diagnose a problem with symbols run windbg command:
!sym noisy
.reload /f nt
and check output.
Feb 14, 2014 at 2:06 AM
kd> lmm nt
start end module name
804d8000 806ce100 nt (pdb symbols) g:\DebugSymbols2\ntkrnlpa.pdb\BD8F451F3E754ED8A34B50560CEB08E31\ntkrnlpa.pdb
kd> !sym noisy
noisy mode - symbol prompts on
kd> .reload /f nt
DBGHELP: nt - public symbols
    g:\DebugSymbols2\ntkrnlpa.pdb\BD8F451F3E754ED8A34B50560CEB08E31\ntkrnlpa.pdb
kd> !py drvobj.py


Traceback (most recent call last):

File "E:\py\drvobj.py", line 108, in <module>
run()
File "E:\py\drvobj.py", line 105, in run
printDrvMajorTable( "afd" )
File "E:\py\drvobj.py", line 81, in printDrvMajorTable
drvObjPtr = getObjectByName( objName )
File "E:\py\drvobj.py", line 72, in getObjectByName
rootDir = typedVar( "nt!_OBJECT_DIRECTORY", ptrPtr( expr( "nt!ObpRootDirectoryObject" ) ) )
BaseException: File: .\dia\symexport.cpp Line: 103 TODO
Feb 14, 2014 at 3:53 AM
I have reinstall pykd use "pykd-0.2.0.27-x86-python-2.7-setup.exe".
It's ok now!

Thank you!

kd> !py drvobj
SYMSRV: tcpip.pdb from http://msdl.microsoft.com/download/symbols: 200142 bytes - copied
DBGHELP: tcpip - public symbols
    g:\DebugSymbols2\tcpip.pdb\9546A8399BAC4717BC41758594EF0D9C2\tcpip.pdb
MajorFunction[0] = tcpip!TCPDispatch
MajorFunction[1] = tcpip!TCPDispatch
MajorFunction[2] = tcpip!TCPDispatch
MajorFunction[3] = tcpip!TCPDispatch
MajorFunction[4] = tcpip!TCPDispatch
MajorFunction[5] = tcpip!TCPDispatch
MajorFunction[6] = tcpip!TCPDispatch
Coordinator
Feb 14, 2014 at 4:40 AM
It seems you had not registered MS DIA component properly, The installer repaired registration.