ptrace PEEKTEXT IO error?!

David Lecomber david@allinea.com
Wed Oct 5 19:50:00 GMT 2005


> > 
> > 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.  

There are some mmap commands in the strace output -- they seem to be in
the wrong range to be causing the trouble (I've attached an strace log
of the binary, those mmap commands might make sense to someone..) - FYI,
the memory address it can't read is  0x401e18 (4202008), which is right
in the middle of my ordinary code..



Cheers
David

-- 
David Lecomber 
CTO Allinea Software
Tel: +44 1926 623231
Fax: +44 1926 623232
-------------- next part --------------
A non-text attachment was scrubbed...
Name: infi.log
Type: text/x-log
Size: 21999 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb/attachments/20051005/372b97f1/attachment.bin>


More information about the Gdb mailing list