From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5233 invoked by alias); 29 Jan 2010 17:53:29 -0000 Received: (qmail 5221 invoked by uid 22791); 29 Jan 2010 17:53:29 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 29 Jan 2010 17:53:24 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0THpbSq012143 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 29 Jan 2010 12:51:37 -0500 Received: from host0.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0THpYKu015100 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 29 Jan 2010 12:51:37 -0500 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.3/8.14.3) with ESMTP id o0THpYrs022395; Fri, 29 Jan 2010 18:51:34 +0100 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.3/8.14.3/Submit) id o0THpXwJ022392; Fri, 29 Jan 2010 18:51:33 +0100 Date: Fri, 29 Jan 2010 17:53:00 -0000 From: Jan Kratochvil To: Joel Brobecker Cc: gdb-patches@sourceware.org Subject: Re: [RFC/ia64] memory error when reading wrong core file Message-ID: <20100129175133.GA21670@host0.dyn.jankratochvil.net> References: <20100129160222.GL26811@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100129160222.GL26811@adacore.com> User-Agent: Mutt/1.5.20 (2009-08-17) 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: 2010-01/txt/msg00649.txt.bz2 Hi Joel, On Fri, 29 Jan 2010 17:02:22 +0100, Joel Brobecker wrote: > Contrast this with what we get today, on ia64-linux: > > (gdb) core core > warning: core file may not match specified executable file. > [New Thread 5437] > Cannot access memory at address 0x1000000000009 > > The change of behavior is related to a patch that changed the way > the solib base address gets computed (that was for PIE, patch 12/15 > I believe). Prior to that patch, the computed base address was zero. before verifying your patch I would like to check if the PIE change should not be rather somehow fixed. Unfortunately I am unable to reproduce the problem on ia64 (RHEL-5.4) GDB HEAD (ea72145d5db8c66253c9b21b785a5311f69ae99e). GNU gdb (GDB) 7.0.50.20100129-cvs This GDB was configured as "ia64-unknown-linux-gnu". Reading symbols from /root/.../pause...done. [New Thread 30776] warning: Can't read pathname for load map: Input/output error. Reading symbols from /lib/libc.so.6.1...(no debugging symbols found)...done. Loaded symbols for /lib/libc.so.6.1 Reading symbols from /lib/ld-linux-ia64.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/ld-linux-ia64.so.2 Core was generated by `./pause'. Program terminated with signal 11, Segmentation fault. #0 0xa000000000010620 in __kernel_syscall_via_break () (gdb) Could you please provide some binary/core file as reproducers? Thanks, Jan