From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 677 invoked by alias); 5 Oct 2005 18:40:54 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 669 invoked by uid 22791); 5 Oct 2005 18:40:53 -0000 Received: from webmail.streamline-computing.com (HELO webmail.streamline-computing.com) (82.133.39.164) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 05 Oct 2005 18:40:53 +0000 Received: from [82.133.39.162] (helo=delmo.priv.wark.uk.streamline-computing.com) by webmail.streamline-computing.com with esmtpa (Exim 4.52) id 1ENE71-0004BI-II; Wed, 05 Oct 2005 19:35:31 +0100 Subject: Re: ptrace PEEKTEXT IO error?! From: David Lecomber To: Daniel Jacobowitz Cc: gdb In-Reply-To: <1128536411.21837.123.camel@delmo.priv.wark.uk.streamline-computing.com> References: <1128531841.21837.96.camel@delmo.priv.wark.uk.streamline-computing.com> <20051005171106.GA7835@nevyn.them.org> <1128536411.21837.123.camel@delmo.priv.wark.uk.streamline-computing.com> Content-Type: text/plain Date: Wed, 05 Oct 2005 18:40:00 -0000 Message-Id: <1128537294.27899.0.camel@delmo.priv.wark.uk.streamline-computing.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2005-10/txt/msg00013.txt.bz2 On Wed, 2005-10-05 at 19:20 +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. Is there > something that the user code (one of the libraries called by my > program) could do to prevent access to memory by a ptracing program? > and I should have asked.. or is it only possible for the kernel, or a kernel module to do that? Cheers David -- David Lecomber, CTO, Allinea Software tel: +44 1926 623231 fax: +44 1926 623232