dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.

Home Page:https://docs.microsoft.com/dotnet/core/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[NativeAOT] baseservices\threading\regressions\beta2\437017\437017 test failing

MichalStrehovsky opened this issue · comments

The test is doing things that expect ObjectDisposedException but this one is in some unguarded spot.

Unhandled exception. System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Microsoft.Win32.SafeHandles.SafeWaitHandle'.
   at System.Runtime.InteropServices.SafeHandle.DangerousAddRef(Boolean&) + 0x5e
   at Interop.Kernel32.SetEvent(SafeWaitHandle) + 0x34
   at System.Threading.RegisteredWaitHandle.FinishUnregisteringAsync(Object) + 0x3c
   at System.Threading.ThreadPoolWorkQueue.Dispatch() + 0x2af
   at System.Threading.WindowsThreadPool.DispatchCallback(IntPtr, IntPtr, IntPtr) + 0x97

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.