-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime: fatal error: unexpected signal during runtime execution (during compilation) #11783
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
Comments
What is your Is CGO_ENABLED=0 required? Are the -ldflag -X required? |
It's a Virtualbox VM with 4 CPUs.
For some of the programs being compiled, this was required in order to do cross-compilation properly on Go 1.4.
For testing builds they are not required, but we use the same build flags for testing and release. So far this hasn't been happening frequently enough for me to isolate anything. If there is no readily apparent explanation, I can provision some compute resources to run many builds and try to figure out the frequency. |
CC @randall77 The crash is happening when funcspdelta is trying to report an error: print("invalid spdelta ", funcname(f), " ", hex(f.entry), " ", hex(targetpc), " ", hex(f.pcsp), " ", x, "\n") The call to funcname in this print statement is crashing, most likely because findmoduledatap(f.entry) is returning nil. funcspdelta is being called because the stack growth code is walking the stack adjusting stack frames. Oddly, this seems to be happening very early in program execution. Unfortunately, I can't tell which program is running. As a first step, please add the -x option to your go build command, so we can see the command that fails. Please also set the environment variable GOTRACEBACK=crash. That should give us a core dump for the crashing program, which may help us analyze the problem. |
CL https://golang.org/cl/12391 mentions this issue. |
The findmoduledatap function will not return nil in ordinary use, but check for nil to try to avoid crashing when we are already crashing. Update #11783. Change-Id: If7b1adb51efab13b4c1a37b6f3c9ad22641a0b56 Reviewed-on: https://go-review.googlesource.com/12391 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Dup of #11792. |
What version of Go are you using (go version)?
What operating system and processor architecture are you using?
What did you do?
Ran the following
go build
command (via thetup
build system):What did you expect to see?
The program compile successfully.
What did you see instead?
Rarely, this error occurs when compiling a package (the package does not appear to be consistently the same):
The text was updated successfully, but these errors were encountered: