-
Notifications
You must be signed in to change notification settings - Fork 92
Description
In jruby/jruby#6202 we learned that the jnr-posix bootstrapping does not honor preloaded libraries as from LD_PRELOAD on Linux and DYLD_INSERT_LIBRARIES on MacOS. This prevents patch libraries like libfaketime, which hooks the standard POSIX time functions to alter their output.
A discussion of the issue is provided in wolfcw/libfaketime#255. There is no bug in libfaketime, and the current functionality of jnr-posix is not really incorrect, but it provides no way to "soften" the symbol search to try simply loading the symbol from the current process as if using RTLD_DEFAULT.
The functionality to search the default image will be provided when fixing jnr/jnr-ffi#203.
The additional work required here is to add a way to acquire a native POSIX with or without the default image being included in the symbol search.