[erlang-bugs] etop dies with unmatched case_clause error

Igor Goryachev goryachev@REDACTED
Wed Mar 19 14:25:35 CET 2008


Hello.

etop sometimes dies with the following output:

Output server crashed: {{case_clause,undefined},
                        [{observer_backend,pi,2},
                         {observer_backend,'-etop_collect/1-fun-0-',1},
                         {lists,flatmap,2},
                         {lists,flatmap,2},
                         {observer_backend,etop_collect,1}]}

There seems to be a missed case clause in pi/2 of observer_backend while
process_info can return more values than is handled, from manual page:
``process_info(Pid, Item) -> {Item, Info} | undefined | [])''. The
tiny patch is included.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: observer_backend_unmatched_case_clause_fix.diff
Type: text/x-diff
Size: 336 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20080319/3e71c104/attachment.bin>
-------------- next part --------------


-- 
Igor Goryachev
Yandex development team.


More information about the erlang-bugs mailing list