[erlang-questions] possible fprof bug?

Raimo Niskanen raimo+erlang-questions@REDACTED
Mon Sep 15 14:30:08 CEST 2008


On Sun, Sep 14, 2008 at 10:34:31AM +0100, Joel Reymont wrote:
> End of erroneous trace!
> {error,
>      {incorrect_trace_data,fprof,1689,
>          [{trace_ts,<5963.5490.0>,send_to_non_existing_process,
>               {find_server,none},
>               <5963.4014.0>,
>               {1221,355910,508354}}]}}
> 
> fprof:profile/0 stops here. I would love it to continue.

It seems someone (at OTP) has added a trace message
to the 'send' trace flag, and not thought of fprof.

Try this diff (not even compiled...):
*** /clearcase/otp/erts/lib/tools/src/fprof.erl 2008-09-01 14:51:36.000000000 +0200
--- tmp/fprof.erl       2008-09-15 14:26:17.105958000 +0200
***************
*** 1671,1677 ****
      TS;
  %%
  %% send
! trace_handler({trace_ts, Pid, send, _OtherPid, _Msg, TS} = Trace,
              _Table, _, Dump) ->
      dump_stack(Dump, get(Pid), Trace),
      TS;
--- 1671,1682 ----
      TS;
  %%
  %% send
! trace_handler({trace_ts, Pid, send_to_non_existing_process,
!              _Msg, _OtherPid, TS} = Trace,
!             _Table, _, Dump) ->
!     dump_stack(Dump, get(Pid), Trace),
!     TS;
! trace_handler({trace_ts, Pid, send, _Msg, _OtherPid, TS} = Trace,
              _Table, _, Dump) ->
      dump_stack(Dump, get(Pid), Trace),
      TS;

> 
> --
> wagerlabs.com
> 
> 
> 
> 
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list