need help debugging otp app

Chandrashekhar Mullaparthi Chandrashekhar.Mullaparthi@REDACTED
Thu Jan 6 18:03:34 CET 2005


You can examine the boot file to see if anything strikes you as incorrect.

{ok, Bin} = file:read_file("master.boot").
io:format("~p~n", [binary_to_term(Bin)]).

cheers
Chandru

> -----Original Message-----
> From: Garry Hodgson [mailto:garry@REDACTED] 
> Sent: 06 January 2005 16:09
> To: Erlang
> Subject: need help debugging otp app
> 
> 
> i'm trying to get my first otp application working, based on ulf's 
> release handling tutorial.  i've got most of the plumbing together,
> with the right directory structure and all, and build a .boot file
> from a .rel file.  when i try and run it, though, i get:
> 
> --> erl -boot ./master -config ./sys -boot_var MYAPPS $DIR -sname n1
> Error in process <0.1.0> with exit value: 
> {badarg,[{erlang,'++',[<<6 bytes>>," in 
> bootfile"]},{init,append,2},{init,concat,1},{init,get_var_valu
> e,2},{init,add_var,2},{init,fix_path,2},{init,make_path,4},{in
> it,eval_script,7},{init,do_boot,3}]}
> {"init terminating in do_boot",{badarg,[{erlang,'++',[<<6 
> bytes>>," in 
> bootfile"]},{init,append,2},{init,concat,1},{init,get_var_valu
> e,2},{init,add_var,2},{init,fix_path,2},{init,make_path,4},{in
> it,eval_script,7},{init,do_boot,3}]}}
> init terminating in do_boot ()
> 
> i've tracked down various errors in the code while trying to 
> fix this, 
> but this result doesn't change (despite building it all to a 
> clean directory
> structure each time).  and i just don't understand what it's 
> telling me.
> 
> so, short of posting all my code here to bore everyone, i could use
> some advice on what this error means, or how to proceed in
> debugging it.
> 
> thanks
> 
> ----
> Garry Hodgson, Technical Consultant, AT&T Labs
> 
> Be happy for this moment.
> This moment is your life.
> 



 NOTICE AND DISCLAIMER:
This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.




More information about the erlang-questions mailing list