[PATCH] Call malloc_tsd_boot0 from malloc_init_hard_recursible

Cosmin Paraschiv cparaschiv at ixiacom.com
Wed Dec 23 10:13:59 PST 2015


On 12/23/2015 06:56 PM, Jason Evans wrote:
> This patch causes a test failure (on a Ubuntu 15.04 machine):
>
> ---
> ./autogen.sh --enable-prof --enable-debug && make check
> [...]
> MALLOC_CONF="prof:true" /bin/sh test/test.sh test/integration/aligned_alloc test/integration/allocated test/integration/sdallocx test/integration/mallocx test/integration/MALLOCX_ARENA test/integration/overflow test/integration/posix_memalign test/integration/rallocx test/integration/thread_arena test/integration/thread_tcache_enabled test/integration/xallocx test/integration/chunk
> === test/integration/aligned_alloc ===
> <jemalloc>: include/jemalloc/internal/tsd.h:609: Failed assertion: "tsd_booted"
> Aborted (core dumped)
> ---

I ran autogen.sh without '--enable-prof', so I missed the failure. It 
seems that prof_boot2 calls tsd_fetch, so we must call malloc_tsd_boot0 
beforehand. I'll send an updated version of the patch.

Thanks,
Cosmin


More information about the jemalloc-discuss mailing list