RED HAT
DIIDevHeads IoT Integration Server
•Created by Marvee Amasi on 7/23/2024 in #middleware-and-os
LD_PRELOAD Not Working with Custom getpid Function
Hi! @Marvee Amasi One common issue with
LD_PRELOAD
is that the shared library must be compiled with position-independent code (PIC
). Make sure you compiled getpid.so
with the -fPIC flag
. Also, check that getpid.so
is in the current directory when you run the LD_PRELOAD
command. Try running ldd
getpid.so
to check if there are any missing dependencies.5 replies