Skip to content

Test failure: System.Threading.Overlapped.Tests crash with IOException handle is invalid on Windows ARM64 #127366

@dhartglassMSFT

Description

@dhartglassMSFT

It is possible this is not a jit issue, though I couldn't find occurrences in other pipelines

Bug description generated from AI:
Summary:
Overlapped test crash with IOException when EventWaitHandle.Set fails in IO completion callback on Windows ARM64.

Failed in (1):

Console Log: Console Log
Source: runtime-coreclr libraries-pgo / net11.0-windows-Release-arm64-defaultpgo-Windows.11.Arm64.Open / System.Threading.Overlapped.Tests

Failed tests:

- net11.0-windows-Release-arm64-defaultpgo-Windows.11.Arm64.Open
  - System.Threading.Overlapped.Tests

Error Message:

Unhandled exception. System.IO.IOException: The handle is invalid.
   at System.Threading.EventWaitHandle.Set()
   at AsyncHelper.Callback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* _overlapped)
   at System.Threading.PortableThreadPool.IOCompletionPoller.Event.Invoke()

Stack Trace:

at System.Threading.EventWaitHandle.Set()
   at AsyncHelper.Callback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* _overlapped)
   at System.Threading.PortableThreadPool.IOCompletionPoller.Event.Invoke()
   at System.Threading.ThreadPoolTypedWorkItemQueue.System.Threading.IThreadPoolWorkItem.Execute()

Analysis:
Race condition or premature disposal of event handle. Exit code 0xE0434352 = CLR unhandled exception. Under defaultpgo stress. No existing issue found.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions