Dumpheap when prompted:
0:105> !dumpheap-stat
The garbage collector data structures is not in a valid state for traversal.
It is either in the "Plan phase," where objects is being moved around, or
We are at the initialization or shutdown of the GC heap. Commands related to
displaying, finding or traversing objects as well as GC heap segments
Work properly. !dumpheap and!verifyheap may incorrectly complain of heap
Consistency errors.
Error requesting GC Heap data
Unable to build snapshot of the garbage collector State
This situation is mostly due to an SOS version mismatch:
0:105>. Cordll–ve–u–l
clrdll:loaded DLL C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscordacwks.dll
CLR DLL status:loaded DLL C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscordacwks.dll
. cordll–ve–u–l (lowercase L) This command is the command to control the debugging and control of the CLR,-ve is to display details,-u unload module,-l (lowercase l) is the load module, the above command is to unload the CLR debugging module, and then load the CLR debugging module, and display the details
Seems to have loaded correctly, at this point, rerun Dumpheap, the error still exists.
0:105>. Chain
Extension DLL Search Path:
d:\windbg\winxp;d:\windbg\winext;d:\windbg\winext\arcade;d:\ Windbg\pri;d:\windbg;d:\windbg\winext\arcade; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Program Files\7-zip;d:\program Files (x86) \microsoft SQL Server\100\tools\binn\;D: \program Files\Microsoft SQL server\100\tools\binn\;D: \program Files\Microsoft SQL Server\100\dts\binn\;D: \program Files (x86) \microsoft SQL Server\100\tools\binn\vsshell\common7\ide\;D: \program Files (x86) \microsoft SQL server\100\dts\binn\; C:\Windows\System32\WindowsPowerShell\v1.0\;D: \program Files\java\jdk1.6.0_25\bin;d:\program files\java\jdk1.6.0 _25\jre\bin
Extension DLL chain:
sosex:image 4.5.0.0, API 1.0.0, built Wed Oct 03 22:57:55 201 2
[Path:d:\windbg\sosex.dll]
Sos:image 4.0.30319.18408, API 1.0.0, built Thu Sep 06 14:07:11 2012
[Path:d:\windbg\sos.dll]
C:\windows\microsoft.net\framework64\v4.0.30319\sos:image 4.0.30319.18408, API 1.0.0, built Thu Sep 12 08:02:43 2013
[Path:c:\windows\microsoft.net\framework64\v4.0.30319\sos.dll]
Dbghelp:image 6.13.0001.776, API 6.1.6, built Sat May 15 04:57:22 2010
[Path:d:\windbg\dbghelp.dll]
Ext:image 6.13.0001.776, API 1.0.0, built Sat May 15 04:57:40 2010
[Path:d:\windbg\winext\ext.dll]
Exts:image 6.13.0001.776, API 1.0.0, built Sat May 15 04:57:13 2010
[Path:d:\windbg\winxp\exts.dll]
Uext:image 6.13.0001.776, API 1.0.0, built Sat May 15 04:57:09 2010
[Path:d:\windbg\winext\uext.dll]
Ntsdexts:image 6.1.7752.0, API 1.0.0, built Sat May 15 04:52:37 2010
[Path:d:\windbg\winxp\ntsdexts.dll]
Seemingly loaded with two SOS.dll
0:105>. Unload SOS
Unloading SOS extension DLL
0:105>. Chain
Extension DLL Search Path:
D:\windbg\winxp;d:\windbg\winext;d:\windbg\winext\arcade;d:\windbg\pri;d:\windbg;d:\windbg\winext\arcade; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Program Files\7-zip;d:\program Files (x86) \microsoft SQL Server\100\tools\binn\;D: \program Files\Microsoft SQL server\100\tools\binn\;D: \program Files\Microsoft SQL Server\100\dts\binn\;D: \program Files (x86) \microsoft SQL Server\100\tools\binn\vsshell\common7\ide\;D: \program Files (x86) \microsoft SQL server\100\dts\binn\; C:\Windows\System32\WindowsPowerShell\v1.0\;D: \program Files\java\jdk1.6.0_25\bin;d:\program files\java\jdk1.6.0 _25\jre\bin
Extension DLL Chain:
C:\windows\microsoft.net\framework64\v4.0.30319\sos:image 4.0.30319.18408, API 1.0.0, built Thu Sep 12 08:02:43 2013
[Path:c:\windows\microsoft.net\framework64\v4.0.30319\sos.dll]
Dbghelp:image 6.13.0001.776, API 6.1.6, built Sat May 15 04:57:22 2010
[Path:d:\windbg\dbghelp.dll]
Ext:image 6.13.0001.776, API 1.0.0, built Sat May 15 04:57:40 2010
[Path:d:\windbg\winext\ext.dll]
Exts:image 6.13.0001.776, API 1.0.0, built Sat May 15 04:57:13 2010
[Path:d:\windbg\winxp\exts.dll]
Uext:image 6.13.0001.776, API 1.0.0, built Sat May 15 04:57:09 2010
[Path:d:\windbg\winext\uext.dll]
Ntsdexts:image 6.1.7752.0, API 1.0.0, built Sat May 15 04:52:37 2010
[Path:d:\windbg\winxp\ntsdexts.dll]
At this point, there is only one SOS, in the Run dumpheap try:
0:105>!dumpheap-stat
Statistics:
MT Count totalsize Class Name
000007fef29fd978 1 System.Xml.Linq.XHashtable ' 1[[system.weakreference, mscorlib]
000007fef29fd880 1 System.Xml.Linq.XHashtable ' 1[[system.xml.linq.xname, System.Xml.Linq]
...
Recommend the article of the Chair colleague, listing the various possibilities:
Http://www.cnblogs.com/softfair/p/The_version_SOS_not_match_version_of_CLR_PDB_symbol_for_clr_dll_not_loaded.html
WinDbg SOS version mismatch problem resolution