“无法加载符号"尝试读取转储时 [英] "Symbols can not be loaded" when trying to read dump
问题描述
我有一个应用程序有时会导致 Win XP 机器上出现蓝屏.为了了解更多信息,我加载了生成的 *.dmp 文件(来自 C:\Windows\Minidump),但在执行此操作时在大部分读出时收到此消息:
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?
推荐答案
我通常去系统控制面板,然后高级选项卡,然后环境.然后,您可以添加必要的 _NT_SYMBOL_PATH
变量.那么在运行 WinDbg 之前,您无需在命令行上执行任何操作.
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.
srv*C:\Windows\Symbols*http
://msdl.microsoft.com/download/symbols
的设置是按照 Staffan 的建议设置的.不过,我通常更喜欢使用我自己的配置文件来存储符号(这样我就不需要编辑 C:\Windows\Symbols
的权限,因为我故意以有限用户的身份运行)安全卫生).因此(就我而言)我的 _NT_SYMBOL_PATH
是 srv*C:\Documents and Settings\cky\symbols*http
://msdl.microsoft.com/download/symbols
.
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. :-)
这篇关于“无法加载符号"尝试读取转储时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!