dotnet / dotnet/runtime

[ci-scan] Known Build Error: stackoverflowtester assert m_crawl.GetCodeInfo()->IsValid() in runtime-interpreter

Open
#127,899 4 comments 0 reactions 0 assignees View on GitHub
agentic-workflows area-VM-coreclr Known Build Error
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

## Build Information
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1410560
Build error leg or test failing: windows x64 Checked-baseservices/exceptions/stackoverflow/stackoverflowtester/stackoverflowtester.cmd

## Error Message

```json
{
"ErrorMessage": "Thread: 4060 [0x0fdc]): m_crawl.GetCodeInfo()->IsValid()",
"ErrorPattern": "",
"BuildRetry": false,
"ExcludeConsoleLog": false
}
```

`stackoverflowtester` fails in `runtime-interpreter` (def 316) on Windows under CoreCLR interpreter mode. After a stack overflow is raised, the runtime walks the stack to unwind/report it; the `StackFrameIterator` encounters an interpreter frame whose `CodeInfo` is invalid, triggering the `m_crawl.GetCodeInfo()->IsValid()` assertion. This is an interpreter-mode stack-walker incompatibility when handling stack overflows.

**Affected pipelines (2 confirmed failing builds):**
- runtime-interpreter (def 316): windows-x64 Checked and windows-arm64 Checked — builds 1410560, 1407440

**Errors log:**

```
Running stackoverflow test(smallframe main)
"Stack overflow."
"Assert failure(PID 6972 [0x00001b3c], Thread: 4060 [0x0fdc]): m_crawl.GetCodeInfo()->IsValid()"
"CORECLR! StackFrameIterator::NextRaw + 0x724"
"CORECLR! StackFrameIterator::Filter + 0xBB0"
"CORECLR! StackFrameIterator::Init + 0x258"
END EXECUTION - FAILED
````

**First build it occurred:** Build 1407440 (May 4, 2026) is the earliest in the scanned window. Occurrence count in window: 2.

**Recommended action:**
- Owner: `@dotnet/coreclr-interpreter` (interpreter area)
- Root cause: `StackFrameIterator` encounters an interpreter frame during stack overflow handling where the CodeInfo is null or invalid. The interpreter needs to ensure that frames it creates have valid CodeInfo, or the stack walker needs to handle null CodeInfo gracefully in the interpreter-frame case.
- Investigate `src/coreclr/vm/stackwalk.cpp` and interpreter frame creation.
- Short-term: add `[SkipOnCoreClr("Stack overflow handling crashes under interpreter", RuntimeTestModes.InterpreterActive)]` to the `stackoverflowtester` test once this KBE issue number is known.

> [!NOTE]
> 🤖 This issue was generated by the CI Outer-Loop Failure Scanner.

> [!NOTE]
>
> 🔒 Integrity filter blocked 1 item
>
> The following item were blocked because they don't meet the GitHub integrity level.
>
> - [#110173](https://github.com/dotnet/runtime/issues/110173) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
>
> To allow these resources, lower `min-integrity` in your GitHub frontmatter:
>
> ```yaml
> tools:
> github:
> min-integrity: approved # merged | approved | unapproved | none
> ```
>
>

> Generated by [CI Outer-Loop Failure Scanner](https://github.com/dotnet/runtime/actions/runs/25470341123/agentic_workflow) · ● 16.2M · [◷](https://github.com/search?q=repo%3Adotnet%2Fruntime+is%3Aissue+%22gh-aw-workflow-call-id%3A+dotnet%2Fruntime%2Fci-failure-scan%22&type=issues)

### Report
#### Summary
|24-Hour Hit Count|7-Day Hit Count|1-Month Count|
|---|---|---|
|0|0|0|

### Known issue validation
**Build: :mag_right:** https://dev.azure.com/dnceng-public/public/_build/results?buildId=1410560
**Error message validated:** `[m_crawl.GetCodeInfo()->IsValid()`]
**Result validation:** :white_check_mark: Known issue matched with the provided build.
**Validation performed at:** 5/7/2026 8:27:50 AM UTC

### Report

|Build|Definition|Test|Pull Request|
|---|---|---|---|
|[1410560](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1410560)|dotnet/runtime|[baseservices/exceptions/stackoverflow/stackoverflowtester/stackoverflowtester.cmd](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1410560&view=ms.vss-test-web.build-test-results-tab&runId=39262084&resultId=115818)||
#### Summary
|24-Hour Hit Count|7-Day Hit Count|1-Month Count|
|---|---|---|
|0|1|1|

### Known issue validation
**Build: :mag_right:** https://dev.azure.com/dnceng-public/public/_build/results?buildId=1410560
**Error message validated:** `[m_crawl.GetCodeInfo()->IsValid()`]
**Result validation:** :white_check_mark: Known issue matched with the provided build.
**Validation performed at:** 5/7/2026 8:27:50 AM UTC

### Report
#### Summary
|24-Hour Hit Count|7-Day Hit Count|1-Month Count|
|---|---|---|
|0|0|0|

### Known issue validation
**Build: :mag_right:** https://dev.azure.com/dnceng-public/public/_build/results?buildId=1410560
**Error message validated:** `[m_crawl.GetCodeInfo()->IsValid()`]
**Result validation:** :white_check_mark: Known issue matched with the provided build.
**Validation performed at:** 5/7/2026 8:27:50 AM UTC

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.