xlive

xlive

Bus error after upgrading to Sonoma beta

Hey there!

I’m testing MacOS Sonoma 14.0 Beta (currently in a M1 MBPro) as I wanted to get hands on it for some future projects..
After the upgrade, I’ve discovered I cannot use iex, mix or any erlang related command anymore :scream:
I’ve tried with my current installation (asdf) and also installing elixir with brew. Any of them works unfortunately..

The error I get is the following:

mix compile
[1]    69035 bus error  mix compile

But I can still run python, ruby and the rest of my usual tools.

Has anyone run into the same problem?
Or do you know a way how could I debug better the error maybe?

Thanks a lot community!

First 10 of 46 Posts Switch mode

dimitarvp

dimitarvp

Shenanigans of ARM vs. Intel processor instructions, maybe? :thinking: You got Rosetta installed? If so, have you made sure you’re running the ARM version of Erlang/Elixir?

xlive

xlive OP

thanks for answering!!
I don’t have Rosetta nope :confused: (or at least I wasn’t aware of it)
I was lucky enough that when I got the laptop this was already solved :+1:

Edit: running pgrep oahd returns me an int, so looks like I have it.. the problem is that I haven’t changed anything about the versions installed (aside from MacOS) recently, so that’s why I was wondering if the update was the problem..

Raf1

Raf1

I am experiencing exactly the same problem…
Any updates on a potential fix?

Thanks!

xlive

xlive OP

Not yet.. Looks like not many people is upgrading so we don’t have much visibility..
I hope someone gives us some light on this soon :crossed_fingers:

jhogberg

jhogberg

Erlang Core Team

We don’t test under Rosetta (we only test native Intel JIT or native ARM JIT), so it’s possible that we missed something.

If someone could build from source and run bin/cerl -lldb and give us a view of the crash, that would be of great help.

xlive

xlive OP

Hey @jhogberg ! Thanks for trying to help us :+1:
I’ve just installed Erlang from source and it works correctly and without any errors (even in the smoke test).
Looks like this error could be coming then from ASDF and brew binaries maybe?
I will try now installing Elixir from source too!

Edit: Same for Elixir! Installing from source makes it work as expected.
@Raf1 you could do the same as a workaround for now :+1:

xlive

xlive OP

Let me know if I can do something to give you insights about non-source installations :pray:

Pasting here the smoke test results

Nicd

Nicd

asdf also builds Erlang from sources.

jhogberg

jhogberg

Erlang Core Team

If you could attach lldb to the binaries that crash that’d also be helpful.

Yes, so it’s rather strange that one works and the other does not. Perhaps asdf runs under Rosetta for some reason?

xlive

xlive OP

How could I do that?
When I run bin/cerl -lldb as you said before, I don’t get any error, just the following:

$ bin/cerl -lldb

(lldb) target create "beam.smp"
Current executable set to 'beam.smp' (arm64).
(lldb) settings set -- target.run-args  "--" "-root" "/Users/xavierrodriguez/Downloads/otp_src_26.0" "-bindir" "/Users/xavierrodriguez/Downloads/otp_src_26.0/bin/aarch64-apple-darwin23.0.0" "-progname" "/Users/xavierrodriguez/Downloads/otp_src_26.0/bin/cerl" "--" "-home" "/Users/xavierrodriguez" "--"
(lldb) command source -s 0 '/tmp/.cerllldb.44427'
Executing commands in '/tmp/.cerllldb.44427'.
(lldb) env TERM=dumb
(lldb) command script import /Users/xavierrodriguez/Downloads/otp_src_26.0/erts/etc/unix/etp.py

Where Next?

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
jonnycharles
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
silverdr
Using Phoenix.LiveView.TagEngine as an EEx.Engine is deprecated! To compile HEEx, use Phoenix.LiveView.TagEngine.compile/2 instead. Sta...
New
dli
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app? Looking for hints regarding: Addi...
New
bottlenecked
Hi all, I wanted to ask how the community is dealing with post-release steps. Today we have Ecto migrations, which make sure that the db...
New
michallepicki
I am using Oban and occasionally, shortly after a deployment, a handful of jobs can fail because of dependency on other parts of the syst...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New

We're in Beta

About us Mission Statement