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

Segmentation fault when running on M1 Macs (Apple Silicon / Darwin arm64) #79

Closed
lucascaton opened this issue Jan 3, 2021 · 1 comment · Fixed by #82
Closed

Segmentation fault when running on M1 Macs (Apple Silicon / Darwin arm64) #79

lucascaton opened this issue Jan 3, 2021 · 1 comment · Fixed by #82

Comments

@lucascaton
Copy link

lucascaton commented Jan 3, 2021

Hi there,

I've just tested ejson on a M1 Macbook and while it was installed without any issues/errors, it won't run:

$ bundle exec ejson
[1]    80653 segmentation fault  bundle exec ejson

Considerations:

I think the reason why I was able to install is because this line also matches the return of uname -sm in the new architecture:

$ uname -sm
Darwin arm64

It might need to be split like this:

- when /^Darwin/       ; "darwin-amd64"
+ when /^Darwin amd64/ ; "darwin-amd64"
+ when /^Darwin arm64/ ; "darwin-arm64"

I'm happy to provide more information if you need it.

@seanstory
Copy link

Same issue

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

Successfully merging a pull request may close this issue.

2 participants