-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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/race: cannot run under qemu-user-ppc64le due to execve /proc/self/exe #42080
Comments
We currently lack a QEMU builder (#1508), and per http://golang.org/wiki/PortingPolicy, supported platforms require builders. Therefore, the QEMU platform is not supported. |
Also, this is an issue with the race detector support libraries which are part of the LLVM project. There is nothing that the Go project can do to fix this problem. CC @dvyukov |
Indeed, that’s mostly an issue with sanitizer and not Go. Both are somewhat tightly coupled though. Concerning the fix, I think we can pass env var to indicate that the executable is run directly from |
Can I ask for an update on this? seems there were a couple of patches pushed out to qemu, to try and resolve, but I don't think they landed - is this an issue with qemu or with golang? |
We don't seem to re-exec in Go mode at all: Does it still reproduce with the latest release? |
Hi @dvyukov thanks for the reply - this is slightly academic for me at this point - I don't need qemu on my machine, but my team do and so this bug only occurs on other's machines. This issue predates me, I'm just trying to chase up on the status of the various patches on qemu's side as we are currently building custom qemu with those patches applied... See the Qemu issue I raised for this here: https://gitlab.com/qemu-project/qemu/-/issues/1222 Perhaps there is some way we could look back through the go diffs and see if this was resolved for go at some point? |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, starting with
go1.15rc2
up to the latestgo1.15.3
release (that is, after e49b230).What did you do?
GOARCH=ppc64le go test
.What did you expect to see?
Tests running under QEMU user mode emulation.
What did you see instead?
The issue is caused by race detector runtime calling
execve("/proc/self/exe", …)
. With user mode emulation this executes QEMU itself instead of the emulated process.The text was updated successfully, but these errors were encountered: