.loadby sos clr-找不到指定的模块 [英] .loadby sos clr - specified module could not be found
问题描述
我试图深入了解我的转储文件中的CLR异常,但尝试执行时遇到问题:
I am trying to get to the bottom of what the CLR exception that is in my dump file but I am having an issue trying to execute:
0:000> .loadby sos clr
The call to LoadLibrary(C:\ProgramData\dbg\sym\clr.dll\5348A1EF9a0000\sos) failed, Win32 error 0n126
"The specified module could not be found."
我试图查看加载的内容,然后看到:
I tried to look at what is loaded and I see:
0:000> lm
start end module name
00000000`00190000 00000000`001a4000 MyTest (deferred)
00000000`77a00000 00000000`77afa000 user32 (deferred)
00000000`77b00000 00000000`77c1f000 kernel32 (pdb symbols) C:\ProgramData\dbg\sym\kernel32.pdb\CEE1211DAF10494CAFDDBE2C4232EAE82\kernel32.pdb
00000000`77c20000 00000000`77dca000 ntdll (pdb symbols) C:\ProgramData\dbg\sym\ntdll.pdb\8AAAEEE259C340FCADC53FAF9FEF22E92\ntdll.pdb
000007fe`f8950000 000007fe`f9ef1000 mscorlib_ni (deferred)
000007fe`f9f00000 000007fe`f9fd6000 MSVCR120_CLR0400 (deferred)
000007fe`f9fe0000 000007fe`fa980000 clr (pdb symbols) C:\ProgramData\dbg\sym\clr.pdb\E3E0C76A7909454FB3C56B0C2CE5FFEB2\clr.pdb
000007fe`fa980000 000007fe`faa1d000 mscoreei T (pdb symbols) C:\ProgramData\dbg\sym\mscoreei.pdb\6D65F80ABA3D403D8F6F7214972B9BBF2\mscoreei.pdb
000007fe`faa20000 000007fe`faa8f000 mscoree (deferred)
000007fe`fd800000 000007fe`fd80f000 CRYPTBASE (deferred)
000007fe`fdbb0000 000007fe`fdc1a000 KERNELBASE (pdb symbols) C:\ProgramData\dbg\sym\kernelbase.pdb\D396875654E9416CBA16E51F8B0A8B1E2\kernelbase.pdb
000007fe`fdd60000 000007fe`fde69000 msctf (deferred)
000007fe`fde70000 000007fe`fe073000 ole32 (deferred)
000007fe`fe0b0000 000007fe`fe121000 shlwapi (deferred)
000007fe`fe310000 000007fe`fe3da000 usp10 (deferred)
000007fe`fe3e0000 000007fe`fe47f000 msvcrt (deferred)
000007fe`fe480000 000007fe`fe48e000 lpk (deferred)
000007fe`fe590000 000007fe`fe5af000 sechost (deferred)
000007fe`fe600000 000007fe`fe62e000 imm32 (deferred)
000007fe`fe630000 000007fe`fe697000 gdi32 (deferred)
000007fe`fe910000 000007fe`fe9eb000 advapi32 (deferred)
000007fe`ff800000 000007fe`ff92d000 rpcrt4 (deferred)
更多地关注clr:
0:000> lmvm clr
Browse full module list
start end module name
000007fe`f9fe0000 000007fe`fa980000 clr (pdb symbols) C:\ProgramData\dbg\sym\clr.pdb\E3E0C76A7909454FB3C56B0C2CE5FFEB2\clr.pdb
Loaded symbol image file: clr.dll
Mapped memory image file: C:\ProgramData\dbg\sym\clr.dll\5348A1EF9a0000\clr.dll
Image path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Image name: clr.dll
Browse all global symbols functions data
Timestamp: Fri Apr 11 22:16:15 2014 (5348A1EF)
CheckSum: 009A762B
ImageSize: 009A0000
File version: 4.0.30319.34209
Product version: 4.0.30319.34209
File flags: 8 (Mask 3F) Private
File OS: 4 Unknown Win32
File type: 2.0 Dll
File date: 00000000.00000000
Translations: 0409.04b0
CompanyName: Microsoft Corporation
ProductName: Microsoft® .NET Framework
InternalName: clr.dll
OriginalFilename: clr.dll
ProductVersion: 4.0.30319.34209
FileVersion: 4.0.30319.34209 built by: FX452RTMGDR
PrivateBuild: DDBLD104
FileDescription: Microsoft .NET Runtime Common Language Runtime - WorkStation
LegalCopyright: © Microsoft Corporation. All rights reserved.
Comments: Flavor=Retail
然后按照@Thomas Weller的建议:
And then as per suggestion from @Thomas Weller:
0:000> lmf m clr
Browse full module list
start end module name
000007fe`f9fe0000 000007fe`fa980000 clr C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
路径( C:\Windows\Microsoft。 NET\Framework64\v4.0.30319
)存在于我的PC上,并且里面有 SOS.dll
。
The path (C:\Windows\Microsoft.NET\Framework64\v4.0.30319
) exists on my PC and there's a SOS.dll
inside.
其他信息:
-
ld clr; .reload / f
没有帮助 - 我没有使用
.cordll
来修改CLR加载路径 -
.load C:\Windows\Microsoft.NET\Framework64\v4.0.30319\SOS.dll
可以,但是键入的时间更长
ld clr; .reload /f
does not help- I've not used
.cordll
to modify the CLR loading paths .load C:\Windows\Microsoft.NET\Framework64\v4.0.30319\SOS.dll
works, but it's longer to type
为什么 .loadby sos clr
不是为我工作? (我刚刚从 https://developer.microsoft安装了WinDbg。 com / zh-CN / windows / hardware / windows-driver-kit ),方法是选择从安装程序安装 Windows调试工具)
Why is .loadby sos clr
not working for me? (I just installed WinDbg from https://developer.microsoft.com/en-us/windows/hardware/windows-driver-kit) by selecting to install "Debugging Tools for Windows" from the installer)
推荐答案
使用我从@Thomas Weller的问题中学到的知识找出答案。因此,显然,每次关闭WinDbg时, File
-> Symbol File Path
中的符号文件路径都会被清除。它 .loadby sos clr
会产生我得到的错误。 文件
-> 符号文件路径
中的符号文件路径必须在其中具有以下条目: srv * C:\windbg\websymbols
(当然该目录必须存在)。
Figured out the answer using what I learned from @Thomas Weller's questions. So apparently the "Symbol File Path" in File
-> Symbol File Path
gets cleared every time you close WinDbg and without it .loadby sos clr
produces the error that I got. The "Symbol File Path" in File
-> Symbol File Path
must have an entry in there like: srv*C:\windbg\websymbols
(and of course the directory must exist).
打开故障转储时,它应具有以下输出
(请注意以下行: 符号搜索路径为: srv * C:\windbg\websymbols
):
When you open a crash dump it should have the following output
(Notice the line: Symbol search path is: srv*C:\windbg\websymbols
):
Microsoft (R) Windows Debugger Version 10.0.14321.1024 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [C:\Users\XXXXXX\Desktop\AppCrash_XXXXXXXXXXXXX_d4c077fd50acba44bd2aceb966fe5424b98f3e_cab_9eb7d2f5\WERC4D4.tmp.hdmp]
User Mini Dump File: Only registers, stack and portions of memory are available
************* Symbol Path validation summary **************
Response Time (ms) Location
Deferred srv*C:\windbg\websymbols
Symbol search path is: srv*C:\windbg\websymbols
Executable search path is:
Windows 7 Version 7601 (Service Pack 1) MP (4 procs) Free x64
Product: Server, suite: TerminalServer SingleUserTS
Machine Name:
Debug session time: Tue Aug 9 02:05:43.000 2016 (UTC - 4:00)
System Uptime: 79 days 17:08:17.121
Process Uptime: 0 days 0:00:06.000
另一方面,这是我以前的意思,这意味着您忘记设置符号文件路径(请注意线符号搜索路径是:srv *
)
On the other hand, this is what I had previously and this means you forgot to set the "Symbol File Path" (Notice the line Symbol search path is: srv*
)
Microsoft (R) Windows Debugger Version 10.0.14321.1024 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [C:\Users\XXXXXX\Desktop\AppCrash_XXXXXXXXXXXXX_d4c077fd50acba44bd2aceb966fe5424b98f3e_cab_9eb7d2f5\WERC4D4.tmp.hdmp]
User Mini Dump File: Only registers, stack and portions of memory are available
Symbol search path is: srv*
Executable search path is:
Windows 7 Version 7601 (Service Pack 1) MP (4 procs) Free x64
Product: Server, suite: TerminalServer SingleUserTS
Machine Name:
Debug session time: Tue Aug 9 02:05:43.000 2016 (UTC - 4:00)
System Uptime: 79 days 17:08:17.121
Process Uptime: 0 days 0:00:06.000
这篇关于.loadby sos clr-找不到指定的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!