windbg中无法加载mscorwks.dll, Win32 error 0n2

抓到一个mini dump,执行!clrstack,会提示如下错误:

*** WARNING: Unable to verify timestamp for mscorwks.dll
Failed to load data access DLL, 0x80004005
Verify that 1) you have a recent build of the debugger (6.2.14 or newer)
            2) the file mscordacwks.dll that matches your version of mscorwks.dll is
                in the version directory
            3) or, if you are debugging a dump file, verify that the file
                mscordacwks_<arch>_<arch>_<version>.dll is on your symbol path.
            4) you are debugging on the same architecture as the dump file.
                For example, an IA64 dump file must be debugged on an IA64
                machine.

You can also run the debugger command .cordll to control the debugger's
load of mscordacwks.dll.  .cordll -ve -u -l will do a verbose reload.
If that succeeds, the SOS command should work on retry.

If you are debugging a minidump, you need to make sure that your executable
path is pointing to mscorwks.dll as well.


解决办法很简单,把抓到的dump那个机器上的mscorwks拷过来,如在:c:\dumps\rules\debug目录下,那么执行:
0:037> .exepath+ c:\dumps\rules\debug
Executable image search path is: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;c:\dumps\rules\debug


然后重新加载符号表即可:.reload

posted on 2008-03-13 12:28 鞠强 阅读(2267) 评论(3)  编辑 收藏 所属分类: Windbg

评论

#1楼  2008-03-13 14:03 dudu      

标题过长,麻烦修改一下。   回复  引用  查看    

#2楼  2008-03-13 14:16 lbq1221119      

通过sos调试托管dump的时候,需要很多CLR的状态信息,抓取一个minidump的时候,就可能省略掉了版本的差异带来的信息不完整,可能是SOS的版本不正确,也可能是Windbg的版本不正确

这样就导致了在load某一个内存地址的时候,context没有load正确.可以看看这篇文章:
http://www.cnblogs.com/lbq1221119/archive/2008/03/13/1103642.html
  回复  引用  查看    


标题  
姓名  
主页
Email (只有博主才能看到) 
验证码 *  看不清,换一张 [登录][注册]
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
该文被作者在 2008-03-14 10:23 编辑过
 
另存  打印
 


<2008年3月>
2425262728291
2345678
9101112131415
16171819202122
23242526272829
303112345

导航

统计

公告

web counter
访问量是此计数器+213636(粗略值) 大家不要给我私人留言了,经常忘记看。有事情往这里发邮件吧:juqiang@live.com,多谢!!!

与我联系

常用链接

留言簿(97)

我参加的小组

我参与的团队

我的标签

随笔分类

随笔档案

相册

搜索

积分与排名

最新评论

阅读排行榜

评论排行榜