Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MichalStrehovsky opened this issue Nov 13, 2024 · 3 comments
Assignees
Labels
area-NativeAOT-coreclr blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab
Milestone

Comments

@MichalStrehovsky
Copy link
Member

MichalStrehovsky commented Nov 13, 2024

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: #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: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=868709
Error message validated: [SynchronizationLockException System.Threading.Monitor.Exit(Object) + 0x]
Result validation: ✅ 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 #109772

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 1
@MichalStrehovsky MichalStrehovsky added area-NativeAOT-coreclr blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab labels Nov 13, 2024
@MichalStrehovsky MichalStrehovsky added this to the 10.0.0 milestone Nov 13, 2024
Copy link
Contributor

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

@jkotas
Copy link
Member

jkotas commented Nov 22, 2024

This was assumed to be fixed by #104340 , but it does not appear to be the case.

cc @VSadov

@VSadov
Copy link
Member

VSadov commented Nov 22, 2024

The other issues was causing similar crashes in ilc, but was not observed to fail tests (or just was too rare in tests).
This is a test failure, so could be potentially a different issue.

@VSadov VSadov self-assigned this Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-NativeAOT-coreclr blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab
Projects
Status: No status
Development

No branches or pull requests

3 participants