[erlang-questions] Unable to start ejabberd or use TCP/IP communication in erlang interpreter

Mikle sign1024_3@REDACTED
Thu Dec 28 02:31:33 CET 2006

Kenneth Lundin <kenneth.lundin <at> gmail.com> writes:

> Hi,
> In order to be able to find out the reason for this problem that has
> been around for quite some time now I would like you to do the
> following on the machine where the problem occurs:
> Start a Erlang node plain non distributed Erlang node and perform the
> following in the shell:
> dbg:tracer().
> dbg:p(all,c).
> dbg:tp(inet,dbg:fun2ms(fun(_)->return_trace() end)).
> dbg:tp(prim_inet,dbg:fun2ms(fun(_)->return_trace() end)).
> dbg:tp(inet_config,dbg:fun2ms(fun(_)->return_trace() end)).
> % then try gen_tcp:listen as before
> gen_tcp:listen(0,[]).
> % You will get some trace printouts in the shell that I would like to see.
> % from these we will hopefully be able to locate or at least get closer to the
> % actual problem
> Regards Kenneth (Product Responsible for Erlang/OTP at Ericsson)

Thank You for advise.

Here the trace printouts:

Erlang (BEAM) emulator version 5.5.2 [async-threads:0]

Eshell V5.5.2  (abort with ^G)
1> dbg:tracer().
2> dbg:p(all,c).
3> dbg:tp(inet,dbg:fun2ms(fun(_)->return_trace() end)).
4> dbg:tp(prim_inet,dbg:fun2ms(fun(_)->return_trace() end)).
5> dbg:tp(inet_config,dbg:fun2ms(fun(_)->return_trace() end)).
6> gen_tcp:listn(0,[]).

=ERROR REPORT==== 28-Dec-2006::04:24:03 ===
Error in process <0.30.0> with exit value: {undef,[{gen_tcp,listn,[0,[]]},{erl_e

** exited: {undef,[{gen_tcp,listn,[0,[]]},
                   {shell,eval_loop,3}]} **

More information about the erlang-questions mailing list