This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: ptrace PEEKTEXT IO error?!
On Wed, 2005-10-05 at 15:54 -0400, Daniel Jacobowitz wrote:
> On Wed, Oct 05, 2005 at 09:06:20PM +0100, David Lecomber wrote:
> >
> > > >
> > > > It seems ok at reading memory from addresses on the heap and stack --
> > > > but it barfs at reading memory from the text segment. [snip]
> >
> > > No, this is most likely a kernel bug. This is mapped code, right, not
> > > some mmaped device file (which is not generally accessible by ptrace)?
> >
> > The code I'm trying to read is an ordinary subroutine in an ordinary C
> > file. The program does call a library handling infiniband network
> > cards, and there are loads of kernel modules on this machine looking
> > after that.
>
> The infiniband code does all sorts of funky things to VM. It's
> extremely likely that this is repsonsible.
Great, I bet this bug'll cheer them up! Thanks for the info, I'll chase
their mailing list now.
Cheers
David