dbg:p(all, [c]) hangs the shell

Kaiduan Xie kaiduanx@REDACTED
Wed Jul 1 20:28:10 CEST 2009


Hi, all,

I would like to trace all calls in all processes, however the erlang
shell hangs after dbg:p(all, [c]). It even does not accept Ctrl-G.

kaiduanx@REDACTED:~$ erl
Erlang (BEAM) emulator version 5.6.5 [source] [async-threads:0] [hipe]
[kernel-poll:false]

Eshell V5.6.5  (abort with ^G)
1> dbg:tracer().
{ok,<0.33.0>}
2> dbg:tpl('_', '_', '_', dbg:fun2ms(fun(_) -> return_trace() end)).
{ok,[{matched,nonode@REDACTED,5905},{saved,1}]}
3> dbg:get_tracer().
{ok,<0.34.0>}
4> process_info(list_to_pid("<0.34.0>")).
[{current_function,{dbg,tracer_loop,2}},
 {initial_call,{erlang,apply,2}},
 {status,waiting},
 {message_queue_len,0},
 {messages,[]},
 {links,[<0.33.0>]},
 {dictionary,[]},
 {trap_exit,true},
 {error_handler,error_handler},
 {priority,max},
 {group_leader,<0.24.0>},
 {total_heap_size,233},
 {heap_size,233},
 {stack_size,3},
 {reductions,5},
 {garbage_collection,[{fullsweep_after,65535},{minor_gcs,0}]},
 {suspending,[]}]
5> dbg:p(list_to_pid("<0.24.0>"), clear).
{ok,[{matched,nonode@REDACTED,1}]}
6> dbg:p(all, [c]).
(<0.33.0>) call lists:map(#Fun<dbg.25.124365820>,[])
(<0.33.0>) returned from lists:map/2 -> []
(<0.33.0>) call dbg:reply(<0.31.0>,{ok,[{matched,nonode@REDACTED,25}]})
(<0.33.0>) returned from dbg:reply/2 -> {dbg,
                                         {ok,[{matched,nonode@REDACTED,25}]}}
{ok,[{matched,nonode@REDACTED,25}]}

Any idea on what was wrong?

Thanks,

kaiduan


More information about the erlang-questions mailing list