Skip to content

cmd/compile: internal compiler error: method Len on *uint8 not found [1.19 backport] #55270

Closed

Description

@gopherbot

@mdempsky requested issue #54225 to be considered for backport to the next 1.19 minor release.

@gopherbot Please backport to Go 1.19

Activity

  1. added
    CherryPickCandidateUsed during the release process for point releases
    compiler/runtimeIssues related to the Go compiler and/or runtime.
    on Sep 20, 2022
  2. added this to the Go1.19.2 milestone on Sep 20, 2022
  3. mdempsky commented on Sep 20, 2022

    @mdempsky
    Contributor

    The backport CL is https://go-review.googlesource.com/c/go/+/429895

    It's intentionally minimally invasive to address the issue while minimizing risk of collateral damage.

    Specifically, instead of hitting an ICE while emitting broken dictionary symbols, it changes the compiler to skip emitting those symbols instead. If the symbols are actually needed, the consequence is this just turns an ICE into a linker failure: no real harm.

    But I believe in practice the broken symbols aren't actually needed in the final executable, and so the linker's reachability analysis will simply ignore the missing symbol.

  4. gopherbot commented on Sep 20, 2022

    @gopherbot
    ContributorAuthor

    Change https://go.dev/cl/429895 mentions this issue: [release-branch.go1.19] cmd/compile: skip emitting dictionaries with missing method expressions

  5. gopherbot commented on Sep 21, 2022

    @gopherbot
    ContributorAuthor

    Closed by merging 3747bb2 to release-branch.go1.19.

  6. added a commit that references this issue on Sep 21, 2022
    3747bb2
  7. added 3 commits that reference this issue on Oct 5, 2022
    93abd99
    3904902
    4aa68b2
  8. locked and limited conversation to collaborators on Sep 21, 2023
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 releasesFrozenDueToAgecompiler/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