Windbg: psscor4 not working

I searched and tried many things, but I can not get psscor4 to work correctly.

When i call! threads i always get

Failed to request ThreadStore

I checked the following things:

  • I have a .NET 4 application compiled for the X86 platform.
  • I am using Windbg version 6.2.9200.16384, X86 version
  • I am using current psscor4 from Microsoft and it is loading correctly. I am downloading the X86 version, so that should be fine.
  • Symbols are downloaded from the MS Symbol server (command .symfix +, then .reload)
  • .cordll shows the following:

    CLR DLL Status: Loaded DLL C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ mscordacwks.dll

The same thing happens when I try to use SOS with .loadby sos clr

Does anyone have any ideas?

+4
source share
2 answers

The problem is that you are debugging .NET 4.5. PSSCOR4 will not work with .NET 4.5. I also suspect that you are using .NET 4.0 on your machine for debugging, which may result in your SOS not working. To debug .NET 4.5, you need .NET 4.5 SOS and / or SOSEX (which works for all versions of .NET 2.0 +).

+5
source

I found that this problem occurs when:

  • You are using the wrong version of the extension for the .NET platform for the process (! Eeversion) - as mentioned here by Steve Johnson. To fix, check the version of .NET that this process used (! Eeversion) and download the correct version and extension bit.

OR

  • you are not using the correct version of SOS to dump the process - i.e. your SOS version is different from the SOS version on the machine on which the dump was made. To verify this, compare the result of eeversion with .chain and see if the SOS version matches. If this is not the case, make sure your character search path in WinDbg is configured correctly, and then run .symfix followed by .reload

The character search path should be set as follows:

SRV*C:\SYMBOLS\PUBLIC*http://referencesource.microsoft.com/symbols;SRV*C:\SYMBOLS\PUBLIC*http://msdl.microsoft.com/download/symbols

You can also try the solution posted on John Robbins blog: http://wintellect.com/blogs/jrobbins/automatically-load-the-right-sos-for-the-minidump

Please note that I was able to make his decision work only with WinDbg version 6.2+ - version 6.12 and below did not work.

NTN

+1
source

Source: https://habr.com/ru/post/1501799/


All Articles