如何使用 SOS 调试 Windbg 中的模块重叠?

发布于 2024-11-27 15:52:34 字数 856 浏览 6 评论 0 原文

我正在尝试使用转储文件和 Windbg 调试在 64 位计算机上运行的 32 位 .net 进程。当我加载转储文件时,我收到警告警告:MSVCR100_CLR0400 与 clr 重叠

加载 wow64exts 并切换到 32 位模式后,我加载 SOS 并收到以下错误:

The version of SOS does not match the version of CLR you are debugging.  Please
load the matching version of SOS for the version of CLR you are debugging.
CLR Version: 10.0.30319.1
SOS Version: 4.0.30319.235
CLRDLL: Loaded DLL C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscordacwks.dll

lmv 告诉我 CLR.dll 的版本实际上是 4.0.30319.235,但 MSVCR100_CLR0400.dll 的版本为 10.0.30319.1。

使用 lm 查看加载的模块地址范围显示了模块重叠:

726e0000 727b1000   MSVCR100_CLR0400   (deferred)             
727a0000 72e10000   clr        (deferred)

我的结论是 SOS 变得混乱并找到了 MSVCR100_CLR0400 而不是 clr 的模块头。

知道如何解决这个问题,以便我可以使用 SOS 调试此转储吗?

I am trying to debug a 32 bit .net process running on a 64 bit machine using a dump file and windbg. When I load the dump file, I get a warning WARNING: MSVCR100_CLR0400 overlaps clr.

After loading wow64exts and switching to 32 bit mode, I load SOS and get the following error:

The version of SOS does not match the version of CLR you are debugging.  Please
load the matching version of SOS for the version of CLR you are debugging.
CLR Version: 10.0.30319.1
SOS Version: 4.0.30319.235
CLRDLL: Loaded DLL C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscordacwks.dll

lmv tells me that the version of CLR.dll is in fact 4.0.30319.235, but MSVCR100_CLR0400.dll is at version 10.0.30319.1.

Looking at the loaded module address ranges with lm shows the module overlap:

726e0000 727b1000   MSVCR100_CLR0400   (deferred)             
727a0000 72e10000   clr        (deferred)

My conclusion is that SOS is getting confused and finding the module header for MSVCR100_CLR0400 instead of clr.

Any idea how to fix this so I can use SOS to debug this dump?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文