This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: How to run gdb with LD_PRELOAD?
- From: ééä <chenwj at iis dot sinica dot edu dot tw>
- To: gdb at sourceware dot org
- Date: Sun, 16 Jan 2011 16:00:56 +0800
- Subject: Re: How to run gdb with LD_PRELOAD?
- References: <20110115144525.GD44658@cs.nctu.edu.tw>
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