From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1816 invoked by alias); 7 Aug 2009 22:29:15 -0000 Received: (qmail 1807 invoked by uid 22791); 7 Aug 2009 22:29:14 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_33,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 07 Aug 2009 22:29:07 +0000 Received: from spaceape14.eur.corp.google.com (spaceape14.eur.corp.google.com [172.28.16.148]) by smtp-out.google.com with ESMTP id n77MT3EX016132 for ; Fri, 7 Aug 2009 23:29:03 +0100 Received: from qw-out-2122.google.com (qwe3.prod.google.com [10.241.194.3]) by spaceape14.eur.corp.google.com with ESMTP id n77MT0x3022715 for ; Fri, 7 Aug 2009 15:29:01 -0700 Received: by qw-out-2122.google.com with SMTP id 3so752776qwe.9 for ; Fri, 07 Aug 2009 15:29:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.20.19 with SMTP id d19mr1557716qab.267.1249684140682; Fri, 07 Aug 2009 15:29:00 -0700 (PDT) In-Reply-To: <8ac60eac0908070030g7500a5ack3fcc81862e2a5b0a@mail.gmail.com> References: <8ac60eac0907161724v40e5bd8bg7877d8901b8d7b6e@mail.gmail.com> <8ac60eac0908040806g4f0495f6gc24ae4d6e440e7e6@mail.gmail.com> <8ac60eac0908042358q4d2061d2md3c49cf4aab26398@mail.gmail.com> <8ac60eac0908050940we3dc478rd182f4367a650f1b@mail.gmail.com> <8ac60eac0908052259l7b1c21d1t212991886a5f8b18@mail.gmail.com> <8ac60eac0908070030g7500a5ack3fcc81862e2a5b0a@mail.gmail.com> Date: Fri, 07 Aug 2009 23:30:00 -0000 Message-ID: <8ac60eac0908071529j5be2241bjf7fac5cbf55168a9@mail.gmail.com> Subject: Re: [patch] Speed up find_pc_section From: Paul Pluzhnikov To: Tom Tromey Cc: gdb-patches ml Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-System-Of-Record: true X-IsSubscribed: yes 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 X-SW-Source: 2009-08/txt/msg00121.txt.bz2 For those following the issue on the list ... I was able to reproduce the failed assert on F11/i586, but only after the system ran for a while. On Fri, Aug 7, 2009 at 12:30 AM, Paul Pluzhnikov wrote: > It looks like lack of prelink (freshly-installed system) is what > prevented me from observing the crash: > > $ readelf -S /usr/lib/debug/usr/lib/libgcj.so.10.0.0.debug | grep .rel.dyn > [ 7] .rel.dyn NOBITS 005e1c84 000138 4ee290 08 A 3 0 4 > > $ readelf -S /usr/lib/libgcj.so.10.0.0 | grep rel.dyn > [ 7] .rel.dyn RELA 415e1c84 5e1c84 7653d8 0c A 3 0 4 > > My libgcj has been prelinked, and I now see the crash. > > Prelink changes .rel.dyn from REL to RELA, and that changes the section size! > > Running 'prelink -u /usr/lib/libgcj.so.10.0.0' makes the crash > disappear, and re-prelinking makes it appear again. > Here is what non-prelinked /usr/lib/libgcj.so.10.0.0 looks like: > [ 7] .rel.dyn REL 005e1c84 5e1c84 4ee290 08 A 3 0 4 > > I'll send a patch to fix this soon. -- Paul Pluzhnikov