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
cmd/go: build -a: segmentation fault #29183
Comments
Does this happen with any package, or just with a specific package? If it's the latter, can you share a complete reproducer? Also, go1.10 is quite old. Can you reproduce this with go1.11 or the current tip (to be 1.12)? |
Q: Does this happen with any package, or just with a specific package? |
Thanks for the answer. Honestly this smells like a local issue of the Go installation on the machine where it fails... I would still like to know this:
Since if it's a local issue with the Go installation it'll probably go away with a clean upgrade. |
Could you set
|
➜ test gdb ./main core.2400 warning: Could not load shared library symbols for linux-vdso.so.1. |
Realistically this is unlikely to be fixed in 1.10, since we still don't know the cause. Please see if you can reproduce it with 1.11.4 or 1.12beta2. |
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.) |
use |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
source code:
when use
go build main.go
to build the programe, it's work, but usego build -a main.go
, when run the programe builded , an error occured:[1] 22468 segmentation fault ./main
What did you expect to see?
hello world
What did you see instead?
[1] 22468 segmentation fault ./main
The text was updated successfully, but these errors were encountered: