Crash during malloc(), with profiling enabled

Martin Ivanov martin.ivanov at
Thu May 8 08:19:59 PDT 2014


I have been experimenting recently with jemalloc heap profiling, as way to
debug memory leaks, but unfortunately it crashes quite frequently.
CPU architecture is PPC , below is a typical backtraces I get - looks like
the stack is corrupted.

Program terminated with signal 11, Segmentation fault.

#0  0x0ffaab14 in je_prof_backtrace (bt=dwarf2_read_address: Corrupted
DWARF expression.
) at prof.c:398
#3  0x0ff7691c in je_choose_arena (arena=<value optimized out>)
    at src/jemalloc/internal/jemalloc_internal.h:711
#4  je_tcache_get (create=<value optimized out>) at
#5  je_arena_malloc (try_tcache=<value optimized out>, zero=<value
optimized out>, size=<value optimized out>,
    arena=<value optimized out>) at src/jemalloc/internal/arena.h:956
#6  je_imalloct (arena=<value optimized out>, try_tcache=<value optimized
out>, size=<value optimized out>)
    at src/jemalloc/internal/jemalloc_internal.h:771
#7  imallocx (arena=<value optimized out>, try_tcache=<value optimized
out>, zero=<value optimized out>,
    alignment=<value optimized out>, usize=<value optimized out>) at
#8  imallocx_prof_sample (usize=dwarf2_read_address: Corrupted DWARF
) at jemalloc.c:1436

Can anyone tell if this is a known problem and if can be overcome ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the jemalloc-discuss mailing list