This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]