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

Mickaël Rémond mickael.remond@REDACTED
Thu Dec 28 10:12:56 CET 2006


Hello,

Le 28 déc. 06 à 08:32, Kenneth Lundin a écrit :

> Hi,
>
> Unfortunately you misspelled the call to gen_tcp:listen so we did  
> not get
> any useful tracing. Can you try once more and call
> gen_tcp:listen(0,[]) when the tracing is initiated as before.

Here is the result on my not-erlang-friendly Windows XP machine:

Eshell V5.5.2  (abort with ^G)
1> dbg:tracer().
{ok,<0.31.0>}
2> dbg:tracer().
{error,already_started}
3> dbg:p(all,c).
{ok,[{matched,nonode@REDACTED,22}]}
4> dbg:tp(inet,dbg:fun2ms(fun(_)->return_trace() end)).
{ok,[{matched,nonode@REDACTED,67},{saved,1}]}
5> dbg:tp(prim_inet,dbg:fun2ms(fun(_)->return_trace() end)).
{ok,[{matched,nonode@REDACTED,47},{saved,1}]}
6> dbg:tp(inet_config,dbg:fun2ms(fun(_)->return_trace() end)).
{ok,[{matched,nonode@REDACTED,4},{saved,1}]}
7> gen_tcp:listen(0,[]).
(<0.29.0>) call inet:listen_options([{port,0}],inet)
{error,enotsock}(<0.29.0>) returned from inet:listen_options/2 -> {ok, 
{listen_opts,
                                                           {0,0,0,0},
                                                           0,
                                                           5,
                                                           -1,
                                                            
[{active,true}]}}

(<0.29.0>) call inet:open(-1,{0,0,0,0},0, 
[{active,true}],stream,inet,inet_tcp)
8> (<0.29.0>) call prim_inet:open(stream,inet)
8> (<0.29.0>) returned from prim_inet:open/2 -> {ok,#Port<0.97>}
8> (<0.29.0>) call prim_inet:setopts(#Port<0.97>,[{active,true}])
8> (<0.29.0>) returned from prim_inet:setopts/2 -> ok
8> (<0.29.0>) call prim_inet:bind(#Port<0.97>,{0,0,0,0},0)
8> (<0.29.0>) returned from prim_inet:bind/3 -> {error,enotsock}
8> (<0.29.0>) call prim_inet:close(#Port<0.97>)
8> (<0.29.0>) returned from prim_inet:close/1 -> ok
8> (<0.29.0>) returned from inet:open/7 -> {error,enotsock}
8>

I hope this helps,

-- 
Mickaël Rémond
  http://www.process-one.net/


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20061228/d87ceaa4/attachment.htm>


More information about the erlang-questions mailing list