Skip to content

dotnet hang in JIT #55323

Closed
Closed
@mfilippov

Description

@mfilippov

Description

dotnet.exe hang in JIT in ctor call with stack:

  3.05%   HostTextControl..ctor  •  34,929 ms  •  JetBrains.RdBackend.Common.Features.TextControls.HostTextControl..ctor(IDocument, IShellLocks, IActionManager, ChangeManager, DocumentChangeManager, RiderTextControlActionExecuter, Int32)
    3.05%   coreclr.dll  •  34,929 ms
      3.05%   PreStubWorker  •  34,929 ms  •  coreclr.dll!PreStubWorker
        3.05%   MethodDesc::DoPrestub  •  34,929 ms  •  coreclr.dll!MethodDesc::DoPrestub
          3.05%   CodeVersionManager::PublishVersionableCodeIfNecessary  •  34,929 ms  •  coreclr.dll!CodeVersionManager::PublishVersionableCodeIfNecessary
            3.05%   MethodDesc::JitCompileCode  •  34,929 ms  •  coreclr.dll!MethodDesc::JitCompileCode
              3.05%   MethodDesc::JitCompileCodeLockedEventWrapper  •  34,929 ms  •  coreclr.dll!MethodDesc::JitCompileCodeLockedEventWrapper
                3.05%   MethodDesc::JitCompileCodeLocked  •  34,929 ms  •  coreclr.dll!MethodDesc::JitCompileCodeLocked
                  3.05%   UnsafeJitFunction  •  34,929 ms  •  coreclr.dll!UnsafeJitFunction
                    3.05%   CILJit::compileMethod  •  34,929 ms  •  clrjit.dll!CILJit::compileMethod
                      3.05%   jitNativeCode  •  34,929 ms  •  clrjit.dll!jitNativeCode
                        3.05%   Compiler::compCompile  •  34,929 ms  •  clrjit.dll!Compiler::compCompile
                          3.05%   Compiler::compCompileHelper  •  34,929 ms  •  clrjit.dll!Compiler::compCompileHelper
                            3.05%   Compiler::compCompile  •  34,929 ms  •  clrjit.dll!Compiler::compCompile
                              3.05%   Compiler::fgImport  •  34,929 ms  •  clrjit.dll!Compiler::fgImport
                                3.05%   Compiler::impImport  •  34,929 ms  •  clrjit.dll!Compiler::impImport
                                  3.05%   Compiler::impImportBlock  •  34,929 ms  •  clrjit.dll!Compiler::impImportBlock
                                    3.05%   Compiler::impImportBlockCode  •  34,929 ms  •  clrjit.dll!Compiler::impImportBlockCode
                                      3.05%   CEEInfo::resolveToken  •  34,929 ms  •  coreclr.dll!CEEInfo::resolveToken
                                        3.05%   MemberLoader::GetDescFromMemberRef  •  34,929 ms  •  coreclr.dll!MemberLoader::GetDescFromMemberRef
                                          3.05%   SigPointer::GetTypeHandleThrowing  •  34,929 ms  •  coreclr.dll!SigPointer::GetTypeHandleThrowing
                                            3.05%   ClassLoader::LoadGenericInstantiationThrowing  •  34,929 ms  •  coreclr.dll!ClassLoader::LoadGenericInstantiationThrowing
                                              3.05%   ClassLoader::LoadTypeDefThrowing  •  34,929 ms  •  coreclr.dll!ClassLoader::LoadTypeDefThrowing
                                                3.05%   ClassLoader::LoadTypeHandleForTypeKey  •  34,929 ms  •  coreclr.dll!ClassLoader::LoadTypeHandleForTypeKey
                                                  3.05%   MethodTable::DoFullyLoad  •  34,929 ms  •  coreclr.dll!MethodTable::DoFullyLoad
                                                    3.05%   MethodTable::DoFullyLoad  •  34,929 ms  •  coreclr.dll!MethodTable::DoFullyLoad
                                                      3.05%   TypeHandle::DoFullyLoad  •  34,929 ms  •  coreclr.dll!TypeHandle::DoFullyLoad
                                                        3.05%   MethodTable::DoFullyLoad  •  34,929 ms  •  coreclr.dll!MethodTable::DoFullyLoad
                                                          3.05%   MethodTable::DoFullyLoad  •  34,929 ms  •  coreclr.dll!MethodTable::DoFullyLoad
                                                            3.05%   TypeHandle::DoFullyLoad  •  34,929 ms  •  coreclr.dll!TypeHandle::DoFullyLoad
                                                              3.05%   MethodTable::DoFullyLoad  •  34,929 ms  •  coreclr.dll!MethodTable::DoFullyLoad
                                                                3.05%   ClassLoader::EnsureLoaded  •  34,929 ms  •  coreclr.dll!ClassLoader::EnsureLoaded
                                                                  3.05%   ClassLoader::LoadTypeHandleForTypeKey  •  34,929 ms  •  coreclr.dll!ClassLoader::LoadTypeHandleForTypeKey
                                                                    3.05%   ClassLoader::LoadTypeHandleForTypeKey_Body  •  34,929 ms  •  coreclr.dll!ClassLoader::LoadTypeHandleForTypeKey_Body
                                                                      3.05%   MethodTableBuilder::LoadExactInterfaceMap  •  34,929 ms  •  coreclr.dll!MethodTableBuilder::LoadExactInterfaceMap
                                                                      ► 1.02%   MDInternalRW::EnumInit  •  11,693 ms  •  coreclr.dll!MDInternalRW::EnumInit
                                                                      ► 0.66%   ClassLoader::LoadTypeDefOrRefOrSpecThrowing  •  7,578 ms  •  coreclr.dll!ClassLoader::LoadTypeDefOrRefOrSpecThrowing
                                                                      ► 0.24%   InstantiationIsAllTypeVariables  •  2,710 ms  •  coreclr.dll!InstantiationIsAllTypeVariables
                                                                      ► 0.16%   ClassLoader::LoadTypeDefThrowing  •  1,828 ms  •  coreclr.dll!ClassLoader::LoadTypeDefThrowing
                                                                      ► 0.12%   MDInternalRW::GetTypeSpecFromToken  •  1,381 ms  •  coreclr.dll!MDInternalRW::GetTypeSpecFromToken
                                                                      ► 0.10%   MethodTable::GetInstantiation  •  1,170 ms  •  coreclr.dll!MethodTable::GetInstantiation
                                                                      ► 0.10%   MethodTable::InterfaceMapIterator::GetInterface  •  1,105 ms  •  coreclr.dll!MethodTable::InterfaceMapIterator::GetInterface
                                                                      ► 0.05%   MDInternalRW::GetTypeOfInterfaceImpl  •  629 ms  •  coreclr.dll!MDInternalRW::GetTypeOfInterfaceImpl
                                                                      ► 0.05%   MethodTable::GetCl  •  524 ms  •  coreclr.dll!MethodTable::GetCl
                                                                      ► 0.04%   ntdll.dll  •  430 ms
                                                                      ► 0.04%   MethodTable::GetModule  •  428 ms  •  coreclr.dll!MethodTable::GetModule
                                                                      ► 0.03%   [Unknown]  •  294 ms
                                                                      ► 0.02%   MethodTable::InterfaceMapIterator::GetInterfaceApprox  •  218 ms  •  coreclr.dll!MethodTable::InterfaceMapIterator::GetInterfaceApprox
                                                                      ► 0.02%   Module::IsSystem  •  179 ms  •  coreclr.dll!Module::IsSystem
                                                                      ► 0.01%   MethodTable::ContainsGenericVariables  •  170 ms  •  coreclr.dll!MethodTable::ContainsGenericVariables
                                                                      ► <0.01%   coreclr.dll  •  73 ms
                                                                      ► <0.01%   MethodTable::IsSpecialMarkerTypeForGenericCasting  •  53 ms  •  coreclr.dll!MethodTable::IsSpecialMarkerTypeForGenericCasting
                                                                        <0.01%   [Waiting for CPU]  •  6.2 ms

Configuration

Windows 10 x64
dotnet-runtime-6.0.0-preview.7.21357.14-win-x64

Regression?

yes, preview5 works fine

Other information

I verified issue on main (7b0cdaf) it still there.
I can't create a small repro but I have 100% repro in our tests.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions