Skip to content

runtime/race: cannot run under qemu-user-ppc64le due to execve /proc/self/exe #42080

@tie

Description

@tie

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

$ go version
go version go1.15.2 linux/amd64

Does this issue reproduce with the latest release?

Yes, starting with go1.15rc2 up to the latest go1.15.3 release (that is, after e49b230).

What did you do?

  • Set up qemu-user on linux/amd64 host.
  • Run GOARCH=ppc64le go test.

What did you expect to see?

Tests running under QEMU user mode emulation.

What did you see instead?

qemu: unknown option 'test.timeout=10m0s'

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.compiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    Status

    Triage Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions