I’ve found sos.dll and mscorwks, and have attempted to load them till I am
blue in the face. Finally, after turning a lovely shade of purple, “.chain”
says they are loaded, but when I excute any of the commands, I now get the
following:
0:000> !CLRStacks
!CLRStacks
The call to LoadLibrary(ext) failed, Win32 error 0n2
“The system cannot find the file specified.”
Please check your debugger configuration and/or network access.
The call to LoadLibrary(exts) failed, Win32 error 0n2
“The system cannot find the file specified.”
Please check your debugger configuration and/or network access.
The call to LoadLibrary(uext) failed, Win32 error 0n2
“The system cannot find the file specified.”
Please check your debugger configuration and/or network access.
The call to LoadLibrary(ntsdexts) failed, Win32 error 0n2
“The system cannot find the file specified.”
Please check your debugger configuration and/or network access.
No export CLRStacks found
Doing a .chain I get this:
0:000> .chain
.chain
Extension DLL search Path:
c:\DebuggerS\WINXP;c:\DebuggerS\winext;c:\DebuggerS\winext\arcade;c:\Debugge
rS\pri;c:\DebuggerS;c:\DebuggerS\winext\arcade;C:\Windows\system32;C:\Window
s;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Wi
ndows\Microsoft.NET\Framework64\v2.0.50727\
Extension DLL chain:
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\sos.dll: image
2.0.50727.4927, API 1.0.0, built Wed Jun 03 23:12:19 2009
[path: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\sos.dll]
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorwks.dll: image
2.0.50727.4927, built Wed Jun 03 22:58:39 2009
[path: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorwks.dll]
dbghelp: image 6.12.0002.633, API 6.1.6, built Mon Feb 01 14:15:44 2010
[path: c:\DebuggerS\dbghelp.dll]
ext: (Not loaded)
exts: (Not loaded)
uext: (Not loaded)
ntsdexts: (Not loaded)
So I supposed I should load ext, exts, uext, and ntsdexts. I’ve tried, many
many many times but always get this:
0:000> !load C:\WinDDK\7600.16385.1\Debuggers\winext\ext.dll
!load C:\WinDDK\7600.16385.1\Debuggers\winext\ext.dll
The call to LoadLibrary(C:\WinDDK\7600.16385.1\Debuggers\winext\ext.dll)
failed, Win32 error 0n126
“The specified module could not be found.”
Please check your debugger configuration and/or network access.
The files in question are indeed in that path but WinDbg while in the
initial breakpoint of a service, will NOT load them. However, when I do a
chain after forcing a breakpoint from WinDbg I find that hey are indeed
loaded.
0: kd> .chain
Extension DLL search Path:
C:\WinDDK\7600.16385.1\Debuggers\WINXP;C:\WinDDK\7600.16385.1\Debuggers\wine
xt;C:\WinDDK\7600.16385.1\Debuggers\winext\arcade;C:\WinDDK\7600.16385.1\Deb
uggers\pri;C:\WinDDK\7600.16385.1\Debuggers;C:\WinDDK\7600.16385.1\Debuggers
\winext\arcade;C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C
:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\WinDD
K\7600.16385.1\Debuggers;C:\Program Files (x86)\Common Files\Roxio
Shared\DLLShared;C:\Program Files (x86)\Common Files\Roxio
Shared\DLLShared;C:\Program Files (x86)\Common Files\Roxio
Shared\DLLShared;C:\Program Files (x86)\Common Files\Roxio
Shared\12.0\DLLShared;C:\Program Files (x86)\Microsoft SQL
Server\100\Tools\Binn;C:\Program Files\Microsoft SQL
Server\100\Tools\Binn;C:\Program Files\Microsoft SQL
Server\100\DTS\Binn;C:\Program Files (x86)\Microsoft SQL
Server\100\Tools\Binn\VSShell\Common7\IDE;C:\Program Files (x86)\Microsoft
SQL Server\100\DTS\Binn;C:\Program Files (x86)\Microsoft Visual Studio
9.0\Common7\IDE\PrivateAssemblies;C:\Program Files\Microsoft Network
Monitor 3;c:\Program Files (x86)\Microsoft SQL
Server\90\Tools\binn;C:\Program Files\TortoiseSVN\bin;C:\Program
Files\Common Files\Microsoft Shared\Windows Live
Extension DLL chain:
C:\WinDDK\7600.16385.1\Debuggers\winext\uext.dll: image 6.12.0002.633,
API 1.0.0, built Mon Feb 01 14:15:36 2010
[path: C:\WinDDK\7600.16385.1\Debuggers\winext\uext.dll]
C:\WinDDK\7600.16385.1\Debuggers\winxp\ntsdexts.dll: image 6.1.7650.0,
API 1.0.0, built Mon Feb 01 14:15:18 2010
[path: C:\WinDDK\7600.16385.1\Debuggers\winxp\ntsdexts.dll]
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\SOS.dll: image
2.0.50727.4927, API 1.0.0, built Wed Jun 03 23:12:19 2009
[path: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\SOS.dll]
dbghelp: image 6.12.0002.633, API 6.1.6, built Mon Feb 01 14:15:44 2010
[path: C:\WinDDK\7600.16385.1\Debuggers\dbghelp.dll]
ext: image 6.12.0002.633, API 1.0.0, built Mon Feb 01 14:15:46 2010
[path: C:\WinDDK\7600.16385.1\Debuggers\winext\ext.dll]
exts: image 6.12.0002.633, API 1.0.0, built Mon Feb 01 14:15:38 2010
[path: C:\WinDDK\7600.16385.1\Debuggers\WINXP\exts.dll]
kext: image 6.12.0002.633, API 1.0.0, built Mon Feb 01 14:15:36 2010
[path: C:\WinDDK\7600.16385.1\Debuggers\winext\kext.dll]
kdexts: image 6.1.7650.0, API 1.0.0, built Mon Feb 01 14:15:29 2010
[path: C:\WinDDK\7600.16385.1\Debuggers\WINXP\kdexts.dll]
So whats the secret to debugging CLR code using the tools that the documents
say to use? Is this more “magic” designed to function only inside the
hallowed halls of the Redmond campus?
Gary G. Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Skywing
Sent: Wednesday, April 28, 2010 1:50 PM
To: Kernel Debugging Interest List
Subject: RE: [windbg] Off to see the Wizard …
You’ll find it shipping with the CLR. Typically,
%systemroot%\Microsoft.NET\Framework[64]\vXXX\sos.dll.
The quick way to load it when local debugging a CLR process is the command:
.loadby sos mscorwks
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gary G. Little
Sent: Wednesday, April 28, 2010 9:31 AM
To: Kernel Debugging Interest List
Subject: [windbg] Off to see the Wizard …
Or down the rabbit hole chasing a bunny in a waistecoat .
Where is sos.dll? WinDbg documentations says it is located in \clr10 of
Debugging Tools for Windows. It isn’t, in fact \clr10 does not even exist,
it never has to my knowledge. So where do I go to get sos.dll? I do find it
in \Windows\WinSxs, but if that is the correct place then please change the
docs to reflect it as such.
Gary G. Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net
__________ Information from ESET Smart Security, version of virus signature
database 5068 (20100428) __________
The message was checked by ESET Smart Security.
http://www.eset.com
WINDBG is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
WINDBG is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
__________ Information from ESET Smart Security, version of virus signature
database 5069 (20100428) __________
The message was checked by ESET Smart Security.
http://www.eset.com
__________ Information from ESET Smart Security, version of virus signature
database 5076 (20100430) __________
The message was checked by ESET Smart Security.
http://www.eset.com