Skip to content
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

flag: panic on android/arm64 #13599

Closed
karalabe opened this issue Dec 13, 2015 · 5 comments
Closed

flag: panic on android/arm64 #13599

karalabe opened this issue Dec 13, 2015 · 5 comments
Milestone

Comments

@karalabe
Copy link
Contributor

Just been cross compiling to various flavors of Android, and hit a bug present on android/arm64 (it works as intended on both android/arm and android/386). The flag package reads os.Args[0] at https://github.com/golang/go/blob/master/src/flag/flag.go#L939, which is not initialized on android/arm64, producing a hard crash.

@karalabe
Copy link
Contributor Author

After some digging around in the code base, the issue is that the os.Args isn't initialized for android/arm64 when building with buildmode=c-shared.

android/arm64 vs. android/arm

@karalabe
Copy link
Contributor Author

@rsc
Copy link
Contributor

rsc commented Dec 17, 2015

Presumably fixed by CL 17782.

@rsc rsc closed this as completed Dec 17, 2015
@karalabe
Copy link
Contributor Author

Ah yes, thought it would be auto closed.
On Dec 17, 2015 9:20 AM, "Russ Cox" notifications@github.com wrote:

Presumably fixed by CL 17782.


Reply to this email directly or view it on GitHub
#13599 (comment).

@rsc
Copy link
Contributor

rsc commented Dec 17, 2015 via email

@golang golang locked and limited conversation to collaborators Dec 29, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants