mimalloc: Crash on Firefox start with mimalloc being ld.so.preload'ed
firefox[7891]: segfault at 28 ip 00007f40c0d8bfa0 sp 00007ffed98afff8 error 4 in libpthread-2.27.so[7f40c0d82000+1a000]
version: 06f8da4218a6e86f0418e249a99faa9957c2ec5f
Description: Ubuntu 18.04.2 LTS GNU C Library (Ubuntu GLIBC 2.27-3ubuntu1) stable release version 2.27.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 21
Ummm… not an “engineer’s way of thinking” huh …
Look, Firefox may use internal jemalloc calls, like
xallocxand that will not mix well with a dynamically patchedfreethat uses the mimalloc free. To test properly, we need a build that is not linked statically with jemalloc.If you have other programs that leak memory I am very interested to get some way to reproduce this locally so I can fix mimalloc.
Best, Daan
Hey, hate to necro-bump, but I recently noticed that Firefox fails catastrophically on startup when using mimalloc; which on my distro, is compiled with jemalloc as an allocator by default. Is there a reason mimalloc interferes with a statically-linked jemalloc at all? I would assume jemalloc would take priority in that case, considering incompatible glibc functions would be used instead (or not?).
Also, perhaps slightly off-topic, but why would mimalloc be incompatible with any given software if it replaces glibc’s implementation dynamically?