<div dir="ltr">This seems to be a bug in fprof. There should be a clause handling the send_to_non_existing_process trace event. The same fault can be triggered with using this:<div><br></div><div><div>4>  fprof:trace([start, {file, "/tmp/ergw.trace"}, verbose, {procs,all}]).</div><div>ok</div><div>5> Pid = spawn(fun() -> ok end).                                          </div><div><0.69.0></div><div>6> Pid ! hej.</div><div>hej</div><div>7> fprof:trace([stop]).</div><div>ok</div><div>8> fprof:profile({file, "/tmp/ergw.trace"}).</div><div>Reading trace data...</div><div>..........</div><div>End of erroneous trace!</div><div>{error,</div><div>    {incorrect_trace_data,fprof,1714,</div><div>        [{trace_ts,<0.60.0>,send_to_non_existing_process,hej,</div><div>             <0.69.0>,</div><div>             {1476,338902,646909}}]}}</div></div><div><br></div><div>To fix it, this clause: <a href="https://github.com/erlang/otp/blob/maint/lib/tools/src/fprof.erl#L1700">https://github.com/erlang/otp/blob/maint/lib/tools/src/fprof.erl#L1700</a> should to be change to allow send_to_non_existing_process.</div><div><br></div><div>Feel free to sumbit a PR with the fix, if not I'll do a fix soon (tm).</div><div><br></div><div>Lukas</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 11, 2016 at 7:25 PM, Andreas Schultz <span dir="ltr"><<a href="mailto:aschultz@tpip.net" target="_blank">aschultz@tpip.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm not sure whether if it's my fault or if something wrong with fprof.<br>
<br>
Running a trace on rather busy system (trace file is 250MB), I get this error (full output):<br>
<br>
Erlang/OTP 19 [erts-8.1] [source] [64-bit] [async-threads:10] [kernel-poll:false]<br>
<br>
Eshell V8.1  (abort with ^G)<br>
(ergw-gtp-c-node@vlx162-tphh)<wbr>1> fprof:trace([start, {file, "/tmp/ergw.trace"}, verbose, {procs,all}]).<br>
ok<br>
(ergw-gtp-c-node@vlx162-tphh)<wbr>2> fprof:trace([stop]).<br>
ok<br>
(ergw-gtp-c-node@vlx162-tphh)<wbr>3> fprof:profile({file, "/tmp/ergw.trace"}).<br>
Reading trace data...<br>
..............................<wbr>....................<br>
..............................<wbr>...................,<br>
..............................<wbr>....................<br>
..............................<wbr>...................,<br>
..............................<wbr>....................<br>
..............................<wbr>...................,<br>
..............................<wbr>....................<br>
..............................<wbr>...................,<br>
..............................<wbr>....................<br>
..............................<wbr>........<br>
End of erroneous trace!<br>
{error,{incorrect_trace_data,<wbr>fprof,1714,<br>
                             [{trace_ts,#Port<0.692>,send_<wbr>to_non_existing_process,<br>
                                        {inet_reply,#Port<0.692>,ok},<br>
                                        [],<br>
                                        {1476,206371,694992}}]}}<br>
<br>
<br>
Any idea what's going on here?<br>
<br>
Regards<br>
Andreas<br>
______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
</blockquote></div><br></div>