[erlang-bugs] crashes when running two servers with the same name

Matthias Lang matthias@REDACTED
Fri Jun 1 09:19:38 CEST 2007


Denys Rtveliashvili writes:

 > Is this error message supposed to be in erl_crash.dump?
 > I do see it neither there nor on console.

At a guess, your installation of Erlang starts without SASL (why?). 

Try enabling error logging explicitly, i.e. do something like 

  alias erl='/usr/local/bin/erl -boot start_sasl -sasl errlog_type error'

and you'll see it. Here's what it looks like on my machine:

  tmp >/usr/local/bin/erl -sname a
  {error_logger,{{2007,6,1},{9,16,28}},"Protocol: ~p: register error:
~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},{gen_server,init_it,6},{proc_lib,init_p,5}]}]}
...
  
Figuring out what went wrong from the crash dump file is harder work.

Matthias



More information about the erlang-bugs mailing list