Skip to content

runtime: AIX build broken with fatal error 'taggedPointerPack invalid packing' #73515

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ayappanec opened this issue Apr 28, 2025 · 2 comments
Labels
BugReport Issues describing a possible bug in the Go implementation. compiler/runtime Issues related to the Go compiler and/or runtime. NeedsFix The path to resolution is known, but the work has not been done. OS-AIX
Milestone

Comments

@ayappanec
Copy link

Go version

go version devel go1.25-f9ce1dddc2

Output of go env in your module/workspace:

GO111MODULE=''
GOARCH='ppc64'
GOBIN=''
GOCACHE='/tmp/.cache/go-build'
GOENV='/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='ppc64'
GOHOSTOS='aix'
GOINSECURE=''
GOMODCACHE='/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='aix'
GOPATH='/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/ramdisk8GB/workdir-host-aix-ppc64-osuosl/go1.4/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/ramdisk8GB/workdir-host-aix-ppc64-osuosl/go1.4/go/pkg/tool/aix_ppc64'
GOVCS=''
GOVERSION='go1.22.6'
GCCGO='gccgo'
GOPPC64='power8'
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 -maix64 -pthread -mcmodel=large -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3547173959=/tmp/go-build -gno-record-gcc-switches'

What did you do?

Trigger go build using make.bash

What did you see happen?

WARNING: //go1.4/bin/go does not exist, found /ramdisk8GB/workdir-host-aix-ppc64-osuosl/go1.4/go/bin/go from env
WARNING: set /ramdisk8GB/workdir-host-aix-ppc64-osuosl/go1.4/go as GOROOT_BOOTSTRAP
Building Go cmd/dist using /ramdisk8GB/workdir-host-aix-ppc64-osuosl/go1.4/go. (go1.22.6 aix/ppc64)
Building Go toolchain1 using /ramdisk8GB/workdir-host-aix-ppc64-osuosl/go1.4/go.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
Building Go toolchain2 using go_bootstrap and Go toolchain1.
runtime: taggedPointerPack invalid packing: ptr=0xa000100007a6000 tag=0x1 packed=0x80003d300001 -> ptr=0x100007a6000 tag=0x1
fatal error: taggedPointerPack

runtime stack:
runtime.throw({0x100523730?, 0x10004dcd0?})
/ramdisk8GB/workdir-host-aix-ppc64-osuosl/go/src/runtime/panic.go:1089 +0x34 fp=0x11029b5e0 sp=0x11029b5a0 pc=0x1000823d4
runtime.taggedPointerPack(0xa000100007a6000, 0x1)
/ramdisk8GB/workdir-host-aix-ppc64-osuosl/go/src/runtime/tagptr_64bit.go:57 +0x118 fp=0x11029b628 sp=0x11029b5e0 pc=0x100067968
runtime.lfstackPack(...)
/ramdisk8GB/workdir-host-aix-ppc64-osuosl/go/src/runtime/lfstack.go:64
runtime.(*lfstack).push(0x11007cc48, 0xa000100007a6000)
/ramdisk8GB/workdir-host-aix-ppc64-osuosl/go/src/runtime/lfstack.go:26 +0x58 fp=0x11029b658 sp=0x11029b628 pc=0x10000ee48
runtime.gcBgMarkWorker.func1(0xa00010000792000?, 0x200000004?)
/ramdisk8GB/workdir-host-aix-ppc64-osuosl/go/src/runtime/mgc.go:1460 +0x90 fp=0x11029b688 sp=0x11029b658 pc=0x10007a700
runtime.park_m(0xa00010000792000)
/ramdisk8GB/workdir-host-aix-ppc64-osuosl/go/src/runtime/proc.go:4152 +0x214 fp=0x11029b6f8 sp=0x11029b688 pc=0x10004ddf4
runtime.mcall()
/ramdisk8GB/workdir-host-aix-ppc64-osuosl/go/src/runtime/asm_ppc64x.s:197 +0x54 fp=0x11029b720 sp=0x11029b6f8 pc=0x100088214

https://build.golang.org/log/b0bb703ed622f593e6503943cd1f134aaefcf49f

What did you expect to see?

The build break started after this change --> https://go-review.googlesource.com/c/go/+/665815

@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Apr 28, 2025
@gabyhelp gabyhelp added the BugReport Issues describing a possible bug in the Go implementation. label Apr 28, 2025
@randall77
Copy link
Contributor

Should be fixed with https://go-review.googlesource.com/c/go/+/668036

@cagedmantis cagedmantis added the NeedsFix The path to resolution is known, but the work has not been done. label Apr 28, 2025
@cagedmantis cagedmantis added this to the Go1.25 milestone Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BugReport Issues describing a possible bug in the Go implementation. compiler/runtime Issues related to the Go compiler and/or runtime. NeedsFix The path to resolution is known, but the work has not been done. OS-AIX
Projects
None yet
Development

No branches or pull requests

5 participants