How to run gdb with LD_PRELOAD?
陳韋任
chenwj@iis.sinica.edu.tw
Sun Jan 16 08:01:00 GMT 2011
Hi, all
A little update to my question.
Here are what I do while running gdb.
---------------------------------------------------------------------------
(gdb) set environment LD_PRELOAD=/nfs_home/chenwj/tools/lib/libdbo.so
(gdb) file /nfs_home/chenwj/tools/bin/qemu-i386
(gdb) run -U LD_PRELOAD bzip2_base.i386-m32-gcc44-annotated input.source 1
---------------------------------------------------------------------------
And error below.
---------------------------------------------------------------------------
Starting program: /nfs_home/chenwj/tools/bin/qemu-i386 -U LD_PRELOAD bzip2_base.i386-m32-gcc44-annotated input.source 1
bash: open "/bin/bash" failed: Permission denied
During startup program exited with code 66.
---------------------------------------------------------------------------
If I LD_PRELOAD other .so, everything is fine. My guess is there is
something in libdbo.so cause the "Permission denied".
Any suggestion appreciated.
Regards,
chenwj
--
Wei-Ren Chen (陳韋任)
Parallel Processing Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
More information about the Gdb
mailing list