Crashes with fprof

Manfred Widera <>
Fri Jul 23 10:42:06 CEST 2004


Hello,

When starting the tracing of the fprof module I always get a segmentation 
fault. I've tried the following minimal scenarios:

===========================================================
wbs2 Code/Test> erl
Erlang (BEAM) emulator version 5.3.6.3 [source] [hipe]

Eshell V5.3.6.3  (abort with ^G)
1> fprof:apply(loop1,l,[10]).
Speicherschutzverletzung
                        wbs2 Code/Test>
============================================================

("Speicherschutzverletzung" is the german term for a segmentation fault).

where loop1 is defined by 

-------------------------------------------------------------
-module(loop1).

-export([l/1]).

l(0) -> 0;
l(X) -> 1 + l(X - 1).
-------------------------------------------------------------

or
=============================================================
wbs2 Code/Test> erl
Erlang (BEAM) emulator version 5.3.6.3 [source] [hipe]

Eshell V5.3.6.3  (abort with ^G)
1> fprof_test:f().
Speicherschutzverletzung
                        wbs2 Code/Test>
=============================================================

with the following definition of fprof_test

-------------------------------------------------------------
-module(fprof_test).

-export([f/0]).

f() ->
    fprof:trace(start),
    io:put_chars("started"),
    io:nl(),
    fprof:trace(stop).
-------------------------------------------------------------

In both cases the system generates a file "fprof.trace" that remains 
empty.

I tried the OTP versions R9C-0 and R9C-2 under SuSE Linux 9.0 on several 
machines. The installation of Erlang showed no errors.

Did somebody encounter similar problems. Is there a workaround to get 
fprof going?

Thanks, 

Manfred



More information about the erlang-questions mailing list