"Symbols can not be loaded" when trying to read dump
Asked Answered
M

5

7

I have an application that sometimes causes a BSOD on a Win XP machine. Trying to find out more, I loaded up the resulting *.dmp file (from C:\Windows\Minidump), but get this message when in much of the readout when doing so:

*********************************************************************
* Symbols can not be loaded because symbol path is not initialized. *
*                                                                   *
* The Symbol Path can be set by:                                    *
*   using the _NT_SYMBOL_PATH environment variable.                 *
*   using the -y <symbol_path> argument when starting the debugger. *
*   using .sympath and .sympath+                                    *
*********************************************************************

What does this mean, and how do I "fix" it?

Marj answered 15/8, 2008 at 6:51 Comment(0)
B
10

I usually go to the System control panel, then Advanced tab, then Environment. You can then add the requisite _NT_SYMBOL_PATH variable. Then you don't have to do anything on the command-line before running WinDbg.

The setting of srv*C:\Windows\Symbols*http://msdl.microsoft.com/download/symbols as suggested by staffan is fine. I usually prefer to use my own profile for storing symbols though (so that I don't need to edit the permissions for C:\Windows\Symbols, since I intentionally run as a limited user, for good security hygiene). Thus (in my case) my _NT_SYMBOL_PATH is srv*C:\Documents and Settings\cky\symbols*http://msdl.microsoft.com/download/symbols.

Hope this helps. :-)

Buyer answered 15/8, 2008 at 10:56 Comment(0)
B
9

Quick answer is to

c:\> set _NT_SYMBOL_PATH=SRV*C:\WINDOWS\Symbols*http://msdl.microsoft.com/download/symbols

before starting windbg.

Barranquilla answered 15/8, 2008 at 8:24 Comment(0)
Y
4

Quicker answer:

!symfix

But it only affects the current windbg/ntsd/cdb/kd.

Yonita answered 29/9, 2009 at 16:2 Comment(0)
M
3

you actually need to either download the symbols to your computer, or configure it to download as you go if you are online while debugging.

Here's the link that talks about this in detail: http://www.microsoft.com/whdc/DevTools/Debugging/debugstart.mspx

Marylou answered 15/8, 2008 at 6:58 Comment(0)
G
1

As @Vaibhav noted, you actually need to download the symbols and configure windbg to use them.

Also note the following: !sym noisy -- Activates noisy symbol loading lm v -- Use with "m" parameter to look at information for a loaded module. lme D sm - List all modules w/o symbols.

Guatemala answered 18/9, 2008 at 13:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.