faketime conflicts when used with libjemalloc
LD_PRELOAD=/opt/container/lib/libjemalloc.so:/usr/lib64/faketime/libfaketime.so.1 FAKETIME="-15d" date libfaketime: Unexpected recursive calls to clock_gettime() without proper initialization. Trying alternative. libfaketime: Cannot recover from unexpected recursive calls to clock_gettime(). libfaketime: Please check whether any other libraries are in use that clash with libfaketime. libfaketime: Returning -1 on clock_gettime() to break recursion now... if that does not work, please check other libraries' error handling.
jemalloc compatibility is a long-standing problem (see various issues here) and despite several attempts there currently is nothing more we can do on libfaketime's end until some minor changes are made to jemalloc as well, sorry.
Unfortunately, jemalloc is basically dead now: https://jasone.github.io/2025/06/12/jemalloc-postmortem/