[ci-scan] Test failure: AsyncProfilerTests.StateMachineAsync_CallstackOverflow_PreservesFullDepth on osx-arm64 CoreCLR interpreter.
- 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=1588973
Build error leg or test failing: osx-arm64 Release NoDynamicCodeCompiled - System.Threading.Tasks.Tests (runtime-libraries-interpreter, def 330)
KBE authoring guidance (ci-failure-scan)
- `Error Details` is for readers. Paste the full exception, stack trace, or build error excerpt so the failure is understandable without opening the raw log.
- Build Analysis parses only the single JSON block under `Error Message`.
- `ErrorMessage` is a case-sensitive ordinal `String.Contains` substring copied verbatim from the failing log.
- Set `BuildRetry` to `true` only for a clear infrastructure retry case. `ExcludeConsoleLog` disables Helix console-log scanning.
## Error Details
`AsyncProfilerTests.StateMachineAsync_CallstackOverflow_PreservesFullDepth` fails on the osx-arm64 `NoDynamicCodeCompiled` (NativeAOT) leg: the async event dump reports fewer resumed frames than expected (Expected 255 / Actual 153), indicating the callstack depth is not preserved. Reproduces in source build 1588973 and the following build 1592661, so the signature is stable across builds. This is a distinct test method from the already-tracked `StateMachineAsync_CustomSyncContext` (dotnet/runtime#133108).
```
System.Threading.Tasks.Tests.AsyncProfilerTests.StateMachineAsync_CallstackOverflow_PreservesFullDepth [FAIL]
Assert.Equal() Failure: Values differ
Expected: 255
Actual: 153
----- BEGIN ASYNC EVENTS (CSV) -----
...
at System.Threading.Tasks.Tests.AsyncProfilerTests.AssertEqual[T](EventDump dump, T expected, T actual)
```
## Error Message
```json
{
"ErrorMessage": [
"System.Threading.Tasks.Tests.AsyncProfilerTests.StateMachineAsync_CallstackOverflow_PreservesFullDepth [FAIL]",
"at System.Threading.Tasks.Tests.AsyncProfilerTests.AssertEqual[T](EventDump dump, T expected, T actual)"
],
"ErrorPattern": "",
"BuildRetry": false,
"ExcludeConsoleLog": false
}
```
Agentic workflow metadata (ci-failure-scan)
Workflow artifact: ci-failure-scan
Artifact kind: kbe-verification
Verified match count: 1 hits in failure.log
---
Filed by [`ci-failure-scan`](https://github.com/dotnet/runtime/blob/main/.github/workflows/ci-failure-scan.md) (detection only). [`ci-failure-fix`](https://github.com/dotnet/runtime/blob/main/.github/workflows/ci-failure-fix.md) walks open `[ci-scan]` KBEs and either opens a small fix PR or comments here to loop in owners — it never disables the test.
> [!NOTE]
> This issue was generated by an AI agent (GitHub Copilot / ci-failure-scan workflow).
> Generated by [CI Outer-Loop Failure Scanner](https://github.com/dotnet/runtime/actions/runs/34729903269) · opus48 · 996.9 AIC · ⌖ 16.7 AIC · ⊞ 19.7K · [◷](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
|Build|Repository|Test|Pull Request|
|---|---|---|---|
|[1595619](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1595619)|dotnet/runtime|[System.Threading.Tasks.Tests.AsyncProfilerTests.StateMachineAsync_CallstackOverflow_PreservesFullDepth](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1595619&view=ms.vss-test-web.build-test-results-tab&runId=44057216&resultId=183554)||
|[1588973](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1588973)|dotnet/runtime|[System.Threading.Tasks.Tests.AsyncProfilerTests.StateMachineAsync_CallstackOverflow_PreservesFullDepth](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1588973&view=ms.vss-test-web.build-test-results-tab&runId=43861750&resultId=183231)||
#### Summary
|24-Hour Hit Count|7-Day Hit Count|1-Month Count|
|---|---|---|
|1|2|2|
### Known issue validation
**Build: :mag_right:** https://dev.azure.com/dnceng-public/public/_build/results?buildId=1588973
**Error message validated:** `[System.Threading.Tasks.Tests.AsyncProfilerTests.StateMachineAsync_CallstackOverflow_PreservesFullDepth [FAIL] at System.Threading.Tasks.Tests.AsyncProfilerTests.AssertEqual[T](EventDump dump, T expected, T actual)`]
**Result validation:** :white_check_mark: Known issue matched with the provided build.
**Validation performed at:** 9/14/2026 8:24:14 AM UTC
Contributor guide
Assessment
This issue has not been assessed yet.