[erlang-questions] Missing SASL Crash Report

15 views
Skip to first unread message

H. Diedrich

unread,
Jun 19, 2012, 3:05:52 PM6/19/12
to Erlang Questions
Hi,

why would I NOT get a CRASH REPORT listed out (although there is a
crash) in cases where I start a program directly, like

$ erl -boot start_sasl -pa ./ebin ./lib/Emysql/ebin -s run run -s init
stop -noshell


-module(run).
-export([run/0]).

run() ->

crypto:start(),
emysql:start(),
mysrv:start(),
pong = mysrv:ping(),
pong = mysrv:ping(gen_server),

io:format("start up and pings complete.~n"),

ok.


But if I do that in the shell, I get a CRASH REPORT (which is what I
want to find a bug)?

$ erl -boot start_sasl -pa ./ebin ./lib/Emysql/ebin
> crypto:start(), emysql:start(), nbtsrv:start().

Thanks,
Henning
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

Richard Carlsson

unread,
Jun 20, 2012, 3:27:11 PM6/20/12
to erlang-q...@erlang.org
Either simply that the timing is different (when you run all of it from
the command line, your code may begin to execute before sasl is fully
operational), or possibly because things executed with -s on the command
line are running before the system boot sequence is completed, and it
could be that sasl is not operational until booting is finished.

/Richard
Reply all
Reply to author
Forward
0 new messages