-
Notifications
You must be signed in to change notification settings - Fork 3k
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
OTP25 bus error on Mac OS Sonoma #7687
Comments
I am getting the same issue installing Erlang OTP 25 using asdf To Reproduce If you already had OTP 25 before upgrade you get bus error if you run Expected behavior Affected versions |
+1 I didn't know about the issue with macOS Sonoma, and I installed it today and cannot run apps using OTP 25 or build it from source. |
@starbelly does this fix only cover 25.0? I will give this a test and see if that fixes my issue |
I have successfully been able to install 25.0.4 to be exact but any version of 25 will do After i install |
That's not possible @starbelly Do you know if those are cherry-pickable into |
maint will not help me in that case as I have always been able to install OTP26 but I need OTP25 |
@carflynn2009 I doubt they will do a new release for each non-major version, if this is fixed, you will probably get only on the latest OTP25 version. But compatibility wise, that should be good enough for almost everyone. |
Yes latest OTP25 will work for what I need, hopefully this can get cherry picked into that version |
We are not as eager to update our MacOS you guys, so we don't have anyway to test this yet. Can you do a |
I ran into the same issues just now. erlang 26 is no problem, all 25 are failing with a Bus error, reinstalling fails. I am using rtx,
|
@garazdawi This is the result of the git bisect:
Not sure what to do with that though. |
Hm, looks like there is no code changes in that commit... 🤔 |
Shouldn't git bisect take the bad commit ref first? So it would be |
Odd, try it without the Also as @Sgoettschkes noticed, the order of good and bad are switched because (in my git) |
Already tried, same commit is returned. |
I see my mistake, I also need to invert the test script, running it now with !compile. Also, somewhere in the middle of these commits the error message changes from
|
So this is how a renamed things:
And this is resulting commit:
|
Seems like the way we allocate JIT code in 25 has been disallowed in MacOS Sonoma. I don't think we can just apply the commit you found to 25 as that would also introduce other changes that I'm not sure we want on the 25 track. What happens if you set If you want to have a quick fix so that you can get on with your work you can disable the jit when compiling by setting: |
I can confirm that this is working with |
Using this:
Does compile it fine. Thanks for the help, and let me know if you need help further investigating the root cause and possible solution for it without disabling JIT. |
Sure, can you check if the problem comes back when you remove this line on |
Beautiful! So what I can do is reset back to this commit on maint-25 and it works. |
I’m not sure that’ll work well, if nothing else you’ll need to apply this too: 74eee75 |
Oh, no one said anything about working well 😄 Merely just getting it to compile and run and finding a point in time for that. |
That wouldn't work because you would be reseting forward into OTP26 and not backwards. |
This basically disables JIT compiling for now since the way erlang@25 does JIT compiling is not supported by Mac OS Sonoma. See this for more information: erlang/otp#7687
I faced with the same issue. but |
Makes sense that this is an ARM64 specific issue since it’s related to JIT compilation. Thanks for the extra info on the issue, I did not had access to an Intel Mac running Sonoma at the moment to test that. |
This basically disables JIT compiling for now since the way erlang@25 does JIT compiling is not supported by Mac OS Sonoma. See this for more information: erlang/otp#7687 erlang@25: disable JIT on arm64 Sonoma only
- mostly to prevent issues with latest macos update - see asdf-vm/asdf-erlang#284 - see erlang/otp#7687
- mostly to prevent issues with latest macos update - see asdf-vm/asdf-erlang#284 - see erlang/otp#7687
On macOS Sonoma, the JIT causes the runtime system to crash. This problem is eliminated in OTP 26, but the fix touches too much code for us trying to backport it. Fixes erlang#7687
* bjorn/jit/macos/GH-7687/OTP-18792: Disable JIT by default on Apple Silicon Macs
* bjorn/jit/macos/GH-7687/OTP-18792: Disable JIT by default on Apple Silicon Macs
* refactor UserLive.Index - use auth0 cache - refactor components * wip stripe * wip stripe * refactor e2e auth and prepare photographer test * comment out details * update donation banner, improve a11y * add e2e for photographer * add note, update translations * bump to OTP 26 - mostly to prevent issues with latest macos update - see asdf-vm/asdf-erlang#284 - see erlang/otp#7687 * regenerate gettext * fix a11y on non stripe user settings page * fix edge case that was thrown on profile * add behaviour * make payment/donations optional * skip some tests if env var isn't set * bump translations * pass down stripe secrets * add todo * move donation banner so no errors occur when user not found * fix error when user is in session despite user management not being enabled * update docs * add `UserManagment` and `UserShow` tests * format * update gettext * format again… * fix credo * make more tests async * improve styling * refactor e2e tests - move login details into env variables - document it * add variables to uberspace ini * remove stripe callback base url and use endpoint url instead * fix callback on prod
disabling jit doesn't work for me. It just changes the error:
@bjorng I am still seeing this issue with 26. It has not been eliminated and I don't think you should have closed it. |
@jdmarshall From your comments in kerl/kerl#514 it seems like you found out what the problem was and everything is working for you now? |
@garazdawi Yes! Make absolutely sure you've scrubbed ErlangInstaller off your machine. They are mutually incompatible. Check your .rc .profile and .login files. Otherwise you get cryptic error messages. |
Describe the bug
This have been known for a while since the beta, but I don’t see any issue here and the final version was released today.
To Reproduce
On Mac OS Sonoma, run
erlc
and you get a bus error.While rebuilding it from source with XCode 15, it also fails in the same manner, after building
erlc
it fails running it to build ebin’s.Expected behavior
It would be nice to know if there is any plans of fixing this for OTP25, or if only OTP26 will be supported going forward.
Affected versions
As far as I’m aware all versions below OTP26.
Additional context
https://elixirforum.com/t/bus-error-after-upgrading-to-sonoma-beta/56354?page=2
kerl/kerl#450
The text was updated successfully, but these errors were encountered: