dotnet / runtime

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

[NativeAOT] Object synchronization method was called from an unsynchronized block of code #109800

Open MichalStrehovsky opened 1 day ago

MichalStrehovsky commented 1 day ago
Unhandled exception. System.Threading.SynchronizationLockException: Object synchronization method was called from an unsynchronized block of code.
   at System.Threading.Monitor.Exit(Object) + 0x170
   at System.Runtime.CompilerServices.ConditionalWeakTable`2.Container.Finalize() + 0xdc
   at System.Runtime.__Finalizer.DrainQueue() + 0x4c
   at System.Runtime.__Finalizer.ProcessFinalizers() + 0x8c

Build Information

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

Error Message

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

{
  "ErrorMessage": ["SynchronizationLockException", "System.Threading.Monitor.Exit(Object) + 0x"],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=868709 Error message validated: [SynchronizationLockException System.Threading.Monitor.Exit(Object) + 0x] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 11/13/2024 9:38:22 PM UTC

Report

Build Definition Test Pull Request
868709 dotnet/runtime System.Runtime.Tests.WorkItemExecution dotnet/runtime#109772

Summary

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

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