Semi-dual use of dynamic and static jemalloc

Florian Weimer fw at
Mon Aug 24 12:13:25 PDT 2015

* Roel Van de Paar:

> What happens if jemalloc is LD_PRELOAD'ed for an executable where such
> executable uses a .so library, which in turn is statically linked with
> jemalloc?

That depends on what kind of symbols the libary exports.  What does
“eu-readelf -s” or “readelf -W -s” show?  If jemalloc symbols are
listed there, quite bad things can happen.

More information about the jemalloc-discuss mailing list