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: signal/illegal instruction #71339

Closed
mfreeman451 opened this issue Jan 20, 2025 · 6 comments
Closed

runtime: signal/illegal instruction #71339

mfreeman451 opened this issue Jan 20, 2025 · 6 comments
Labels
BugReport Issues describing a possible bug in the Go implementation. 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

@mfreeman451
Copy link

Go version

go 1.23

Output of go env in your module/workspace:

golang:1.23-bullseye

What did you do?

Compiling Cgo-enabled code (golang that includes SQLite) generated an error

Running the build process again works fine.

What did you see happen?

crypto/tls: /usr/local/go/pkg/tool/linux_amd64/compile: signal: illegal instruction

What did you expect to see?

No errors?

@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Jan 20, 2025
@Jorropo
Copy link
Member

Jorropo commented Jan 20, 2025

Could you provide help reproducing please ?
Ideally the source code, the build command and the final command to see the error.

@Jorropo Jorropo added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. BugReport Issues describing a possible bug in the Go implementation. labels Jan 20, 2025
@mfreeman451
Copy link
Author

Could you provide help reproducing please ? Ideally the source code, the build command and the final command to see the error.

https://github.com/mfreeman451/serviceradar

build command is: ./build.sh

@seankhliao
Copy link
Member

I think we'll also need things like your hardware setup, and how docker and any virtualization ties into it.
and please include the go env we requested

@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 Jan 20, 2025
@mfreeman451
Copy link
Author

This is my go env:

GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/Users/mfreeman/Library/Caches/go-build'
GOENV='/Users/mfreeman/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/mfreeman/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/mfreeman/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.23.4'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/Users/mfreeman/Library/Application Support/go/telemetry'
GCCGO='gccgo'
GOARM64='v8.0'
AR='ar'
CC='clang'
CXX='clang++'
CGO_ENABLED='1'
GOMOD='/Users/mfreeman/src/serviceradar/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 -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/vx/21_0scg14y7dndtds2tmzhj80000gn/T/go-build3326182459=/tmp/go-build -gno-record-gcc-switches -fno-common'

However, due to build requirements of SQLite and cgo, I am building this within a Docker environment (see my Dockerfile.build)

This only has happened once and I cannot reproduce it.

@seankhliao
Copy link
Member

closing as unreproducible

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Jan 20, 2025
@mfreeman451
Copy link
Author

mfreeman451 commented Jan 22, 2025

Turns out it is reproduceable, I've had it happen to me twice today.

Building Go binary...
io/fs: /usr/local/go/pkg/tool/linux_amd64/compile: signal: illegal instruction

2nd time:

google.golang.org/protobuf/reflect/protoregistry: /usr/local/go/pkg/tool/linux_amd64/compile: signal: illegal instruction

again this morning:

internal/bytealg: /usr/local/go/pkg/tool/linux_amd64/compile: signal: illegal instruction

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

No branches or pull requests

4 participants