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