Crashes with fprof
Matthias Lang
matthias@REDACTED
Fri Jul 23 13:56:45 CEST 2004
Manfred Widera writes:
> ===========================================================
> 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).
> -------------------------------------------------------------
I tried this on locally compiled R9C-1 and R9C-2 running on Debian
unstable. No problem in either case:
| Erlang (BEAM) emulator version 5.3.6.3 [source] [hipe]
|
| Eshell V5.3.6.3 (abort with ^G)
| 1> c(loop1).
| {ok,loop1}
| 2> fprof:apply(loop1, l, [10]).
| 10
Maybe it's some random memory trashing, maybe it's a toolchain
problem. I don't have any SuSE machines, but someone else on the list
is bound to.
Matthias
More information about the erlang-questions
mailing list