segmentation fault in tree_delete at beam/erl_bestfit_alloc.c:431

Igor Goryachev igor@REDACTED
Mon Mar 14 21:41:41 CET 2011


Hello.

We are suffering of quite frequent segmentation faults on our erlangish
environment. We run r14b01 node with a very small load on linux 2.6.32
(Debian GNU/Linux Squeeze 6.0), which is virtual machine hosted under
OpenVZ hypervisor (16 cores, Xeon 2.40GHz).

I've tried to rebuild erlang with and without smp and threads, but in any
case I'm getting the same behaviour.

What additional helpful information should I provide?


Core was generated by `/usr/lib/erlang/erts-5.8.2/bin/beam -K true -- -root /usr/lib/erlang -progname'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000000000437e83 in tree_delete (allctr=0x7cbf20, del=0x7f93a8267460) at beam/erl_bestfit_alloc.c:431
431     beam/erl_bestfit_alloc.c: No such file or directory.
        in beam/erl_bestfit_alloc.c
(gdb) where
#0  0x0000000000437e83 in tree_delete (allctr=0x7cbf20, del=0x7f93a8267460) at beam/erl_bestfit_alloc.c:431
#1  0x0000000000438bb2 in bf_unlink_free_block (allctr=0x7cbf20, size=<value optimized out>, cand_blk=<value optimized out>, 
    cand_size=0) at beam/erl_bestfit_alloc.c:791
#2  bf_get_free_block (allctr=0x7cbf20, size=<value optimized out>, cand_blk=<value optimized out>, cand_size=0)
    at beam/erl_bestfit_alloc.c:842
#3  0x0000000000433506 in mbc_alloc_block (allctr=0x7cbf20, size=287) at beam/erl_alloc_util.c:631
#4  mbc_alloc (allctr=0x7cbf20, size=287) at beam/erl_alloc_util.c:764
#5  0x00000000004b8118 in erts_alloc (c_p=0x7f93a70a90e0, reg=<value optimized out>, live=<value optimized out>, 
    build_size_term=<value optimized out>, extra_words=140272158101112, unit=8) at beam/erl_alloc.h:184
#6  erts_bin_nrml_alloc (c_p=0x7f93a70a90e0, reg=<value optimized out>, live=<value optimized out>, 
    build_size_term=<value optimized out>, extra_words=140272158101112, unit=8) at beam/erl_binary.h:253
#7  erts_bs_append (c_p=0x7f93a70a90e0, reg=<value optimized out>, live=<value optimized out>, build_size_term=<value optimized out>, 
    extra_words=140272158101112, unit=8) at beam/erl_bits.c:1325
#8  0x00000000004e0a02 in process_main () at beam/beam_emu.c:3624
#9  0x000000000043c5eb in erl_start (argc=33, argv=<value optimized out>) at beam/erl_init.c:1443
#10 0x0000000000427ac9 in main (argc=8175392, argv=0x7f93a8267460) at sys/unix/erl_main.c:29


-- 
Igor Goryachev


More information about the erlang-bugs mailing list