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

Björn-Egil Dahlberg <>
Fri Oct 18 15:17:07 CEST 2013


Yes, it segfaults when writing the crashdump (a pointer to unhappy 
memory when iterating links for printouts).

We are looking into it.

// Björn-Egil

On 2013-10-18 14:21, Richard Carlsson wrote:
> 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
> _______________________________________________
> erlang-bugs mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-bugs
>
>



More information about the erlang-bugs mailing list