[patch+7.5.1] Work around PR libc/13097 "linux-vdso.so.1" #3

Pedro Alves palves@redhat.com
Fri Nov 23 12:03:00 GMT 2012


On 11/22/2012 08:17 PM, Jan Kratochvil wrote:
> Hi,
> 
> this is an updated version of
> 	[RFC] Work around PR libc/13097 "linux-vdso.so.1" #2
> 	http://sourceware.org/ml/gdb-patches/2011-08/msg00331.html
> according to the Tom's comment
> 	http://sourceware.org/bugzilla/show_bug.cgi?id=14466#c3
> 
> I remembered it when Joel plans 7.5.1 release, the patch is safe enough and it
> is a FAQ at least on IRC.
> 
> Fedora does not have this issue with its Fedora glibc but I have it
> reproducible with FSF glibc build:
> 	./gdb -ex r --args $HOME/glibc-root/lib/ld-linux-x86-64.so.2 --library-path $HOME/glibc-root/lib /bin/true 
> 	Starting program: /home/.../glibc-root/lib/ld-linux-x86-64.so.2 --library-path /home/.../glibc-root/lib /bin/true
> 	warning: Could not load shared library symbols for linux-vdso.so.1.
> 	Do you need "set solib-search-path" or "set sysroot"?
> 	[Inferior 1 (process 31807) exited normally]
> 
> So there is no testcase as I do not know a real OS where it fails (it probably
> fails on Ubuntu AFAIK).
> 
> No regressions on {x86_64,x86_64-m32,i686}-fedora18-linux-gnu.
> 
> 

Won't real file based DSOs in the loader list _always_ be full paths,
never relative paths?  I'd think we could always ignore DSOs whose
path doesn't start with '/', everywhere.

-- 
Pedro Alves



More information about the Gdb-patches mailing list