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

Assertion failed (pThread->m_StateNC & Thread::TSNC_OwnsSpinLock) == 0 #104449

Closed
jakobbotsch opened this issue Jul 4, 2024 · 5 comments · Fixed by #107438
Closed

Assertion failed (pThread->m_StateNC & Thread::TSNC_OwnsSpinLock) == 0 #104449

jakobbotsch opened this issue Jul 4, 2024 · 5 comments · Fixed by #107438
Assignees
Labels
area-VM-coreclr blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' blocking-clean-ci-optional Blocking optional rolling runs in-pr There is an active PR which will close this issue when it is merged Known Build Error Use this to report build issues in the .NET Helix tab
Milestone

Comments

@jakobbotsch
Copy link
Member

jakobbotsch commented Jul 4, 2024

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=730601
Build error leg or test failing: System.Reflection.Tests.WorkItemExecution
Pull request: #104429

Error Message

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

{
  "ErrorMessage": "(pThread->m_StateNC & Thread::TSNC_OwnsSpinLock) == 0",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=730601
Error message validated: [(pThread->m_StateNC & Thread::TSNC_OwnsSpinLock) == 0]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 7/4/2024 7:50:45 PM UTC

Report

Build Definition Test Pull Request
801531 dotnet/runtime System.Reflection.Tests.WorkItemExecution #107531
799241 dotnet/runtime System.Reflection.Tests.WorkItemExecution #107403
797869 dotnet/runtime System.Reflection.Tests.WorkItemExecution #107371
797585 dotnet/runtime System.Reflection.Tests.WorkItemExecution #107358
795103 dotnet/runtime System.Reflection.Tests.WorkItemExecution #104503
794876 dotnet/runtime System.Reflection.Tests.WorkItemExecution #107201
794247 dotnet/runtime System.Reflection.Tests.WorkItemExecution #107147
791535 dotnet/runtime System.Reflection.Tests.WorkItemExecution #107089
786597 dotnet/runtime System.Reflection.Tests.WorkItemExecution #105771
785657 dotnet/runtime System.Reflection.Tests.WorkItemExecution #106830
783356 dotnet/runtime System.Reflection.Tests.WorkItemExecution #106683
780692 dotnet/runtime System.Reflection.Tests.WorkItemExecution #106599
776253 dotnet/runtime System.Reflection.Tests.WorkItemExecution #100294
776248 dotnet/runtime System.Reflection.Tests.WorkItemExecution #106314

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 4 14
@jakobbotsch jakobbotsch added 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 Jul 4, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Jul 4, 2024
@jakobbotsch jakobbotsch added area-VM-coreclr untriaged New issue has not been triaged by the area owner and removed area-Infrastructure-libraries untriaged New issue has not been triaged by the area owner labels Jul 4, 2024
Copy link
Contributor

Tagging subscribers to this area: @mangod9
See info in area-owners.md if you want to be subscribed.

@mangod9 mangod9 removed the untriaged New issue has not been triaged by the area owner label Jul 4, 2024
@mangod9 mangod9 added this to the 9.0.0 milestone Jul 4, 2024
@jkotas
Copy link
Member

jkotas commented Jul 5, 2024

Stacktrace:

DbgAssertDialog
CrstBase::PreEnter()
CrstBase::Enter(CrstBase::NoLevelCheckFlag)
TableCacheMissOnFree(HandleTable*, HandleTypeCache*, unsigned int, OBJECTHANDLE__*)
HndDestroyHandle(HandleTable*, unsigned int, OBJECTHANDLE__*)
GetThreadLocalStaticBase(TLSIndex)
Thread::GetStaticFieldAddress(FieldDesc*)
InvokeUtil::GetFieldValue(FieldDesc*, TypeHandle, OBJECTREF*, TypeHandle, bool*)
RuntimeFieldHandle::GetValue(ReflectFieldObject*, Object*, ReflectClassBaseObject*, ReflectClassBaseObject*, bool*)
System.Reflection.FieldAccessor.GetValue(System.Object)

@jkotas
Copy link
Member

jkotas commented Jul 5, 2024

Looks like a regression introduced by the statics rewrite. @davidwrighton Could you please take a look?

@amanasifkhalid
Copy link
Member

Hi @davidwrighton, we're periodically hitting this in runtime-coreclr libraries-jitstress-random (example run). Could you PTAL? Thanks!

@JulieLeeMSFT JulieLeeMSFT added the blocking-clean-ci-optional Blocking optional rolling runs label Aug 23, 2024
@mangod9
Copy link
Member

mangod9 commented Sep 4, 2024

@davidwrighton, this issue is marked for 9. Are you planning to investigate since it's blocking clean-ci-optional?

@dotnet-policy-service dotnet-policy-service bot added the in-pr There is an active PR which will close this issue when it is merged label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-VM-coreclr blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' blocking-clean-ci-optional Blocking optional rolling runs in-pr There is an active PR which will close this issue when it is merged Known Build Error Use this to report build issues in the .NET Helix tab
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants