2016-07-28 96 views
0

我交叉編譯的erlang for arm系統。 後來,裝成二郎目標波紋管: ./INSTALL -saslErlang用sasl中止application_start_failure

當我檢查的目標越來越波紋管錯誤二郎神:

$ erl 
Erlang: 
=INFO REPORT==== 1-Jan-2015::19:30:44 === 
    application: sasl 
    exited: {bad_return, 
       {{sasl,start,[normal,[]]}, 
       {'EXIT', 
        {undef, 
         [{sasl,start,[normal,[]],[]}, 
          {application_master,start_it_old,4, 
           [{file,"application_master.erl"}, 
           {line,273}]}]}}}} 
    type: permanent 
Eshell V8.0 (abort with ^G) 
1> {"Kernel pid terminated",application_controller, 
"{application_start_failure,sasl,{bad_return,{{sasl,start,[normal,[]]}, 
{'EXIT',{undef,[{sasl,start,[normal,[]],[]}, 
{application_master,start_it_old,4,[{file,\"application_master.erl\"}, 
{line,273}]}]}}}}}"} 

Crash dump is being written to: erl_crash.dump...done 

Kernel pid terminated (application_controller) 
({application_start_failure,sasl, 
    {bad_return, 
    {{sasl,start,[normal,[]]},{'EXIT',{undef,[{sasl,start,[normal,[]],[]},{application_master,start_it_old,4,[{f 

沒有人知道關於此錯誤的。 在此先感謝。

+0

在添加它們之前閱讀標籤描述! – Olaf

+0

其實,它是rabbitmq-server的啓動消息,看起來標籤是正確的 –

+0

當我試圖在docker容器中啓動rabbitmq-server時,我也遇到了這個問題,爲此尋找解決方案,這裏應該是一個解決方案:https://pkgs.alpinelinux.org/package/edge/testing/x86_64/rabbitmq-server –

回答

0

錯誤消息的這部分:

{application_master,start_it_old,4,[{file,\"application_master.erl\"},{line,273}]} 

示出了其中沒有發現錯誤的地方。如果你在廁所的application_master.erl的代碼你會發現:

start_it_old(Tag, From, Type, ApplData) -> 
    {M,A} = ApplData#appl_data.mod, 

---->在錯誤消息內置

它管理
case catch M:start(Type, A) of 
    {ok, Pid} -> 
     link(Pid), 
     From ! {Tag, {ok, self()}}, 
     loop_it(From, Pid, M, []); 
    {ok, Pid, AppState} -> 
     link(Pid), 
     From ! {Tag, {ok, self()}}, 
     loop_it(From, Pid, M, AppState); 
    {'EXIT', normal} -> 
     From ! {Tag, {error, {{'EXIT',normal},{M,start,[Type,A]}}}}; 
    {error, Reason} -> 
     From ! {Tag, {error, {Reason, {M,start,[Type,A]}}}}; 

----> case語句行結果

Other -> 
     From ! {Tag, {error, {bad_return,{{M,start,[Type,A]},Other}}}} 
    end. 

,讓你知道的M:start(Type,A)評估的結果已返回{'EXIT',{undef,[{sasl,start,[normal,[]],[]}。這意味着VM無法找到文件sasl.beam。因此,要麼不存在(erlang庫編譯未完成)或路徑中出現錯誤(該文件應該位於「Installation_Path /../ lib/sasl-xy/ebin/sasl.beam」