Skip to content

x/sys/cpu: cpu_linux.go:31 /proc/self/auxv: permission denied on android/arm #30413

@rayvbr

Description

@rayvbr

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

Go 1.12

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

Using 'gomobile bind' to compile to android/arm

What did you do?

Compile arbitrary library (hello world) to android/arm using 'gomobile bind' (Android NDK 19b). Include in Android Java app.

Note: used git head of golang.org/x/sys (golang/sys@cc5685c)

What did you expect to see?

Running application

What did you see instead?

2019-02-26 19:12:32.502 8053-0/? E/Go: panic: read proc auxv failed: open /proc/self/auxv: permission denied
2019-02-26 19:12:32.502 8053-8094/? E/GoLog: panic: read proc auxv failed: open /proc/self/auxv: permission denied
2019-02-26 19:12:32.502 8053-0/? E/Go: goroutine 1 [running]:
2019-02-26 19:12:32.502 8053-0/? E/Go: <redacted>vendor/golang.org/x/sys/cpu.init.0()
2019-02-26 19:12:32.502 8053-0/? E/Go: 	<redacted>/vendor/golang.org/x/sys/cpu/cpu_linux.go:31 +0x1ac
2019-02-26 19:12:32.503 8053-8090/? E/CRASH: signal 6 (SIGABRT), code -6 (?), fault addr --------
2019-02-26 19:12:32.503 8053-8090/? E/CRASH: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.OS-Android

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions