Skip to content

runtime/race: fix missing argument frame and remove early probe in ppc64x atomic wrappers [freeze exception] #76714

@jkrishmys

Description

@jkrishmys

The ppc64x racecallatomic wrappers for And and Or were missing the required argument-frame layout, which caused incorrect stack metadata under the race detector and could lead to SIGSEGV/SIGBUS during early runtime initialization. On ppc64x, this can run before the runtime and memory arenas are initialized, causing spurious crashes under -race even on valid code paths (as in #76051).

This CL adds the correct argument frame, restoring correct behavior for race-instrumented builds on ppc64x.

This is an architecture-specific correctness fix needed for stable race-enabled binaries on ppc64x.

Related CL

runtime/race: set missing argument frame for ppc64x atomic And/Or wrappers

Requested

Requesting approval to merge this fix during the development freeze, as it resolves the failure mode in #76051 for ppc64le under -race.

cc: @golang/release

Metadata

Metadata

Assignees

No one assigned

    Labels

    compiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    Status

    In scope of freeze

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions