Skip to content

cmd/compile: slice allocation reuses stack backing store incorrectly [1.26 backport] #81689

Closed

Description

@gopherbot

@cuonglm requested issue #79909 to be considered for backport to the next 1.26 minor release.

@gopherbot Please open a backport issue to go1.26

Activity

  1. added
    CherryPickCandidateUsed during the release process for point releases
    compiler/runtimeIssues related to the Go compiler and/or runtime.
    on Sep 23, 2026
  2. added this to the Go1.26.9 milestone on Sep 23, 2026
  3. gopherbot commented on Sep 23, 2026

    @gopherbot
    ContributorAuthor

    Change https://go.dev/cl/837305 mentions this issue: [release-branch.go1.26] cmd/compile: fix slice backing store analysis

  4. prattmic commented on Sep 29, 2026

    @prattmic
    Member

    @cuonglm Can you clarify why this should be backported to 1.26? How does it relate to #81612? Is it a prerequisite for that backport?

  5. cuonglm commented on Sep 29, 2026

    @cuonglm
    Member

    Is it a prerequisite for that backport?

    No. Although they are related, the two fixes are independent and touch different areas of the slice analysis pass.

    How does it relate to #81612?

    This reveals a pre-existing hidden bug rather than a regression caused by #81612.

    @cuonglm Can you clarify why this should be backported to 1.26?

    I believe this issue meets the same criteria for backporting as #81612. Both involve compiler optimization bugs that cause valid programs to crash.

    While the specific resolve test case in CL 836025 might pass without this backport (simply because the code change that triggers it isn't present in 1.26), the underlying bug is still there. It seems we simply missed backporting this fix during the Go 1.27 release cycle, rather than the issue being unqualified for backporting.

  6. added a commit that references this issue on Sep 30, 2026
    2a1834b
  7. gopherbot commented on Sep 30, 2026

    @gopherbot
    ContributorAuthor

    Closed by merging CL 837305 (commit 2a1834b) to release-branch.go1.26.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CherryPickApprovedUsed during the release process for point releasescompiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions