I get the following error when I try to run a script I have only execution access for:
uname: symbol lookup error: /home/dumindara/random/sotest/a.out: undefined symbol: dlsym
This is after I have set LD_PRELOAD
environment variable to /home/dumindara/random/sotest/a.out
.
a.out
has a test malloc
function, and calls dlsym
internally.
I don't get this problem when running ls
. Most processes do give this error. Why does this happen and what can I do to make it work?
LD_PRELOAD=xyz ./a.out
. Otherwise, try( LD_PRELOAD=xyz; ./a.out )
. – Mellenmalloc()
with their own version and then pass-through to the real malloc. – LacklusterLD_PRELOAD=`pwd`/a.out program_to_test
then.... – Mellen