Skip to content

cmd/compile: linux/arm stalls during bootstrap at tip as of "use tail calls for wrappers for embedded interfaces" #78053

Closed

Description

@dmitshur

CL 751465 fixed #77781 but caused linux/arm to run into a https://ci.chromium.org/b/8687988093932136273 failure mode. As of CL 752560, the failure mode of linux/arm is different, namely make.bash runs for 3 hrs+ and times out before completing.

See https://ci.chromium.org/b/8687731122429485201 for example, or other recent builds.

CC @randall77.

Activity

  1. added this to the Go1.27 milestone on Mar 10, 2026
  2. added
    SoonThis needs action soon. (recent regressions, service outages, unusual time-sensitive situations)
    arch-armIssues solely affecting the 32-bit arm architecture.
    compiler/runtimeIssues related to the Go compiler and/or runtime.
    on Mar 10, 2026
  3. gabyhelp commented on Mar 10, 2026

    @gabyhelp

    Related Issues

    (Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

  4. added
    BugReportIssues describing a possible bug in the Go implementation.
    on Mar 10, 2026
  5. randall77 commented on Mar 10, 2026

    @randall77
    Contributor

    Found the immediate problem, in the archive/zip test binary:

    TEXT archive/zip.(*ReadCloser).Open(SB) <autogenerated>
      <autogenerated>:1     0x219a1c                e59d0004                MOVW 0x4(R13), R0       
      <autogenerated>:1     0x219a20                e1d0b0d0                MOVBS (R0), R11         
      <autogenerated>:1     0x219a24                e28d1000                ADD $0, R13, R1         
      <autogenerated>:1     0x219a28                e2800004                ADD $4, R0, R0          
      <autogenerated>:1     0x219a2c                e5810004                MOVW R0, 0x4(R1)        
      <autogenerated>:1     0x219a30                e59d0008                MOVW 0x8(R13), R0       
      <autogenerated>:1     0x219a34                e5810008                MOVW R0, 0x8(R1)        
      <autogenerated>:1     0x219a38                e59d000c                MOVW 0xc(R13), R0       
      <autogenerated>:1     0x219a3c                e581000c                MOVW R0, 0xc(R1)        
      <autogenerated>:1     0x219a40                eafffffe                B 0x219a40              
    

    Notice the last branch branches to itself. I think a relocation is missing or not being applied correctly. That branch should go somewhere else.
    Instead it infinite loops.

  6. gopherbot commented on Mar 10, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/753840 mentions this issue: cmd/compile: fix arm direct tail call

  7. added
    FixPendingIssues that have a fix which has not yet been reviewed or submitted.
    on Mar 10, 2026
  8. moved this from In Progress to All-But-Submitted in Go Compiler / Runtime / Commandon Mar 11, 2026
  9. added a commit that references this issue on Mar 11, 2026
    97d6430
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

    BugReportIssues describing a possible bug in the Go implementation.FixPendingIssues that have a fix which has not yet been reviewed or submitted.OS-LinuxSoonThis needs action soon. (recent regressions, service outages, unusual time-sensitive situations)arch-armIssues solely affecting the 32-bit arm architecture.compiler/runtimeIssues related to the Go compiler and/or runtime.release-blocker

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions