Skip to content
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

runtime/debug: TestStack fail #65506

Closed
testwill opened this issue Feb 4, 2024 · 1 comment · May be fixed by #65441
Closed

runtime/debug: TestStack fail #65506

testwill opened this issue Feb 4, 2024 · 1 comment · May be fixed by #65441
Labels
compiler/runtime Issues related to the Go compiler and/or runtime.

Comments

@testwill
Copy link
Contributor

testwill commented Feb 4, 2024

Go version

go version go1.21.6 linux/amd64

Output of go env in your module/workspace:

GO111MODULE='on'
GOARCH='amd64'
GOBIN=''
GOCACHE='/root/.cache/go-build'
GOENV='/root/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS='-buildvcs=false'
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOMODCACHE='/home/testwill/test/pkg/mod'
GONOPROXY='x.x.x.x'
GONOSUMDB='x.x.x.x'
GOOS='linux'
GOPATH='/home/testwill/test'
GOPRIVATE='x.x.x.x'
GOPROXY='https://goproxy.cn,direct'
GOROOT='/usr/local/go/'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.21.6'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/usr/local/go/src/go.mod'
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 -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build98824346=/tmp/go-build -gno-record-gcc-switches'

What did you do?

go test ./...

What did you see happen?

--- FAIL: TestStack (0.01s)
    stack_test.go:73: found GOROOT "/usr/local/go/" from environment; checking embedded GOROOT value
    stack_test.go:115: in line "\t/usr/local/go/src/runtime/debug/stack.go:24 +0x5e", expected prefix "\t/usr/local/go//src/runtime/debug/stack.go"
    stack_test.go:116: in line "\t/usr/local/go/src/runtime/debug/stack_test.go:31", expected prefix "\t/usr/local/go//src/runtime/debug/stack_test.go"
    stack_test.go:117: in line "\t/usr/local/go/src/runtime/debug/stack_test.go:34", expected prefix "\t/usr/local/go//src/runtime/debug/stack_test.go"
    stack_test.go:118: in line "\t/usr/local/go/src/runtime/debug/stack_test.go:56 +0x2c", expected prefix "\t/usr/local/go//src/runtime/debug/stack_test.go"
    stack_test.go:119: in line "\t/usr/local/go/src/testing/testing.go:1595 +0xff", expected prefix "\t/usr/local/go//src/testing/testing.go"
FAIL
FAIL    runtime/debug   0.099s

What did you expect to see?

ok      runtime/debug   0.116s
testwill added a commit to testwill/go that referenced this issue Feb 4, 2024
testwill added a commit to testwill/go that referenced this issue Feb 4, 2024
@bcmills bcmills added the compiler/runtime Issues related to the Go compiler and/or runtime. label Feb 5, 2024
@cherrymui
Copy link
Member

I think this is the same as #62623, just with an unclean GOROOT instead of GOROOT_FINAL. Closing as a dup for now. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants