[erlang-bugs] segfault instead of "cannot allocate"

Richard Carlsson carlsson.richard@REDACTED
Fri Oct 18 14:21:48 CEST 2013


We just found some weird behaviour (R16B02, 64-bit Linux, Intel i7, 8GB).

----------
Erlang R16B02 Klarna-g20d4ce8 (erts-5.10.3) [source-20d4ce8] [64-bit] 
[smp:6:6] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V5.10.3  (abort with ^G)
1> erlang:spawn_opt(fun () -> ok end, [{min_heap_size, 10000000000}]).

Crash dump was written to: /tmp/erl_crash_dump.richardc
eheap_alloc: Cannot allocate 87331780056 bytes of memory (of type "heap").
Aborted (core dumped)
----------

but

----------
Erlang R16B02 Klarna-g20d4ce8 (erts-5.10.3) [source-20d4ce8] [64-bit] 
[smp:6:6] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V5.10.3  (abort with ^G)
1> erlang:spawn_opt(fun () -> ok end, [{min_heap_size, 1000000000}]).
<0.35.0>
2> erlang:spawn_opt(fun () -> ok end, [{min_heap_size, 1000000000}]).
<0.37.0>
3> erlang:spawn_opt(fun () -> ok end, [{min_heap_size, 1000000000}]).
<0.39.0>
4> erlang:spawn_opt(fun () -> ok end, [{min_heap_size, 1000000000}]).
<0.41.0>
5> erlang:spawn_opt(fun () -> ok end, [{min_heap_size, 10000000000}]).
Segmentation fault (core dumped)
-----------

    /Richard



More information about the erlang-bugs mailing list