Description of problem: I am using hardened_malloc on Fedora 39. It works perfectly fine for everything apart Firefox. Firefox uses its own allocator "jemalloc" and somehow these interfere. I built firefox with this: ac_add_options --enable-optimize --disable-jemalloc --enable-project=browser the result works perfectly fine, I verified it uses hardened_malloc and ran the Web Basemark with it, without a single issue. Now it should also be possible to still use the regular build, and still use hardened_malloc if the OS preloads it. ac_add_options --enable-optimize --enable-replace-malloc --enable-project=browser this way a LD_PRELOAD=/usr/lib64/libhardened_malloc.so firefox will use it instead. In the current situation it does not launch and I get memory issues. Version-Release number of selected component (if applicable): latest F39 How reproducible: always when LD_PRELOAD ing hardened_malloc. I use the Secureblue kinoite-laptop-userns-hardened image. Steps to Reproduce: 1. use secureblue or manually apply these changes to use hardened_malloc 2. run firefox in a terminal 3. now compile it yourself with that argument and run it again Actual results: Firefox does not work when using hardened_malloc, because it doesnt seem to be built with allowing to replace the malloc Expected results: If the OS does LD_PRELOAD then Firefox should also use that. The easiest solution would be to apply this build argument.
Added to 122.0-4.
FEDORA-2024-7af93e63f3 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-7af93e63f3
FEDORA-2024-7af93e63f3 has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report.
Cool, thank you!
*** Bug 2262277 has been marked as a duplicate of this bug. ***