Skip to content

runtime: traceback stuck in runtime.systemstack #55851

@lizthegrey

Description

@lizthegrey

Similar to #54332

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

$ go version
go version go1.19.1 linux/arm64

Does this issue reproduce with the latest release?

Yes, with go1.19.1

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

go env Output
$ go env
GO111MODULE=""
GOARCH="arm64"
GOBIN=""
GOCACHE="/home/lizf/.cache/go-build"
GOENV="/home/lizf/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/lizf/hny/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/lizf/hny/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/snap/go/current"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/snap/go/current/pkg/tool/linux_arm64"
GOVCS=""
GOVERSION="go1.19.1"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3236722962=/tmp/go-build -gno-record-gcc-switches"

What did you do?

Continuously profile for over one month.

0x7aec0
runtime.systemstack
/usr/local/go/src/runtime/asm_arm64.s:206
0x110000
encoding/binary.intDataSize
/usr/local/go/src/encoding/binary/binary.go:768

https://github.com/golang/go/blob/go1.19.1/src/runtime/asm_arm64.s#L206

What did you expect to see?

No traceback stuck assert

What did you see instead?

Traceback stuck assert

runtime: traceback stuck. pc=0x110000 sp=0x40d9082bc0
stack: frame={sp:0x40d9082bc0, fp:0x40d9082bc0} stack=[0x40d9082000,0x40d9084000)
0x00000040d9082ac0:  0x000000000151cd68 <github.com/honeycombio/hound/cmd/shepherd/app.beelinePanicMiddleware.func1+0x0000000000000078>  0x00000000002ab728 <net/http.HandlerFunc.ServeHTTP+0x0000000000000038> 
0x00000040d9082ad0:  0x000000000151bcc0 <github.com/honeycombio/hound/cmd/shepherd/app.instrDatasetSlug.func1+0x00000000000000e0>  0x00000000002ab728 <net/http.HandlerFunc.ServeHTTP+0x0000000000000038> 
0x00000040d9082ae0:  0x000000000151ca9c <github.com/honeycombio/hound/cmd/shepherd/app.(*App).instrMiddleware.func1+0x000000000000040c>  0x00000000002ab728 <net/http.HandlerFunc.ServeHTTP+0x0000000000000038> 
0x00000040d9082af0:  0x00000000007aebf8 <github.com/honeycombio/beeline-go/wrappers/hnygorilla.Middleware.func1+0x00000000000004b8>  0x00000000002ab728 <net/http.HandlerFunc.ServeHTTP+0x0000000000000038> 
0x00000040d9082b00:  0x00000000006a4b94 <github.com/gorilla/mux.(*Router).ServeHTTP+0x00000000000001a4>  0x000000000151bb10 <github.com/honeycombio/hound/cmd/shepherd/app.trailingSlashMiddleware.func1+0x00000000000000d0> 
0x00000040d9082b10:  0x00000000002ab728 <net/http.HandlerFunc.ServeHTTP+0x0000000000000038>  0x000000000151d308 <github.com/honeycombio/hound/cmd/shepherd/app.(*App).ServeHTTP+0x00000000000002a8> 
0x00000040d9082b20:  0x00000000006a2f2c <github.com/NYTimes/gziphandler.GzipHandlerWithOpts.func1.1+0x000000000000022c>  0x00000000002ab728 <net/http.HandlerFunc.ServeHTTP+0x0000000000000038> 
0x00000040d9082b30:  0x0000000001533028 <github.com/honeycombio/hound/cmd/shepherd/app.renameBeelineTraceHeaders.func1+0x0000000000000188>  0x00000040d9082b48 
0x00000040d9082b40:  0x00000000000399c4 <runtime.(*mheap).alloc+0x0000000000000054>  0x00000040d9082b98 
0x00000040d9082b50:  0x0000000000026024 <runtime.(*mcache).allocLarge+0x0000000000000074>  0x00000040d9082b70 
0x00000040d9082b60:  0x0000000000000000  0x0000000000000000 
0x00000040d9082b70:  0x0000000000039a00 <runtime.(*mheap).alloc.func1+0x0000000000000000>  0x0000000002f241c0 
0x00000040d9082b80:  0x00000000000000ab  0x0000000000000001 
0x00000040d9082b90:  0x00000040d9082b68  0x00000040d9082be8 
0x00000040d9082ba0:  0x000000000001c650 <runtime.mallocgc+0x0000000000000530>  0x0000000000156000 <crypto/internal/nistec.(*P256Point).Add+0x0000000000000150> 
0x00000040d9082bb0:  0x00000000000000ab  0x000000417b40a000 
0x00000040d9082bc0: >0x0000000000110000 <encoding/binary.intDataSize+0x00000000000005f0>  0x01010040d9082be8 
0x00000040d9082bd0:  0x000000000001c940 <runtime.mallocgc+0x0000000000000820>  0x00000000000000ab 
0x00000040d9082be0:  0x0000000000156000 <crypto/internal/nistec.(*P256Point).Add+0x0000000000000150>  0x00000040d9082c58 
0x00000040d9082bf0:  0x00000000000620e4 <runtime.growslice+0x0000000000000404>  0x00000040cc15f6c0 
0x00000040d9082c00:  0x0000000000156000 <crypto/internal/nistec.(*P256Point).Add+0x0000000000000150>  0x0000004000184001 
0x00000040d9082c10:  0x000000000001cafc <runtime.newobject+0x000000000000002c>  0x7000000101012c88 
0x00000040d9082c20:  0x0000000000061b6c <runtime.makeslice+0x000000000000007c>  0x0000ffffa676af18 
0x00000040d9082c30:  0x0000000000110000 <encoding/binary.intDataSize+0x00000000000005f0>  0x000000400058c400 
0x00000040d9082c40:  0x000000417b40a000  0x0000000000000000 
0x00000040d9082c50:  0x00000040cc15f6c0  0x00000040d9082cb8 
0x00000040d9082c60:  0x00000000000aacfc <io.ReadAll+0x000000000000009c>  0x0000000000156000 <crypto/internal/nistec.(*P256Point).Add+0x0000000000000150> 
0x00000040d9082c70:  0x0000000000000000  0x00000040cc15f600 
0x00000040d9082c80:  0x0000000000110001 <encoding/binary.intDataSize+0x00000000000005f1>  0x0000000000156000 <crypto/internal/nistec.(*P256Point).Add+0x0000000000000150> 
0x00000040d9082c90:  0x0000000000110000 <encoding/binary.intDataSize+0x00000000000005f0>  0x0000000000156000 <crypto/internal/nistec.(*P256Point).Add+0x0000000000000150> 
0x00000040d9082ca0:  0x0000000000110000 <encoding/binary.intDataSize+0x00000000000005f0>  0x000000417b40a000 
0x00000040d9082cb0:  0x000000417b40a000  0x00000040d9082d48 
fatal error: traceback stuck
runtime.sigprof(0x7aec0, 0x4000aa6c48?, 0x0?, 0x4000583a00, 0x400058c400)	

Metadata

Metadata

Assignees

Labels

FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.compiler/runtimeIssues related to the Go compiler and/or runtime.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions