From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14267 invoked by alias); 21 Jun 2003 17:27:24 -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 14234 invoked from network); 21 Jun 2003 17:27:23 -0000 Received: from unknown (HELO crack.them.org) (146.82.138.56) by sources.redhat.com with SMTP; 21 Jun 2003 17:27:23 -0000 Received: from dsl093-172-017.pit1.dsl.speakeasy.net ([66.93.172.17] helo=nevyn.them.org ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 19Tm9r-0006BI-00; Sat, 21 Jun 2003 12:28:11 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19Tm8z-0002HW-00; Sat, 21 Jun 2003 13:27:17 -0400 Date: Sat, 21 Jun 2003 17:27:00 -0000 From: Daniel Jacobowitz To: Michael Snyder Cc: gdb-patches@sources.redhat.com, cagney@redhat.com Subject: Re: crasher in dwarf2loc.c Message-ID: <20030621172717.GA14161@nevyn.them.org> Mail-Followup-To: Michael Snyder , gdb-patches@sources.redhat.com, cagney@redhat.com References: <3EA5E370.F069D062@redhat.com> <20030423021617.GB13849@nevyn.them.org> <3EA87EDF.4A0826F8@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EA87EDF.4A0826F8@redhat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-06/txt/msg00665.txt.bz2 On Thu, Apr 24, 2003 at 05:18:39PM -0700, Michael Snyder wrote: > Daniel Jacobowitz wrote: > > > > On Tue, Apr 22, 2003 at 05:50:56PM -0700, Michael Snyder wrote: > > > Hey Daniel, > > > > > > I've got a core dump coming from dwarf_expr_frame_base. > > > First you call get_frame_function, and then you immediately > > > use its return value. But get_frame_function can return zero, > > > so I think you need to check for zero before using it. > > > > > > Michael > > > > Just to avoid the crash, you're probably right. > > > > > PS: more details: get_frame_block returns zero, because > > > frame_address_in_block returns a pc that is not in any block. > > > > > > The crash occurs while running recurse.exp, when we have a > > > watchpoint on a local variable in an inner frame, and we > > > continue -- so I don't know the exact context; but I'm > > > willing to bet that it is trying to evaluate the local > > > variable after the stack frame has been destroyed. > > > > Huh - we should not even be reaching this code. I don't quite > > understand your explanation; what target does this happen? Can it be > > reproduced on a simulator, or something of that ilk? > > mumble, mumble... > > [...] > > mumble, mumble, mumble... > > OK, yes. > > But first you have to back out this change: then run recurse.exp. > If it doesn't crash in your target of choice, try h8300-elf (sim). Cleaning, cleaning... Michael, FYI, I'm going to consider this problem moot unless you manage to reproduce it in the current sources; I can't. With Andrew's change it shouldn't happen. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer