From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18273 invoked by alias); 12 Sep 2014 12:14:44 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 18261 invoked by uid 89); 12 Sep 2014 12:14:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 12 Sep 2014 12:14:41 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s8CCEcQv030293 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 12 Sep 2014 08:14:38 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s8CCEabR004074; Fri, 12 Sep 2014 08:14:37 -0400 Message-ID: <5412E3AC.80203@redhat.com> Date: Fri, 12 Sep 2014 12:14:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: Jan Kratochvil CC: Doug Evans , "gdb-patches@sourceware.org" Subject: Re: time to workaround libc/13097 in fsf gdb? References: <5411CFAE.7040805@redhat.com> <20140912115452.GA5626@host2.jankratochvil.net> In-Reply-To: <20140912115452.GA5626@host2.jankratochvil.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2014-09/txt/msg00397.txt.bz2 On 09/12/2014 12:54 PM, Jan Kratochvil wrote: > On Thu, 11 Sep 2014 18:37:02 +0200, Pedro Alves wrote: >> Also, we know the address of the vDSO/gate (symfile-mem.c). Can't >> we use that to match instead of the name? > [...] >> ISTR having seen a patch that does that, but I can't seem to find it. > > Re: [patch+7.5.1] Work around PR libc/13097 "linux-vdso.so.1" #3 > https://sourceware.org/ml/gdb-patches/2012-11/msg00636.html > Message-ID: <20121125181505.GA26194@host2.jankratochvil.net> > > It is pending/unreviewed/unapproved. Ah, yeah, I think that was it. I was more inclined to leave the vdso in the shared library list though, like ldd does, than filtering it out. Like, similar to your gdbarch_solib_file_not_found_is_ok patch, but look at the addresses rather than filenames in the hook. I'm not sure whether that'd complicate things too much. > Also I am not sure it is really still an issue on latest upstream glibc, it is > not an issue on Fedora 21 x86_64 glibc with the reproducer from: > https://sourceware.org/bugzilla/show_bug.cgi?id=13097 > > (That is old Fedoras workarounded it in glibc, then some Fedoras exposed the > issue in GDB but now it is not visible - so either Fedoras workaround it again > or just upstream glibc switched/workarounds it also.) Thanks, Pedro Alves