Skip to content

Fix test89834 SIGBUS on macOS ARM64 - #135547

Merged
jkotas merged 4 commits into
mainfrom
copilot/fix-test-failure-issue-89834
Oct 13, 2026
Merged

jkotas merged 4 commits into
mainfrom
copilot/fix-test-failure-issue-89834

Conversation

Copilot AI commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

test89834 terminates with SIGBUS under checked macOS ARM64 GC/JIT stress, returning 138 instead of 100 before any first-chance callback output. The evidence points to a GC hole in CORINFO_HELP_BULK_WRITEBARRIER_SMALL: the helper is classified as non-GC, but its first call can enter the prestub and trigger a collection.

Fixes #135404

@azure-pipelines

azure-pipelines Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

Copilot AI changed the title [WIP] Fix test failure in GitHub_89834 test89834 script Investigate test89834 SIGBUS on macOS ARM64 Oct 9, 2026
Copilot AI requested a review from agocke October 9, 2026 23:15
Co-authored-by: agocke <515774+agocke@users.noreply.github.com>
@jkotas

jkotas commented Oct 12, 2026

Copy link
Copy Markdown
Member

The root cause identified by #135404 (comment) is duplicate of some of the other GC holes issues we are hitting (discussed at #135415 (comment)).

It should be fixed by changing CORINFO_HELP_BULK_WRITEBARRIER_SMALL definition in jithelpers.h to use unmanaged entrypoint, like JITHELPER(CORINFO_HELP_BULK_WRITEBARRIER_SMALL, Buffer::BulkMoveWithWriteBarrier, METHOD__NIL).

@jkotas

jkotas commented Oct 12, 2026

Copy link
Copy Markdown
Member

cc @EgorBo

Co-authored-by: agocke <515774+agocke@users.noreply.github.com>
Comment thread src/coreclr/inc/jithelpers.h Outdated
@jkotas

jkotas commented Oct 13, 2026

Copy link
Copy Markdown
Member

LGTM otherwise

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
@agocke
agocke marked this pull request as ready for review October 13, 2026 16:20
@jkotas jkotas changed the title Investigate test89834 SIGBUS on macOS ARM64 Fix test89834 SIGBUS on macOS ARM64 Oct 13, 2026
@jkotas

jkotas commented Oct 13, 2026

Copy link
Copy Markdown
Member

/ba-g opened #135717 on the build error

@jkotas
jkotas merged commit 636b64c into main Oct 13, 2026
99 of 103 checks passed
@jkotas
jkotas deleted the copilot/fix-test-failure-issue-89834 branch October 13, 2026 20:32
@github-project-automation github-project-automation Bot moved this to Done in AppModel Oct 13, 2026
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

Test failure: Regressions/coreclr/GitHub_89834/test89834/test89834.cmd

4 participants