[erlang-bugs] ttb does not handle ports

Matthias Radestock <>
Sat Jun 9 11:11:13 CEST 2007


I took a sequential trace with ttb and the viewed it with

  ttb:format(File, [{handler, et}]).

This resulted in the following error:

** exited: {function_clause,[{ttb,get_procinfo,[#Port<0.85>]},
                             {ttb,update_procinfo,1},
                             {ttb,collector,2},
                             {ttb,format,3},
                             {erl_eval,do_apply,5},
                             {shell,exprs,6},
                             {shell,eval_loop,3}]} **

This is happening in R11B-4.

The problem is caused by a missing case in ttb:get_procinfo for handling
port processes. The attached patch adds a catch-all case that fixes
this.


Regards,

Matthias.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ttb.erl.patch
Type: text/x-diff
Size: 576 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20070609/34456d62/attachment.bin>


More information about the erlang-bugs mailing list