[patch] Fix vDSO l_name for GDB's: Can't read pathname for load map: Input/output error.

Daniel Jacobowitz drow@false.org
Thu Oct 8 13:12:00 GMT 2009


On Tue, Oct 06, 2009 at 10:55:36AM +0200, Jan Kratochvil wrote:
> The GDB-only solution would/will be to ignore any unreadable strings and after
> mapping in the DSOs with readable names to do a second r_map scanning pass.
> 
> This time ld-linux.so's readonly segments will be mapped in and the vDSO's
> name (const char *) "" will be readable.

FYI, I recently encountered a core file (from Solaris 10) where the
name of ld.so was a pointer into ld.so's text segment... so this isn't
always enough, but I think the best we can do there is warn.  I never
did figure out how that situation came to pass.

(This only happens with GDB's generate-core-file as Solaris dumps
read-only text into core files normally.)

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Libc-alpha mailing list