libfaketime icon indicating copy to clipboard operation
libfaketime copied to clipboard

faketime conflicts when used with libjemalloc

Open Martin-qa123 opened this issue 1 year ago • 2 comments

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.

Martin-qa123 avatar Oct 11 '24 11:10 Martin-qa123

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.

wolfcw avatar May 24 '25 08:05 wolfcw

Unfortunately, jemalloc is basically dead now: https://jasone.github.io/2025/06/12/jemalloc-postmortem/

phongn avatar Jul 31 '25 18:07 phongn