[erlang-questions] how to debug distribution protocol issues?

mabrek mabrek@REDACTED
Tue Feb 21 05:58:34 CET 2012


Problem solved.
I rebuilt Erlang with CFLAGS="-D ERTS_DIST_MSG_DBG" and all
distribution messages were printed to stderr in readable format.

On Sun, Feb 19, 2012 at 5:53 PM, mabrek <mabrek@REDACTED> wrote:
> Hello.
>
> I've got erlang process linked to jinterface mailbox. When jinterface
> mailbox terminates erlang process trace shows getting_unlinked and no
> 'EXIT' message. It's a simplified version of process leak that I'm
> trying to debug.
>
> dbg:p(Pid, [m, p]) wasn't very helpful, it shows getting_unlinked, but
> there is no unlink/1 call neither on erlang nor on jinterface side.
>
> packet dump gathered via tcpdump may contain something interesting,
> but I can't find any tools to decode distribution protocol messages
> from binary to human readable form (wireshark has support only for
> epmd conversations).
>
> What is the best strategy/tools to use when debugging such kind of situations?
>
> Regards,
> Anton Lebedevich.



More information about the erlang-questions mailing list