Windbg dump framework 4 and framework 2 dlls loaded

I took a dump from a SharePoint 2010 w3wp process, to analyze several exceptions, in my local machine.

The server had the .Net framework 2.0 and .Net framework 4.0 installed.

The SharePoint 2010 AppPool was configured to run in .net 2.0 (you can validate that in IIS admin console).

I copied the server dlls (mscorwks.dll, mscordacwks.dll and sos.dll) from .net framework 2.0 – 64 bits folder, from server, to my local disk (G:\Microsoft\temp\2.0\).

I run windbg (64 bits version), open my crash dump, and loaded the dlls.

0:000> !load G:\Microsoft\temp\2.0\sos.dll
0:000> !load G:\Microsoft\temp\2.0\mscorwks.dll
0:000> !load G:\Microsoft\temp\2.0\mscordacwks.dll

Then I started with the debugging, but when run the “DumpHeap -stat” command I had an error:

0:000> !DumpHeap -stat
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: 4.0.30319.1
SOS Version: 2.0.50727.4216
Error requesting details

To solve this:

  1. Renamed  and copied my mscordacwks.dll to symbols path (at bold you can see the Dlls version). c:\symbols\mscordacwks_AMD64_AMD64_2.0.50727.4216.dll\4E1545829a3000\mscordacwks_AMD64_AMD64_2.0.50727.4216.dll)
  2. run  .cordll -I mscorwks.dll -N -ve
  3. loaded the psscor2.dll 64 bits (http://www.microsoft.com/en-us/download/details.aspx?id=1073)

My debugging session:

0:000> !load G:\Microsoft\temp\2.0\sos.dll
0:000> !load G:\Microsoft\temp\2.0\mscorwks.dll
0:000> !load G:\Microsoft\temp\2.0\mscordacwks.dll
0:000> .cordll -I mscorwks.dll -N -ve
NOTE: This code is not supported and may not work.
Do not report any problems you have.
CLR DLL status: Loaded DLL c:\symbols\mscorwks.dll\4E1545829a3000\mscordacwks_AMD64_AMD64_2.0.50727.4216.dll
Test new CLR interfaces
0:000>  .cordll -I mscorwks.dll -N -ve
CLRDLL: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscordacwks.dll:2.0.50727.6400 f:0
doesn’t match desired version 2.0.50727.4216 f:0
CLRDLL: Unable to find mscordacwks_AMD64_AMD64_2.0.50727.4216.dll by mscorwks search
CLRDLL: Unable to find ‘mscordacwks_AMD64_AMD64_2.0.50727.4216.dll’ on the path
CLRDLL: Loaded DLL c:\symbols\mscorwks.dll\4E1545829a3000\mscordacwks_AMD64_AMD64_2.0.50727.4216.dll
NOTE: This code is not supported and may not work.
Do not report any problems you have.
CLR DLL status: Loaded DLL c:\symbols\mscorwks.dll\4E1545829a3000\mscordacwks_AMD64_AMD64_2.0.50727.4216.dll
Test new CLR interfaces
0:000> !DumpHeap -stat
Error requesting details
Unable to build snapshot of the garbage collector state
0:000> !DumpHeap -stat
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: 4.0.30319.1
SOS Version: 2.0.50727.4216
Error requesting details
Unable to build snapshot of the garbage collector state
0:000> !load G:\Microsoft\Debug\psscor2\psscor2\amd64\psscor2.dll
0:000> !DumpHeap -stat
Using our cache to search the heap.
0x000007ff01bc0f50          1            24 <Unloaded Type>
0x000007ff01ab72a0          1            24 System.Collections.Generic.ObjectEqualityComparer`1[[System.Data.ProviderBase.DbConnectionPoolGroup, System.Data]]
0x000007ff01ab71b0          1            24 System.Collections.Generic.ObjectEqualityComparer`1[[System.Data.ProviderBase.DbConnectionPool, System.Data]]
0x000007ff01ab6e28          1            24 System.Collections.Generic.ObjectEqualityComparer`1[[System.Data.Index, System.Data]]
0x000007ff01ab6d38          1            24 System.Collections.Generic.ObjectEqualityComparer`1[[System.Data.ProviderBase.DbConnectionInternal, System.Data]]

Advertisements

Tags:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: