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: SIGSEGV: segmentation violation #69247

Closed
Brhetty opened this issue Sep 4, 2024 · 6 comments
Closed

runtime: SIGSEGV: segmentation violation #69247

Brhetty opened this issue Sep 4, 2024 · 6 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@Brhetty
Copy link

Brhetty commented Sep 4, 2024

Go version

go version go1.22.3 linux/amd64

Output of go env in your module/workspace:

GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/root/.cache/go-build'
GOENV='/root/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/root/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/root/go'
GOPRIVATE=''
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.22.3'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='0'
GOMOD='/root/worker/zeus-detect/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 -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build207762889=/tmp/go-build -gno-record-gcc-switches'
root@brhetty:~/worker/zeus-detect# go version
go version go1.22.3 linux/amd64
root@brhetty:~/worker/zeus-detect# go env
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/root/.cache/go-build'
GOENV='/root/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/root/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/root/go'
GOPRIVATE=''
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.22.3'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='0'
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 -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2208714169=/tmp/go-build -gno-record-gcc-switches'

What did you do?

none

What did you see happen?

SIGSEGV: segmentation violation
PC=0x419877 m=31 sigcode=1 addr=0x20

goroutine 0 gp=0xc000782700 m=31 mp=0xc000801008 [idle]:
runtime.(*mspan).typePointersOfUnchecked(0xc204786000?, 0xc0ffa31140?)
/usr/local/go/src/runtime/mbitmap_allocheaders.go:202 +0x37 fp=0xc00200be80 sp=0xc00200be60 pc=0x419877
runtime.scanobject(0x0?, 0xc000073268)
/usr/local/go/src/runtime/mgcmark.go:1446 +0xb5 fp=0xc00200bf10 sp=0xc00200be80 pc=0x425215
runtime.gcDrain(0xc000073268, 0x3)
/usr/local/go/src/runtime/mgcmark.go:1242 +0x1f4 fp=0xc00200bf78 sp=0xc00200bf10 pc=0x424b74
runtime.gcDrainMarkWorkerDedicated(...)
/usr/local/go/src/runtime/mgcmark.go:1124
runtime.gcBgMarkWorker.func2()
/usr/local/go/src/runtime/mgc.go:1387 +0xa5 fp=0xc00200bfc8 sp=0xc00200bf78 pc=0x4211e5
runtime.systemstack(0x25)
/usr/local/go/src/runtime/asm_amd64.s:509 +0x4a fp=0xc00200bfd8 sp=0xc00200bfc8 pc=0x4762aa

What did you expect to see?

none

@seankhliao seankhliao changed the title SIGSEGV: segmentation violation runtime: SIGSEGV: segmentation violation Sep 4, 2024
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Sep 4, 2024
@seankhliao
Copy link
Member

how do we reproduce this?

@seankhliao seankhliao added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Sep 4, 2024
@Brhetty
Copy link
Author

Brhetty commented Sep 4, 2024

我们如何重现这个现象?

I can't reproduce it

@Brhetty
Copy link
Author

Brhetty commented Sep 5, 2024

how do we reproduce this?
SIGSEGV: segmentation violation
PC=0x42e882 m=9 sigcode=1 addr=0x64

goroutine 0 gp=0xc0006821c0 m=9 mp=0xc000680008 [idle]:
runtime.(*mheap).freeManual(0x27727e0, 0x0, 0x2)
/usr/local/go/src/runtime/mheap.go:1584 +0x22 fp=0xc000693fa0 sp=0xc000693f78 pc=0x42e882
runtime.(*sweepLocked).sweep.func2()
/usr/local/go/src/runtime/mgcsweep.go:798 +0x70 fp=0xc000693fc8 sp=0xc000693fa0 pc=0x42b790
runtime.systemstack(0x0)
/usr/local/go/src/runtime/asm_amd64.s:509 +0x4a fp=0xc000693fd8 sp=0xc000693fc8 pc=0x4762aa

@seankhliao seankhliao added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. and removed WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Sep 15, 2024
@hitzhangjie
Copy link
Contributor

hitzhangjie commented Sep 17, 2024

I have the same problem.

go1.22.2
OS linux

image

In my case, I have used 2 packages which uses unsafe and cgo, I haven't found the real reason.

@gopherbot
Copy link
Contributor

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

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. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
Development

No branches or pull requests

5 participants