DebugDiag not showing .NET stack information under .NET 4
Asked Answered
E

3

7

Feels like there's probably a simple answer to this, but I haven't been able to find it.

The scenario in question is a C# .NET Console app.

I commonly use DebugDiag 1.2 to examine .dmp files that come from hangs we experience - usually thread locking issues. They are created using DebugDiag's "Create Full Userdump" option.

I recently began compiling the app targeting .NET 4 in preparation for starting to use some of .NET 4's features. However, I noticed that when analyzing these .dmp files with DebugDiag, all the .NET stack information is missing.

If I change the CLR target back to .NET 3.5, and capture a .dmp from the new executable, the .NET call stack information is there.

When I look at the output of DebugDiag, I see one note that says:

CLR Information

CLR version = 4.0.30319.17929 CLR Debugger Extension = C:\Program Files\DebugDiag\Exts\psscor4.dll

.NET Threads Summary

Failed to request ThreadStore

I presume that 'Failed to Requested ThreadStore' is the key to the issue, since the .NET 3.5 .DMP file (which is using psscor2.dll) reports all the thread information under the 'Threads Summary' header.

Is the issue that the .dmp is missing information, or DebugDiag is unable to retrieve it for some reason?

Eject answered 29/1, 2013 at 18:13 Comment(3)
possible duplicate of Using WinDbg/SOS to debug managed->native callstack. I get "Failed to request ThreadStore"Zadoc
Similar, but different. The resolution of the other issue is "minidump type has to be MiniDumpWithFullMemory". OP says this is a full memory dump, and it works OK in .NET 3.5.Stillwell
JakeL: Did you find a solution for this? I created this thread which may be related: #17433060Prod
E
3

Ultimately, this one solved itself. I sent a question to Microsoft about it, and they said that DebugDiag 1.1 does not support .NET 4+. They released v1.2 not too long ago, which does - works like a charm again:

http://www.microsoft.com/en-us/download/details.aspx?id=26798

Eject answered 17/2, 2014 at 16:29 Comment(0)
E
0

Assuming you're taking a full dump, it may be related to how it co-locates sos. Under 3.5 it would co-locate using mscorlib whereas under CLR 4 it would co-locate using clr. It would be up to whoever wrote debugdiag to be CLR 4 tolerant.

Entopic answered 13/6, 2013 at 21:48 Comment(0)
O
0

I faced the same issue and for me it helped to delete psscor4.dll from the sub-directory "exts" of DebugDiag

In the DebugDiag-Report, my CLR-runtime ist now shown as:

CLR Information

CLR version = 4.0.30319.18052

CLR Debugger Extension = C:\Windows\Microsoft.NET\Framework\v4.0.30319\sos.dll

PS: Please take care to use the right version of DebugDiag (32-bit vs. 64-bit).

Odawa answered 17/7, 2013 at 5:9 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.