<div dir="ltr"><div>Can anyone tell me if this is a bug? If not how do I get around it in simple way?<br><br></div>Robert<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 27 May 2014 17:45, Robert Virding <span dir="ltr"><<a href="mailto:rvirding@gmail.com" target="_blank">rvirding@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>We have discovered strange behaviour when tracing message sends. We turn on tracing message send for a process. In R16 and 17 it seems like there is no trace message when sending to a registered process name, while sending to a pid generates a trace message as it should. In R15 however you get a trace message both sending to a registered name and hen sending to a pid. Is this a bug or is it a new undocumented feature?<br>
<br></div>As an example I include simple program in which worker sends a message to a registered server and the server replies by sending the worker pid. Here are outputs when running in 17:<br><br>Erlang/OTP 17 [erts-6.0] [source-07b8f44] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]<br>
<br>Eshell V6.0 (abort with ^G)<br>1> c(trace_procs).<br>{ok,trace_procs}<br>2> trace_procs:start().<br>trace_procs 7 Server: '<0.39.0>' <br>trace_procs 10 Worker: '<0.40.0>' <br>trace_procs 34 Message: '{trace,<0.39.0>,send,answer,<0.40.0>}' <br>
trace_procs 34 Message: '{trace,<0.39.0>,send,answer,<0.40.0>}' <br>trace_procs 34 Message: '{trace,<0.39.0>,send,answer,<0.40.0>}' <br>trace_procs 34 Message: '{trace,<0.39.0>,send,answer,<0.40.0>}' <br>
trace_procs 34 Message: '{trace,<0.39.0>,send,answer,<0.40.0>}' <br><br></div>and in R15:<br><br>Erlang R15B03 (erts-5.9.3.1) [source] [64-bit] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:false]<br>
<br>Eshell V5.9.3.1 (abort with ^G)<br>1> c(trace_procs).<br>{ok,trace_procs}<br>2> trace_procs:start().<br>trace_procs 7 Server: '<0.38.0>' <br>trace_procs 10 Worker: '<0.39.0>' <br>trace_procs 34 Message: '{trace,<0.39.0>,send,{request,<0.39.0>},server}' <br>
trace_procs 34 Message: '{trace,<0.38.0>,send,answer,<0.39.0>}' <br>trace_procs 34 Message: '{trace,<0.39.0>,send,{request,<0.39.0>},server}' <br>trace_procs 34 Message: '{trace,<0.38.0>,send,answer,<0.39.0>}' <br>
trace_procs 34 Message: '{trace,<0.39.0>,send,{request,<0.39.0>},server}' <br>trace_procs 34 Message: '{trace,<0.38.0>,send,answer,<0.39.0>}' <br>trace_procs 34 Message: '{trace,<0.39.0>,send,{request,<0.39.0>},server}' <br>
<br></div><div>What gives?<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>Robert<br><br></div></font></span></div>
</blockquote></div><br></div>