From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2252 invoked by alias); 23 Apr 2003 00:50:58 -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 2245 invoked from network); 23 Apr 2003 00:50:58 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 23 Apr 2003 00:50:58 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200] (may be forged)) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h3N0ovD05591 for ; Tue, 22 Apr 2003 20:50:57 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h3N0ouW31708; Tue, 22 Apr 2003 20:50:57 -0400 Received: from redhat.com (reddwarf.sfbay.redhat.com [172.16.24.50]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id h3N0ouM04684; Tue, 22 Apr 2003 17:50:56 -0700 Message-ID: <3EA5E370.F069D062@redhat.com> Date: Wed, 23 Apr 2003 00:50:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. X-Accept-Language: en MIME-Version: 1.0 To: drow@mvista.com, gdb-patches@sources.redhat.com Subject: crasher in dwarf2loc.c Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2003-04/txt/msg00421.txt.bz2 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 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.