You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PosixSignalRegistrationTests fail on windows x86 Debug #126430
Dump Analysis Summary
Dump: 4512.ufwd3l02.edg.dmp from Helix job 0cec3df3-7b2b-48a5-b33c-5d105185f845, work item
System.Runtime.InteropServices.Tests
Environment (from dump PEB & minidump headers):
┌────────────────┬──────────────────────────────────────────────────────────────────────────┐
│ Field │ Value │
├────────────────┼──────────────────────────────────────────────────────────────────────────┤
│ OS │ Windows Server 2016 Datacenter 10.0.14393.8781 (rs1_release.251224-1746) │
├────────────────┼──────────────────────────────────────────────────────────────────────────┤
│ ProductType │ Server (TerminalServer DataCenter SingleUserTS) │
├────────────────┼──────────────────────────────────────────────────────────────────────────┤
│ SessionId │ 1 (interactive session) │
├────────────────┼──────────────────────────────────────────────────────────────────────────┤
│ Architecture │ x86 (WoW64 on AMD64) │
├────────────────┼──────────────────────────────────────────────────────────────────────────┤
│ CLR Version │ 42.42.42.42424 (dev build) │
├────────────────┼──────────────────────────────────────────────────────────────────────────┤
│ Machine │ a001FG5 │
├────────────────┼──────────────────────────────────────────────────────────────────────────┤
│ User │ runner │
├────────────────┼──────────────────────────────────────────────────────────────────────────┤
│ Process Uptime │ 62 seconds at dump time │
└────────────────┴──────────────────────────────────────────────────────────────────────────┘
4 threads in the process. Thread 0 is the hung thread:
Thread 0 (0xC44) — Hung in AllocConsole:
ntdll!NtCreateFile+0xc
KERNELBASE!ConsoleCreateConnectionObject+0x138
KERNELBASE!ConsoleAllocate+0xf5
KERNELBASE!AllocConsole+0x3c
<managed P/Invoke transition>
coreclr!CallDescrWorkerInternal+0x47
coreclr!CallDescrWorker+0xe9
coreclr!CallDescrWorkerWithHandler+0xef
coreclr!RuntimeMethodHandle_InvokeMethod+0x968
System.Tests.PosixSignalRegistrationTests+<>c.<ExternalConsoleManipulation_RegistrationRemoved_UnregisterSucceeds
>b__13_0()
System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(...)
System.Reflection.MethodBase.Invoke(...)
Microsoft.DotNet.RemoteExecutor.Program.Main(String[])
coreclr!RunMainInternal → Assembly::ExecuteMainMethod → CorHost2::ExecuteAssembly
hostpolicy → hostfxr → dotnet.exe
NtCreateFile args from stack: ObjectAttributes.RootDirectory = handle 0x74 (ConDrv device),
ObjectAttributes.ObjectName = "\Connect". The process is blocked in the kernel opening \Device\ConDrv\Connect to
create a new console connection.
Thread 1 (0xAE0) — Diagnostics IPC (idle):
ntdll!NtWaitForMultipleObjects → KERNELBASE!WaitForMultipleObjectsEx
coreclr!ds_ipc_poll → ds_ipc_stream_factory_get_next_available_stream → server_loop_tick → server_thread
Thread 2 (0x2C4) — Debugger RC thread (idle):
ntdll!NtWaitForMultipleObjects → KERNELBASE!WaitForMultipleObjectsEx
coreclr!DebuggerRCThread::MainLoop → ThreadProc → ThreadProcStatic
Thread 3 (0x2B8) — Finalizer (idle):
ntdll!NtWaitForMultipleObjects → KERNELBASE!WaitForMultipleObjectsEx
coreclr!FinalizerThread::WaitForFinalizerEvent → FinalizerThreadWorkerIteration → FinalizerThreadStart
No critical sections held (cdb !locks scanned 12 critical sections, none owned). No managed exceptions. The process
is simply blocked in the kernel waiting for NtCreateFile to complete on \Device\ConDrv\Connect.
Prior Occurrences
All instances of this specific AllocConsole hang were on the Windows.10.Amd64.Open Helix queue (Windows Server
2016):
┌──────────────────────────────────────────────────────────────┬────────┬────────────────────┬─────────────────────┐
│ Issue │ Date │ Config │ Resolution │
├──────────────────────────────────────────────────────────────┼────────┼────────────────────┼─────────────────────┤
│ #107412 (https://github.com/dotnet/runtime/issues/107412) │ Sep │ x64 Release, │ Closed — didn't │
│ │ 2024 │ Win2016 │ repro │
├──────────────────────────────────────────────────────────────┼────────┼────────────────────┼─────────────────────┤
│ #108210 (https://github.com/dotnet/runtime/issues/108210) │ Sep │ x86 jitstress2, │ Closed — recurring │
│ │ 2024 │ Win2016 │ flake │
├──────────────────────────────────────────────────────────────┼────────┼────────────────────┼─────────────────────┤
│ #126430 (this) │ Apr │ x86 Debug, Win2016 │ Open │
│ │ 2026 │ │ │
└──────────────────────────────────────────────────────────────┴────────┴────────────────────┴─────────────────────┘
Analysis
- Not a .NET code regression. The test hasn't changed since
2022. The triggering PR (#126406 (https://github.com/dotnet/runtime/pull/126406)) is unrelated.
- Not Session
0. The dump PEB shows SessionId=1 (interactive).
- Win2016 correlation. All 3 occurrences were on Win Server 2016 (build 14393, RS1). No occurrences on newer OS
versions. No public documentation confirms a specific AllocConsole defect on this OS version, but the correlation
across 3 independent failures spanning 2 years is notable.
- Hang mechanism. ConsoleCreateConnectionObject calls NtCreateFile on \Device\ConDrv\Connect to establish a new
console connection. This syscall is blocked in the kernel — no locks are held in user space, so this is a
kernel-side block (likely waiting for conhost.exe to respond or for the ConDrv driver to complete the connection
request).
Suggested Fix
Since this is an intermittent Win2016 environmental issue that has recurred over 2 years:
1. Skip on Win2016 via [ConditionalFact] with an OS build check (build ≤ 14393), or
2. Add [ActiveIssue] referencing this issue to exclude the test on affected queues, or
3. Add a timeout guard — run AllocConsole on a background thread with a short timeout and skip (not fail) if it
doesn't return
Activity
MihuBot commentedon Apr 1, 2026
I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):
dotnet-policy-service commentedon Apr 1, 2026
Tagging subscribers to this area: @dotnet/interop-contrib
See info in area-owners.md if you want to be subscribed.
jkotas commentedon Apr 1, 2026
Hang inside NtCreateFile:
mangod9 commentedon Apr 2, 2026
some dump analysis:
jkotas commentedon Apr 2, 2026
Win2016 is the default helix queue for Win x64 testing, so it is to be expected that intermittent failures are going to show up there.
We can do nothing and just keep this known issue open. It is fine to have known issues for suspected OS issues that are only hit a few times per year.
mangod9 commentedon Apr 2, 2026
Is this something we are looking into upgrading soon-ish?
dotnet-policy-service commentedon Apr 13, 2026
Tagging subscribers to this area: @dotnet/interop-contrib
See info in area-owners.md if you want to be subscribed.
jeffschwMSFT commentedon May 5, 2026
removing blocking-clean-ci as it has not failed in 30 days