A constant source of pain for embedders is trying to do the seemingly reasonable task of using the mozjs shared library in a project. They often leads to cryptic link and runtime errors when memory is allocated on jemalloc and freed on system allocator (or vice-versa).
The simplest workaround for many is to --disable-jemalloc. This probably space should be better documented and maybe there are things that can be fixed upstream.
A constant source of pain for embedders is trying to do the seemingly reasonable task of using the mozjs shared library in a project. They often leads to cryptic link and runtime errors when memory is allocated on jemalloc and freed on system allocator (or vice-versa).
The simplest workaround for many is to --disable-jemalloc. This probably space should be better documented and maybe there are things that can be fixed upstream.