From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2970 invoked by alias); 5 Aug 2006 12:40:41 -0000 Received: (qmail 2957 invoked by uid 22791); 5 Aug 2006 12:40:41 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 05 Aug 2006 12:40:39 +0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.4/8.13.4) with ESMTP id k75CdxjL003655; Sat, 5 Aug 2006 14:39:59 +0200 (CEST) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.6/8.13.6) with ESMTP id k75CdxsM010394; Sat, 5 Aug 2006 14:39:59 +0200 (CEST) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.6/8.13.6/Submit) id k75CdwTH005284; Sat, 5 Aug 2006 14:39:58 +0200 (CEST) Date: Sat, 05 Aug 2006 12:40:00 -0000 Message-Id: <200608051239.k75CdwTH005284@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: nickrob@snap.net.nz CC: drow@false.org, gdb@sources.redhat.com In-reply-to: <17619.64925.33169.651834@kahikatea.snap.net.nz> (message from Nick Roberts on Sat, 5 Aug 2006 14:08:29 +1200) Subject: Re: stepping over longjmp References: <17619.308.218261.761948@kahikatea.snap.net.nz> <20060804131913.GB26799@nevyn.them.org> <17619.51169.377583.613674@kahikatea.snap.net.nz> <20060804234544.GA13412@nevyn.them.org> <17619.64925.33169.651834@kahikatea.snap.net.nz> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00035.txt.bz2 > From: Nick Roberts > Date: Sat, 5 Aug 2006 14:08:29 +1200 > > > > > Does export LD_POINTER_GUARD=0 make a difference? > > > > > > No. > > > > Hmm, then it must be something else. > > Actually, it does work if it's set for both compilation and execution. I also > updated to 2.4-8 (from 2.4-4). I don't know if that was necessary but on the > Internet I saw: > > > You can disable the encryption using the LD_POINTER_GUARD environment > > variable. Unfortunately the glibc version so far in FC5 has a little > > bug. The next update will allow you to specify LD_POINTER_GUARD=0. > > > > But this is really the wrong solution. The program should be > > rewritten > > to use __builtin_frame_address (see the gcc manual). > > > > -- Ulrich Drepper Unfortunately Ulrich's argument doesn't hold for GDB. But if we can get at the "cookie" that's used to encrypt the addess, it should be possible to undo the encryption. Lookes like the cookie is somewhere in thread local storage. I'll see if I can come up with a way to access it. Mark