[erlang-questions] tracer keep tracing after stopping dbg

Leo Liu sdl.web@REDACTED
Wed Oct 1 14:46:32 CEST 2014


Thanks to user fishcakez_ on the #erlang irc channel, the bug is here:

  The tracer is getting a garbage message {'EXIT', Pid, done}. The bug
  is that the tracer process won't exit with its parent if there are
  trace messages ahead of it in its message queue.
  
  The tracer (see dbg:tracer_loop/2) tries to receive an exit signal
  message or a trace message; if it's a trace it reads its whole message
  queue (see dbg:recv_all_traces/4); if one of those messages is an
  'EXIT' message it's treated as "garbage" and not handled.

Leo




More information about the erlang-questions mailing list