今天debug 一个 dump 文件 在输入: .cordll -ve -l 时出现:

0:093> .cordll -ve -l
CLRDLL: C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscordacwks.dll:4.8.4180.00 f:8
doesn't match desired version 4.7.3416.00 f:8

说是不匹配版本, 需要对应的版本. 查询 windbg 官网得 : 下载用于调试的 Windows 符号包 - Windows drivers | Microsoft Docs

每个版本的符号表 都存在windows 服务器中, 需要时可以远程加载. 设置方式如下:

// 设置路径
0:093> .symfix D:\Mocrosoft\SymbolCache
*** WARNING: Unable to verify timestamp for ntdll.dll
//查看设置
0:093> .sympath 
Symbol search path is: srv*
Expanded Symbol search path is: SRV*D:\Mocrosoft\SymbolCache*https://msdl.microsoft.com/download/symbols

************* Path validation summary **************
Response                         Time (ms)     Location
Deferred                                       srv*

然后再执行: .cordll -ve -l

0:093> .cordll -ve -l
CLRDLL: C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscordacwks.dll:4.8.4180.00 f:8
doesn't match desired version 4.7.3416.00 f:8
CLRDLL: Loaded DLL D:\Mocrosoft\SymbolCache\mscordacwks_x86_x86_4.7.3416.00.dll\5CABFD2C6ef000\mscordacwks_x86_x86_4.7.3416.00.dll
----------------------------------------------------------------------------
The user dump currently examined is a minidump. Consequently, only a subset
of sos.dll functionality will be available. If needed, attaching to the live
process or debugging a full dump will allow access to sos.dll's full feature
set.
To create a full user dump use the command: .dump /ma <filename>
----------------------------------------------------------------------------
Automatically loaded SOS Extension
CLR DLL status: Loaded DLL D:\Mocrosoft\SymbolCache\mscordacwks_x86_x86_4.7.3416.00.dll\5CABFD2C6ef000\mscordacwks_x86_x86_4.7.3416.00.dll

会自动下载对应的符号表, 但:

特别说明

如果提示下载失败 或者 timeout 请设置使用梯子

Last modification:July 1st, 2020 at 07:59 pm
If you think my article is useful to you, please feel free to appreciate