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: crash on mips64 with sigpanic in C code #23641

Closed
aclements opened this issue Jan 31, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@aclements
Copy link
Member

commented Jan 31, 2018

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

tip (ebe38b8)

Does this issue reproduce with the latest release?

It should, though it's difficult to arrange so I didn't test it.

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

The linux-mips64 builder.

GOARCH="mips64"
GOBIN=""
GOCACHE="/mips/proj/build-compiler/upstream-testing/go-lang/.cache/go-build"
GOEXE=""
GOHOSTARCH="mips64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/mips/proj/build-compiler/upstream-testing/go-lang/go"
GORACE=""
GOROOT="/data/mips64/go"
GOTMPDIR=""
GOTOOLDIR="/data/mips64/go/pkg/tool/linux_mips64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -mabi=64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build106984263=/tmp/go-build -gno-record-gcc-switches"

What did you do?

Commit ebe38b8 added a test that causes a SIGSEGV in C code that turns into an injected sigpanic call. This revealed a bug on mips64 that causes sigpanic itself to SIGSEGV the first time it references a global when invoked from C code: https://build.golang.org/log/352d06e4db037c570ae5a99aba8a6fdd175b04ff

@aclements aclements added this to the Go1.10 milestone Jan 31, 2018

@aclements aclements self-assigned this Jan 31, 2018

@gopherbot

This comment has been minimized.

Copy link

commented Jan 31, 2018

Change https://golang.org/cl/91156 mentions this issue: runtime: restore RSB for sigpanic call on mips64x

@gopherbot gopherbot closed this in e518689 Jan 31, 2018

@golang golang locked and limited conversation to collaborators Jan 31, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.