From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25146 invoked by alias); 14 Jan 2004 14:48:49 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 25137 invoked from network); 14 Jan 2004 14:48:48 -0000 Received: from unknown (HELO localhost.redhat.com) (216.129.200.20) by sources.redhat.com with SMTP; 14 Jan 2004 14:48:48 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 81A892B8F; Wed, 14 Jan 2004 09:48:47 -0500 (EST) Message-ID: <400556CF.4050201@redhat.com> Date: Wed, 14 Jan 2004 14:48:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 MIME-Version: 1.0 To: Michael Elizabeth Chastain Cc: gdb-patches@sources.redhat.com Subject: Re: [patch/rfc/testsuite] Test GDB on not-so-little core files References: <20040114031127.5AA524B104@berman.michael-chastain.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-01/txt/msg00367.txt.bz2 > First something trivial: > > likely that the variable will occure early in the core file (an > ^^^^^^ typo > > I checked Single Unix Spec v3 on rlimit: > > http://www.opengroup.org/onlinepubs/007904975/functions/getrlimit.html > > There is an RLIMIT_AS which applies as well, so you might as well > maximize that. M'kay. > 180 *(char*)0 = 0; > (gdb) PASS: gdb.base/bigcore.exp: next > print heap > $1 = (struct list *) 0x77e4fff0 [...] > (gdb) PASS: gdb.base/bigcore.exp: load corefile > print heap > $16 = (struct list *) 0x77fbffe0 > (gdb) FAIL: gdb.base/bigcore.exp: check heap (address 0x77e4fff0) At first glance it looks like a bug in the HP/UX code, but I wonder. Could the startup code be allocating an extra bit of memory leading to that address being moved? Might need to tweak things so that the program under GDB is the one that is made to dump core. > testcase /house/chastain/gdb/s1/gdb/testsuite/gdb.base/bigcore.exp completed in 183 seconds Yea, contrast that to my GNU/Linux box which manages: > testcase src/gdb/testsuite/gdb.base/bigcore.exp completed in 4 seconds Andrew