etk update

Ulf Wiger ulf.wiger@REDACTED
Wed Apr 21 09:53:17 CEST 1999


Eric Blood wrote:
> 
> Ok, I've flamed up the debugger, set a break point, and did one step
> down into the wtour stuff, and the return of etk:start() is <0.55.0>.
> In the "monitor" window of the debugger window, it shows:
> 
>    {undef, {etk, start, []}}
> 
> So, it looks like a build problem.  However, why does <0.55.0> show up
> on the terminal instead of the atoms shown in the monitor window?
> 
> Meanwhile I'll look to see why etk didn't get in there.
> 
> Eric


The reason why the error indication is so poor is that spawn/3 was used
instead of e.g. spawn_link/3 or - better yet - proc_lib:spawn_link/3.
spawn/3 doesn't care what happens to the process it created. It will
always just return the pid and move on.

With spawn_link/3:
------------------
etxuwig@REDACTED > erl -boot start_clean
Erlang (BEAM) emulator version 4.8.2
 
Eshell V4.8.2  (abort with ^G)
1> wtour:start().
<0.30.0>
** exited: {undef,{etk,start,[]}} **


With proc_lib:spawn_link/3 and the SASL application started:
------------------------------------------------------------
etxuwig@REDACTED > erl -boot start_sasl
Erlang (BEAM) emulator version 4.8.2
 
Eshell V4.8.2  (abort with ^G)
1> 
...
=PROGRESS REPORT==== 21-Apr-1999::09:50:55 ===
         application: sasl
          started_at: nonode@REDACTED
 
1> wtour:start().
<0.39.0>
** exited: {undef,{etk,start,[]}} **
2> 
=CRASH REPORT==== 21-Apr-1999::09:50:59 ===
  crasher:
    pid: <0.39.0>
    registered_name: []
    error_info: {undef,{etk,start,[]}}
    initial_call: {wtour,start1,[]}
    ancestors: [<0.25.0>]
    messages: []
    links: [<0.25.0>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 233
    stack_size: 0
    reductions: 76
  neighbours:
    neighbour: [{pid,<0.25.0>},
                  {registered_name,[]},
                  {initial_call,{shell,evaluator,3}},
                  {current_function,{shell,eval_loop,2}},
                  {ancestors,[]},
                  {messages,[]},
                  {links,[<0.22.0>,<0.39.0>]},
                  {dictionary,[]},
                  {trap_exit,false},
                  {status,waiting},
                  {heap_size,233},
                  {stack_size,0},
                  {reductions,40}]

-- 
Ulf Wiger, Chief Designer AXD 301     <ulf.wiger@REDACTED>
Ericsson Telecom AB                          tfn: +46  8 719 81 95
Varuvägen 9, Älvsjö                          mob: +46 70 519 81 95
S-126 25 Stockholm, Sweden                   fax: +46  8 719 43 44



More information about the erlang-questions mailing list