[Bug 285020] net/rabbitmq: fix crash on start

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 24 Feb 2025 22:28:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285020

            Bug ID: 285020
           Summary: net/rabbitmq: fix crash on start
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: erlang@FreeBSD.org
          Reporter: zarychtam@plan-b.pwste.edu.pl
          Assignee: erlang@FreeBSD.org
             Flags: maintainer-feedback?(erlang@FreeBSD.org)

Created attachment 257855
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=257855&action=edit
0001-net-rabbitmq-fix-crash-on-startup.patch

To fix the issue (see below) with startup in the jail, take the user home
first:

+ su -m rabbitmq -c '/usr/local/sbin/rabbitmqctl wait
/var/run/rabbitmq/rabbitmq.pid'
{erl_prim_loader,file_error}
"File operation error: eacces. Target: no_dot_erlang.boot. Function: get_file.
"
(no logger present) unexpected logger message: {log,error,"Error in process ~p
with exit
value:~n~p~n",[<0.43.0>,{badarg,[{persistent_term,get,[code_server],[{error_info,#{module=>erl_erts_errors}}]},{code_server,get_mode,0,[{file,"code_server.erl"},{line,75}]},{code,ensure_loaded,1,[{file,"code.erl"},{line,558}]},{error_handler,undefined_function,3,[{file,"error_handler.erl"},{line,84}]},{logger_backend,call_handlers,3,[{file,"logger_backend.erl"},{line,51}]},{proc_lib,exit_p,3,[{file,"proc_lib.erl"},{line,350}]}]}],#{error_logger=>#{emulator=>true,tag=>error},pid=><0.43.0>,time=>1740434136201221,gl=><0.0.0>}}
Kernel pid terminated (logger)
({badarg,[{persistent_term,get,[code_server],[{error_info,#{module=>erl_erts_errors}}]},{code_server,get_mode,0,[{file,"code_server.erl"},{line,75}]},{code,ensure_loaded,1,[{file,"code.erl"},{line,558}]},{error_handler,undefined_function,3,[{file,"error_handler.erl"},{line,84}]},{logger_backend,call_handlers,3,[{file,"logger_backend.erl"},{line,51}]},{proc_lib,exit_p,3,[{file,"proc_lib.erl"},{line,350}]}]})

Crash dump is being written to: erl_crash.dump...+ _return=1

-- 
You are receiving this mail because:
You are the assignee for the bug.