[erlang-questions] Reltool and escript

Håkan Mattsson <>
Mon Mar 23 10:31:01 CET 2015


I don't know about the SIGSEGV.
​ But ​
​a​
s the script is written, it will end prematurely. A simple solution is to
just add timer:sleep(infinity) in the end of the script. A better solution
is to wait for reltool to end before you exit the script. Then you may exit
the script with different status codes

/Håkan

On Thu, Mar 19, 2015 at 6:29 PM, Judson Lester <> wrote:

> Maybe this is a weird thing to do, but I'm experimenting with the reltool
> GUI, and running it from erl all the time was getting me down. So I wrote a
> little escript for it:
>
> main(_Args) ->
>   {ok, Options} = file:consult("config.reltool"),
>   reltool:start_link(Options).
>
> Those commands exactly work fine in an erl session, but when I run the
> escript, I get to a warning about various applications and their module
> name collisions, and then
>
> “scripts/reltool ” terminated by signal SIGSEGV (Address boundary error)
>
> and then the script dies.
>
> Is there, maybe, a %%! setting I need to make or something?
>
> Judson
>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150323/3197a99e/attachment.html>


More information about the erlang-questions mailing list