erlang Cannot get connection id for node bug

bug 描述

ping 同样sname, 使用ip作为hostname, 会使vm崩溃.

~/ejoy/battlenet/gangplank/apps/gate(master*) » iex --name aaa@bbb enjolras@ubuntu
Erlang/OTP 21 [erts-10.0] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]
Interactive Elixir (1.7.3) - press Ctrl+C to exit (type h() ENTER for help)
iex(aaa@bbb)1> Node.ping(:aaa@ccc)
:pang
iex(aaa@bbb)2> Node.ping(:aaa@cccddd)
:pang
iex(aaa@bbb)3> Node.ping(:bbb@127.0.0.1)
** (SyntaxError) iex:3: syntax error before: "
iex(aaa@bbb)3> Node.ping(:"bbb@127.0.0.1")
:pang
iex(aaa@bbb)4> Node.ping(:"aaa@127.0.0.1")
11:40:38.491 [error] 
** Cannot get connection id for node :aaa@bbb
 
11:40:38.495 [error] GenServer :net_kernel terminating
** (stop) bad return value: {#PID<0.59.0>, {:accept_pending, :nok_pending}}
Last message: {#PID<0.119.0>, {:accept_pending, :aaa@bbb, :aaa@bbb, {:net_address, {{127, 0, 0, 1}, 41657}, 'bbb', :tcp, :inet}, :normal}}
State: {:state, :aaa@bbb, :aaa@bbb, :longnames, {:tick, #PID<0.61.0>, 15000}, 7000, :sys_dist, [{#PID<0.117.0>, :"aaa@127.0.0.1"}], [], [{:listen, #Port<0.3>, #PID<0.60.0>, {:net_address, {{0, 0, 0, 0}, 46035}, 'ubuntu', :tcp, :inet}, :inet_tcp_dist}], [], 0, :all}
:pang
iex(5)> Logger - error: {removed_failing_handler,'Elixir.Logger'}
{"Kernel pid terminated",application_controller,{badarg,[{io_lib,format,["~0p",[{application_terminated,kernel,shutdown}]],[{file,"io_lib.erl"},{line,183}]},{application_controller,to_string,1,[{file,"application_controller.erl"},{line,2028}]},{application_controller,handle_info,2,[{file,"application_controller.erl"},{line,1173}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,637}]},{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,711}]}]}}
Kernel pid terminated (application_controller) ({badarg,[{io_lib,format,[[_],[_]],[{_},{_}]},{application_controller,to_string,1,[{_},{_}]},{application_controller,handle_info,2,[{_},{_}]},{gen_server
Crash dump is being written to: erl_crash.dump...done
作者:enjolras1205原文地址:https://segmentfault.com/a/1190000018831284

%s 个评论

要回复文章请先登录注册