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

Getting address not mapped program compiled go 1.18 on M1 Mac #24

Open
abezzub opened this issue Apr 2, 2022 · 1 comment
Open

Getting address not mapped program compiled go 1.18 on M1 Mac #24

abezzub opened this issue Apr 2, 2022 · 1 comment

Comments

@abezzub
Copy link

abezzub commented Apr 2, 2022

I am trying to use gops which uses goversion. I stepped through the code all the way to here:
https://github.com/rsc/goversion/blob/master/version/read.go#L142

and I get back err "address not mapped". isGo is true here:
https://github.com/rsc/goversion/blob/master/version/read.go#L52

@aymanrb
Copy link

aymanrb commented Apr 15, 2022

I have the same findings here. Interestingly enough, this doesn't happen to all programs compiled on the M1 Machine and also happens with 1.17. I have a couple of simple small applications that work fine, and a few others that return the "address not mapped" error.

If the same program is compiled with GOARCH=amd64 the version is returned correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants