[erlang-questions] ** exception exit: shutdown

Chandru chandrashekhar.mullaparthi@REDACTED
Thu Aug 13 23:55:35 CEST 2015


Which version of erlang are you using? What OS? Trying it on OS X, the node
dies quietly. Not entirely sure why you are seeing the "exception exit"
message. Did you have any processes running before you invoked q()?
Basically the node shutdown procedure is being invoked, and all your
processes get killed.

Functions you type in the shell are defined in shell_default.erl.

shell_default:q/0 is defined as:


q()             -> c:q().

c:q/0 is defined as:

-spec q() -> no_return().


q() ->

    init:stop().

If you turn tracing on for the init process to see what happens.

$ ~/erlang/R17-5/bin/erl

Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:8:8] [async-threads:10]
[hipe] [kernel-poll:false]


Eshell V6.4  (abort with ^G)

1> whereis(init).

<0.0.0>

2>

2>

2>

2> dbg:tracer().

{ok,<0.35.0>}

3> dbg:p(whereis(init), [s,r]).

{ok,[{matched,nonode@REDACTED,1}]}

4>

4>

4> q().

(<0.0.0>) << {stop,stop}

(<0.0.0>) <0.7.0> ! {'EXIT',<0.2.0>,shutdown}

ok

5> (no error logger present) error: "Error in process <0.35.0> with exit
value: {badarg,[{io,format,[user,\"** dbg got EXIT - terminating:
~p~n\",[{trace_handler_crashed,{badarg,[{io,format,[user,\"(~p) <<
~p~n\",[<0.0.0>,{'EXIT',<0.7.0>,shutdown}]],[]},{dbg,dhandler1,3,[{file,\"dbg.erl\"},{line,983}]},{dbg,invoke_handler...
\n"


Chandru



On 13 August 2015 at 16:26, Sid Muller <sid5@REDACTED> wrote:

> Hi,
>
> does anyone have any pointers on how to debug an exception exit in shell?
>
> When I type q(). into the shell I get this:
>
> 3> q().
> ok
> ** exception exit: shutdown
> 4> sidm@REDACTED:~/src/proj$
>
>
> The problem is I don't know where to look since the exception is so terse.
> Does anyone have any pointers?
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150813/4345f850/attachment.htm>


More information about the erlang-questions mailing list