moyix / pdbparse

Python code to parse Microsoft PDB files
Other
309 stars 83 forks source link

pdb_print_ctypes.py crashes on Windows 8.1 ntkrpamp.pdb #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Running pdb_print_ctypes.py against the Windows 8.1 x86 ntkrpamp.pdb crashes 
with the following output:

./pdb_print_ctypes.py --width=4 
8.1/x86/ntkrpamp.pdb/9DC1F995475C456C8D1AA9606E3106931/ntkrpamp.pdb 

Traceback (most recent call last):
  File "./pdb_print_ctypes.py", line 1099, in <module>
    structs = topological_sort(dep_graph)
  File "./pdb_print_ctypes.py", line 66, in topological_sort
    count[successor] += 1
KeyError: '_HAL_PMC_COUNTERS'

Original issue reported on code.google.com by srpape@gmail.com on 24 Apr 2014 at 1:59

GoogleCodeExporter commented 9 years ago
A similar error occurs against Vista's win32k.sys pdb (both 32 and 64-bit):

./pdb_print_ctypes.py --width=8 vista/x64/symbols/win32k.pdb.sys
Traceback (most recent call last):
  File "./pdb_print_ctypes.py", line 1099, in <module>
    structs = topological_sort(dep_graph)
  File "./pdb_print_ctypes.py", line 66, in topological_sort
    count[successor] += 1
KeyError: '_OBJECT_DIRECTORY_ENTRY'

_OBJECT_DIRECTORY_ENTRY is an nt symbol, so maybe it's referenced but not 
declared in win32k and is causing the crash?

Original comment by srpape@gmail.com on 28 Apr 2014 at 10:40