Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when compiling palemoon under musl with jemalloc memory allocator #1238

Sharrisii opened this Issue Jun 3, 2018 · 1 comment


None yet
2 participants
Copy link

Sharrisii commented Jun 3, 2018

When building palemoon with jemmaloc (using musl), it crashes. Output:

(gdb) info stack
#0 0x08086f85 in je_arena_bitselm_get (pageind=167, chunk=0x8000000)
at /var/tmp/portage/www-client/palemoon-27.9.2/work/palemoon-27.9.2/memory/jemalloc/src/include/jemalloc/internal/arena.h:467
#1 je_arena_mapbitsp_get (pageind=167, chunk=0x8000000)
at /var/tmp/portage/www-client/palemoon-27.9.2/work/palemoon-27.9.2/memory/jemalloc/src/include/jemalloc/internal/arena.h:519
#2 je_arena_mapbits_get (pageind=167, chunk=0x8000000)
at /var/tmp/portage/www-client/palemoon-27.9.2/work/palemoon-27.9.2/memory/jemalloc/src/include/jemalloc/internal/arena.h:533
#3 je_arena_mapbits_binind_get (pageind=167, chunk=0x8000000)
at /var/tmp/portage/www-client/palemoon-27.9.2/work/palemoon-27.9.2/memory/jemalloc/src/include/jemalloc/internal/arena.h:574
#4 je_arena_salloc (demote=false, ptr=0x80a7e30)
at /var/tmp/portage/www-client/palemoon-27.9.2/work/palemoon-27.9.2/memory/jemalloc/src/include/jemalloc/internal/arena.h:970
#5 je_isalloc (demote=false, ptr=0x80a7e30)
at src/include/jemalloc/internal/jemalloc_internal.h:898
#6 ifree (tsd=, try_tcache=true, ptr=0x80a7e30)
at /var/tmp/portage/www-client/palemoon-27.9.2/work/palemoon-27.9.2/memory/jemalloc/src/src/jemalloc.c:1643
#7 free (ptr=0x80a7e30)
at /var/tmp/portage/www-client/palemoon-27.9.2/work/palemoon-27.9.2/memory/jemalloc/src/src/jemalloc.c:1738
#8 0xf1e52380 in g_free () from /usr/lib/
#9 0xffffb804 in ?? ()

@Sharrisii Sharrisii changed the title Crash when compiling palemoon with jemalloc memory allocator Crash when compiling palemoon under musl with jemalloc memory allocator Jun 3, 2018


This comment has been minimized.

Copy link

interwq commented Jun 4, 2018

This stack trace mostly likely points to heap corruption by application. Consider using sanitizer like ASAN, or building jemalloc with --enable-debug to help further investigation.

@interwq interwq closed this Jun 4, 2018

@interwq interwq added the question label Jun 4, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.