macOS, M1, Segmentation fault

3,675 views
Skip to first unread message

Fabian Blechschmidt

unread,
Jun 26, 2021, 4:55:28 AM6/26/21
to rabbitmq-users
Good morning everyone!
while collecting all infos to ask questions here and ask for help to debug my problem I stumbled on the fact, that somehow I managed to remove erlang(!!??). But (re)installing erlang didn't fix my problem.

My problem:
-> % rabbitmq-server
/usr/local/sbin/rabbitmq-server: line 153: 58439 Segmentation fault: 11  start_rabbitmq_server "$@"

I have no idea how to debug this. Console.app doesn't show anything, system.log is empty and the logfiles in /usr/local/var/log/rabbitmq as well.

Happy to help improve rabbitMQ, if someone can tell me how to get more infos or how to approach this problem! :-)

Thanks
Fabian

Yong Hua Peng

unread,
Jun 30, 2021, 6:04:32 AM6/30/21
to rabbitm...@googlegroups.com
you would be able to tell us what's the running environment of rabbitmq, such as software and OS versions.
 
regards.
 
 
26.06.2021, 16:55, "Fabian Blechschmidt" <blechs...@fabian-blechschmidt.de>:
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/adccd6aa-d0bb-4266-b718-7d3256430c28n%40googlegroups.com.

Fabian Blechschmidt

unread,
Jun 30, 2021, 6:21:52 AM6/30/21
to rabbitmq-users
Stupid me, thanks!

- MacOS 11.4 running on a new M1 mac book air
- rabbitmq: stable 3.8.18 installed via Homebrew
- Erlang 24.0.2_1 installed via Homebrew

And I assume this is wrong as well?
-> % erl --version
[1]    27555 segmentation fault  erl --version
-> % erl -v
[1]    27570 segmentation fault  erl -v

Fabian Blechschmidt

unread,
Jul 1, 2021, 2:28:59 PM7/1/21
to rabbitmq-users
I gathered some more infos:
-> % rabbitmqctl status
[1]    65681 segmentation fault  rabbitmqctl status
-> % rabbitmqctl environment
[1]    65714 segmentation fault  rabbitmqctl environment

And the command which the rabbitmq-server script builds is this one:
-> % erl -pa '' -noinput -s rabbit boot -boot /usr/local/opt/erlang/lib/erlang/bin/start_clean +W w +MBas ageffcbf +MHas ageffcbf +MBlmbcs 512 +MHlmbcs 512 +MMmcs 30 +P 1048576 +t 5000000 +stbt db +zdbbl 128000 +sbwt none +sbwtdcpu none +sbwtdio none +B i -lager crash_log false -lager handlers '[]'
[1]    65638 segmentation fault  erl -pa '' -noinput -s rabbit boot -boot  +W w +MBas ageffcbf +MHas ageffcbf

If I can help you to help me somehow, please tell me!

Fabian Blechschmidt

unread,
Jul 1, 2021, 2:46:05 PM7/1/21
to rabbitmq-users
And another update (which solves my problem)
Everything above is about running rabbit-mq in a intel-emulation shell.

Once installed in a real ARM shell (with ARM homebrew) it works.

Fabian Blechschmidt

unread,
Jul 2, 2021, 12:12:50 PM7/2/21
to rabbitmq-users
Because I got a private message to explain what I did to solve the problem for me:

I have two iTerms (Terminal.app), if you open the info of the app, you can check a checkbox "open with rosetta". This checkbox is checked in the terminal I use normally and the one I install most of my software. This terminal is running homebrew for intel cpu.
I have a second iTerm which is running without Rosetta, which means it is running ARM. I have a second homebrew install running there with different paths and it installs everything compiled (or bottled) for ARM.

Installing rabbitmq in this terminal the standard way just worked for me:

$ brew install rabbitmq
and then call (because it seems I don't have the homebrew paths in my $PATH env variable)
$ /opt/homebrew/opt/rabbitmq/sbin/rabbitmq-server

No segmentation fault. So maybe erlang is doing something Rosetta2 doesn't like 🤷 

-> % /opt/homebrew/opt/rabbitmq/sbin/rabbitmq-server
Configuring logger redirection

  ##  ##      RabbitMQ 3.8.18
  ##  ##
  ##########  Copyright (c) 2007-2021 VMware, Inc. or its affiliates.
  ######  ##
  ##########  Licensed under the MPL 2.0. Website: https://rabbitmq.com
Reply all
Reply to author
Forward
0 new messages