Skip to content

cmd/compile: failed to make Go on riscv64 CPU with numa #61295

Closed

Description

@mengzhuo

What version of Go are you using (go version)?

$ go version
go 1.21rc2

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=''
GOARCH='riscv64'
GOBIN=''
GOCACHE='/home/perfxlab04/.cache/go-build'
GOENV='/home/perfxlab04/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='riscv64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/perfxlab04/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/perfxlab04/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/home/perfxlab04/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/home/perfxlab04/go/pkg/tool/linux_riscv64'
GOVCS=''
GOVERSION='go1.21rc2'
GCCGO='gccgo'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3214241602=/tmp/go-build -gno-record-gcc-switches'

What did you do?

cd src && ./make.bash

What did you expect to see?

build complete

What did you see instead?

Building packages and commands for linux/riscv64.
runtime: checkdead: find g 2581 in status 1
fatal error: checkdead: runnable g

runtime stack:
runtime.throw({0x618a92?, 0x53f00?})
        /home/perfxlab04/godev/src/runtime/panic.go:1077 +0x44 fp=0x3f74633d80 sp=0x3f74633d58 pc=0x49db4
runtime.checkdead.func1(0x3f740fbd40)
        /home/perfxlab04/godev/src/runtime/proc.go:5451 +0x118 fp=0x3f74633db0 sp=0x3f74633d80 pc=0x582b8
runtime.forEachG(0x3f74633e20)
        /home/perfxlab04/godev/src/runtime/proc.go:608 +0x70 fp=0x3f74633dd8 sp=0x3f74633db0 pc=0x4d530
runtime.checkdead()
        /home/perfxlab04/godev/src/runtime/proc.go:5437 +0x10c fp=0x3f74633e30 sp=0x3f74633dd8 pc=0x57f14
runtime.mput(0x5227c?)
        /home/perfxlab04/godev/src/runtime/proc.go:5933 +0x58 fp=0x3f74633e38 sp=0x3f74633e30 pc=0x59540
runtime.stopm()
        /home/perfxlab04/godev/src/runtime/proc.go:2534 +0x60 fp=0x3f74633e60 sp=0x3f74633e38 pc=0x50c10
runtime.findRunnable()
        /home/perfxlab04/godev/src/runtime/proc.go:3229 +0xc20 fp=0x3f74633f58 sp=0x3f74633e60 pc=0x52798
runtime.schedule()
        /home/perfxlab04/godev/src/runtime/proc.go:3582 +0xa4 fp=0x3f74633f88 sp=0x3f74633f58 pc=0x538bc
runtime.park_m(0x3f740001a0?)
        /home/perfxlab04/godev/src/runtime/proc.go:3745 +0x124 fp=0x3f74633fc8 sp=0x3f74633f88 pc=0x53e6c
runtime.mcall()
        /home/perfxlab04/godev/src/runtime/asm_riscv64.s:291 +0x40 fp=0x3f74633fd8 sp=0x3f74633fc8 pc=0x7c
af0

Activity

  1. self-assigned this
    on Jul 11, 2023
  2. added
    arch-riscvIssues solely affecting the riscv64 architecture.
    on Jul 11, 2023
  3. gopherbot commented on Jul 11, 2023

    @gopherbot
    Contributor

    Change https://go.dev/cl/508715 mentions this issue: cmd/asm, cmd/internal/obj: generate proper atomic ops for riscv64

  4. changed the title [-]cmd/compile: failed on riscv64 CPU with numa[/-] [+]cmd/compile: failed to make Go on riscv64 CPU with numa[/+] on Jul 11, 2023
  5. mengzhuo commented on Jul 11, 2023

    @mengzhuo
    ContributorAuthor

    @bcmills hi, can I add this issue to release-blocker?

  6. bcmills commented on Jul 11, 2023

    @bcmills
    Contributor

    @mengzhuo, since riscv64 is not a first-class port it pretty much by definition can't be a release-blocker.

    That said, I would expect that the fix can make the final go1.21.0 release anyway.

  7. added this to the Go1.21 milestone on Jul 11, 2023
  8. added
    NeedsFixThe path to resolution is known, but the work has not been done.
    on Jul 11, 2023
  9. mengzhuo commented on Jul 20, 2023

    @mengzhuo
    ContributorAuthor

    @gopherbot Please open backport issues.

  10. gopherbot commented on Jul 20, 2023

    @gopherbot
    Contributor

    Backport issue(s) opened: #61470 (for 1.19), #61471 (for 1.20).

    Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases.

  11. gopherbot commented on Jul 21, 2023

    @gopherbot
    Contributor

    Change https://go.dev/cl/511856 mentions this issue: [release-branch.go1.21] cmd/asm, cmd/internal/obj: generate proper atomic ops for riscv64

  12. added a commit that references this issue on Jul 21, 2023
    ed977e2
  13. added a commit that references this issue on Aug 2, 2023
    9069c58
  14. added a commit that references this issue on Feb 7, 2024
    890b96f
  15. locked and limited conversation to collaborators on Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.arch-riscvIssues solely affecting the riscv64 architecture.compiler/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