Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WinDbg !heap command not working due to missing symbols

I am trying to use WinDbg debug my .NET application with C++ unmanaged memory allocations.

When I try to run the !heap command, I get the following error message:

0:022> !heap
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\Windows\system32\KERNEL32.dll - 
*************************************************************************
***                                                                   ***
***                                                                   ***
***    Your debugger is not using the correct symbols                 ***
***                                                                   ***
***    In order for this command to work properly, your symbol path   ***
***    must point to .pdb files that have full type information.      ***
***                                                                   ***
***    Certain .pdb files (such as the public OS symbols) do not      ***
***    contain the required information.  Contact the group that      ***
***    provided you with these symbols if you need this command to    ***
***    work.                                                          ***
***                                                                   ***
***    Type referenced: ntdll!_HEAP_ENTRY                             ***
***                                                                   ***
*************************************************************************
Invalid type information

How can I fix this error?

like image 892
Captain Comic Avatar asked Jan 20 '23 01:01

Captain Comic


1 Answers

Use the following commands to fix your symbol path:

.symfix
.reload
like image 71
John Avatar answered Jan 21 '23 15:01

John