dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.46k stars 4.76k forks source link

Assertion failed in SafeFileHandle.OverlappedValueTaskSource.IOCallback #99517

Open MichalStrehovsky opened 8 months ago

MichalStrehovsky commented 8 months ago

In System.IO.FileSystem tests

Process terminated. Assertion failed.
   at Microsoft.Win32.SafeHandles.SafeFileHandle.OverlappedValueTaskSource.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOverlapped) in /_/src/libraries/System.Private.CoreLib/src/Microsoft/Win32/SafeHandles/SafeFileHandle.OverlappedValueTaskSource.Windows.cs:line 193
   at System.Threading.ThreadPoolTypedWorkItemQueue`2.System.Threading.IThreadPoolWorkItem.Execute() in /_/src/libraries/System.Private.CoreLib/src/System/Threading/ThreadPoolWorkQueue.cs:line 1128
   at System.Threading.ThreadPoolWorkQueue.Dispatch() in /_/src/libraries/System.Private.CoreLib/src/System/Threading/ThreadPoolWorkQueue.cs:line 913
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() in /_/src/libraries/System.Private.CoreLib/src/System/Threading/PortableThreadPool.WorkerThread.NonBrowser.cs:line 102
----- end Mon 03/11/2024  7:15:25.24 ----- exit code -2146232797 ----------------------------------------------------------

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=597206 Build error leg or test failing: System.IO.FileSystem.Tests.WorkItemExecution Pull request: https://github.com/dotnet/runtime/pull/99513

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "at Microsoft.Win32.SafeHandles.SafeFileHandle.OverlappedValueTaskSource.IOCallback",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=597206 Error message validated: [at Microsoft.Win32.SafeHandles.SafeFileHandle.OverlappedValueTaskSource.IOCallback] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 3/11/2024 8:10:40 AM UTC

Report

Build Definition Test Pull Request
879417 dotnet/runtime System.IO.FileSystem.Tests.WorkItemExecution
875370 dotnet/runtime System.IO.FileSystem.Tests.WorkItemExecution dotnet/runtime#108824

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 1 2
dotnet-policy-service[bot] commented 8 months ago

Tagging subscribers to this area: @dotnet/area-system-io See info in area-owners.md if you want to be subscribed.

stephentoub commented 8 months ago

at Microsoft.Win32.SafeHandles.SafeFileHandle.OverlappedValueTaskSource.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOverlapped) in /_/src/libraries/System.Private.CoreLib/src/Microsoft/Win32/SafeHandles/SafeFileHandle.OverlappedValueTaskSource.Windows.cs:line 193

Debug.Assert(numBytes < int.MaxValue); in the IO callback is an interesting assert to be failing.

jeffschwMSFT commented 6 months ago

removing blocking-clean-ci as it has not failed in 30 days

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0