Erlang Mailing Lists

Author Message

<  Erlang bugs mailing list  ~  pman trace shell bug or initial_call bug

samuel at dc.fi.udc.es
Posted: Mon Sep 27, 2004 9:15 am Reply with quote
Guest
The trace shell option of pman is no longer working. Pman hangs
forever when you try to trace the shell process.

The problem is in pman_shell:find_shell function. It assumes the shell
process is the one that has the {initial_call,{shell,evaluator,3}}
tuple within its process info, but some change has broken this: a process
created with spawn_link will have {erlang, apply, 2} as its initial_call
value.

I've attached a patch that solves the pman problem adding a dictionary
entry so that the shell process can be recognized again, but seems a
"dirty" solution. IMO it would be worth restoring the former behaviour
of the spawn functions, but it is beyond my knowledge so far :(

Any ideas?

Best regards.
--
Samuel


Post generated using Mail2Forum (http://m2f.sourceforge.net)

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum