runtime icon indicating copy to clipboard operation
runtime copied to clipboard

System.Text.RegularExpressions.Tests fail with CREATE_CHECK_STRING(bSmallObjectHeapPtr || bLargeObjectHeapPtr)

Open jkotas opened this issue 3 months ago • 5 comments

Build Information

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

Error Message

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

{
  "ErrorMessage": ["System.Text.RegularExpressions.Tests","!CREATE_CHECK_STRING(bSmallObjectHeapPtr || bLargeObjectHeapPtr)"],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1132704 Error message validated: [System.Text.RegularExpressions.Tests !CREATE_CHECK_STRING(bSmallObjectHeapPtr || bLargeObjectHeapPtr)] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 8/27/2025 12:37:54 PM UTC

Report

Build Definition Test Pull Request
1204423 dotnet/runtime System.Text.RegularExpressions.Tests.WorkItemExecution dotnet/runtime#121662
1202040 dotnet/runtime System.Text.RegularExpressions.Tests.WorkItemExecution dotnet/runtime#119575

Summary

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

jkotas avatar Aug 27 '25 12:08 jkotas

I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):

  • https://github.com/dotnet/runtime/issues/111922

MihuBot avatar Aug 27 '25 12:08 MihuBot

Analysis of the dump runfo get-helix-payload -j 4ee844af-5426-4fc1-8e0e-c9e9e8a27146 -w System.Text.RegularExpressions.Tests -o c:\helix_payload:

Stacktrace of the crash:

libcoreclr!Object::ValidateInner+0x5ff [/__w/1/s/src/coreclr/vm/object.cpp @ 562] 
libcoreclr!OBJECTREF::OBJECTREF+0x58 [/__w/1/s/src/coreclr/vm/object.cpp @ 1088] 
libcoreclr!MethodDescCallSite::Call_RetOBJECTREF+0x20 [/__w/1/s/src/coreclr/vm/callhelpers.h @ 449] 
libcoreclr!LCGMethodResolver::GetLocalSig+0x1bd [/__w/1/s/src/coreclr/vm/callhelpers.h @ 15732480] 
libcoreclr!CEEInfo::getMethodInfoWorker+0x21b [/__w/1/s/src/coreclr/vm/jitinterface.cpp @ 15732480] 
libcoreclr!CEECodeGenInfo::CEECodeGenInfo+0x10d [/__w/1/s/src/coreclr/vm/jitinterface.cpp @ 10747] 
libcoreclr!CEEJitInfo::CEEJitInfo+0x12 [/__w/1/s/src/coreclr/vm/jitinterface.h @ 816] 
libcoreclr!UnsafeJitFunction+0x440 [/__w/1/s/src/coreclr/inc/volatile.h @ 13395] 

The object reference is valid. GC heap is not corrupted. The object was allocated very recently.

I think that the most likely explanation of the assertion failure is a race condition (memory model issue) in GCHeap::IsHeapPointer where it may return false for recently allocated objects from a different thread. @dotnet/gc Could you please take a look?

This is likely the same underlying problem as #117186

jkotas avatar Aug 27 '25 12:08 jkotas

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

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

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

jeffschwMSFT avatar Oct 24 '25 16:10 jeffschwMSFT

Maybe another repro here: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1190910&view=ms.vss-test-web.build-test-results-tab

AndyAyersMS avatar Nov 03 '25 18:11 AndyAyersMS

I've hit the same assert in another test in the CI, the System.Runtime.Numerics.Tests. https://dev.azure.com/dnceng-public/public/_build/results?buildId=1227515

janvorli avatar Dec 11 '25 09:12 janvorli