rodneyviana / netext

WinDbg extension for data mining managed heap. It also includes commands to list http request, wcf services, WIF tokens among others
http://blogs.msdn.microsoft.com/rodneyviana
Other
224 stars 35 forks source link

"Unable to create type CLRMDActivator" #10

Closed loop-evgeny closed 4 years ago

loop-evgeny commented 4 years ago

Just tried netext for the first time on a .NET Core dump. It went like this:

0:000> .load netext
netext version 2.1.51.5000 Nov 22 2019
License and usage can be seen here: !whelp license
Check Latest version: !wupdate
For help, type !whelp (or in WinDBG run: '.browse !whelp')
Questions and Feedback: https://github.com/rodneyviana/netext/issues 
Copyright (c) 2014-2015 Rodney Viana (http://blogs.msdn.com/b/rodneyviana) 
Type: !windex -tree or ~*e!wstack to get started

0:000> !windex -tree
ERROR: Unable to create type CLRMDActivator. More information below
Base Path: C:\Program Files\Debugging Tools for Windows (x64)
Private Path: C:\Program Files\Debugging Tools for Windows (x64)\
Unable to start NetExtShim.Dll. Make sure all the files are in the WinDbg root folder. Error: 8027025b
c0000005 Exception in netext.windex debugger extension.
      PC: 000007fe`e6a4c86b  VA: 00000000`00000000  R/W: 0  Parameter: 00000000`00000000

I did extract the x64 version of netext into C:\Program Files\Debugging Tools for Windows (x64), as instructed. (NetExtShim.dll is there, too.)

rodneyviana commented 4 years ago

Hi Loop,

It is not necessary to have NetExt on the same folder of Debugger anymore. Are you using WinDbgX (the new beta version) or the classic WinDbg? Can you show me the the output of: lmv m coreclr And: .coredll -l

Thanks,

Rodney

loop-evgeny commented 4 years ago

I'm using the classic WinDbg: 6.12.0002.633 (x64).

0:000> lmv m coreclr
start             end                 module name
00007ffc`e4b70000 00007ffc`e5132000   coreclr    (deferred)             
    Image path: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.1.11\coreclr.dll
    Image name: coreclr.dll
    Timestamp:        Wed Apr 17 23:20:47 2019 (5CB798AF)
    CheckSum:         005ADF27
    ImageSize:        005C2000
    File version:     4.6.27617.4
    Product version:  4.6.27617.4
    File flags:       8 (Mask 3F) Private
    File OS:          4 Unknown Win32
    File type:        0.0 Unknown
    File date:        00000000.00000000
    Translations:     0409.04b0
    CompanyName:      Microsoft Corporation
    ProductName:      Microsoft® .NET Core
    InternalName:     CoreCLR.dll
    OriginalFilename: CoreCLR.dll
    ProductVersion:   4.6.27617.04 @BuiltBy: dlab14-DDVSOWINAGE101 @Branch: release/2.1 @SrcCode: https://github.com/dotnet/coreclr/tree/7f21870886d89131889af3527e140cf3f366bfe2
    FileVersion:      4.6.27617.04 @BuiltBy: dlab14-DDVSOWINAGE101 @Branch: release/2.1 @SrcCode: https://github.com/dotnet/coreclr/tree/7f21870886d89131889af3527e140cf3f366bfe2
    PrivateBuild:     FX_VER_PRIVATEBUILD_STR
    FileDescription:  Microsoft .NET Runtime
    LegalCopyright:   © Microsoft Corporation.  All rights reserved.
    Comments:         Flavor=Retail
0:000> .coredll -l
                 ^ Syntax error in '.coredll -l'
rodneyviana commented 4 years ago

I am on vacation far from my computer, I misspelt the command, it was supposed to be .cordll -l However, you will need a much more modern WinDbg (10.x) that is installed via SDK, you may skip all other SDK installation and only install Debugging tools. See more here: https://blogs.msdn.microsoft.com/rodneyviana/2015/03/10/getting-started-with-netext/

Also you need at least .NET 4.5 on your machine.

rodneyviana commented 4 years ago

Closing for inactivity. Please reopen if you still need assistance on this.