Skip to content

Deadlock in process shutdown during RCW cleanup #12536

@miguep

Description

@miguep

We have just recently started to run into this deadlock in coreclr_t::shutdown.

this is what the main thread looks like:

ntdll.dll!_KiFastSystemCallRet@0() Unknown
ntdll.dll!_ZwWaitForSingleObject@12() Unknown
KernelBase.dll!WaitForSingleObjectEx(hHandle, dwMilliseconds, bAlertable) C
hostpolicy.dll!coreclr_t::shutdown�() C++
hostpolicy.dll!run_as_app�() C++
hostpolicy.dll!_corehost_main�() C++
hostfxr.dll!fx_muxer_t::read_config_and_execute�() C++
hostfxr.dll!fx_muxer_t::handle_exec_host_command�() C++
hostfxr.dll!fx_muxer_t::execute�() C++
hostfxr.dll!_hostfxr_main_startupinfo�() C++
QualityVaultFrontEnd.exe!exe_start�() C++
QualityVaultFrontEnd.exe!_wmain�() C++
[Inline Frame] QualityVaultFrontEnd.exe!invoke_main() C++
QualityVaultFrontEnd.exe!__scrt_common_main_seh() C++
kernel32.dll!BaseThreadInitThunk(RunProcessInit, StartAddress, Argument) C
ntdll.dll!__RtlUserThreadStart(StartAddress, Argument) C
ntdll.dll!_RtlUserThreadStart(StartAddress, Argument) C

This only seems to happen when running the master (3.0.100-preview5-011487) bits, the latest release ( 3.0.100-preview4-011228) bits do not repro this issue.

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions