From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5179 invoked by alias); 16 Jun 2003 21:54:22 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 5172 invoked from network); 16 Jun 2003 21:54:21 -0000 Received: from unknown (HELO crack.them.org) (146.82.138.56) by sources.redhat.com with SMTP; 16 Jun 2003 21:54:21 -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 19S1wS-0003jg-00; Mon, 16 Jun 2003 16:55:09 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19S1vd-0003Jd-00; Mon, 16 Jun 2003 17:54:17 -0400 Date: Mon, 16 Jun 2003 21:54:00 -0000 From: Daniel Jacobowitz To: Andrew Cagney Cc: gdb@sources.redhat.com Subject: Re: Crasher in dwarf2-frame.c - memory reuse Message-ID: <20030616215412.GA12729@nevyn.them.org> Mail-Followup-To: Andrew Cagney , gdb@sources.redhat.com References: <20030616134944.GA17095@nevyn.them.org> <3EEE2FE4.6050403@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EEE2FE4.6050403@redhat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-06/txt/msg00325.txt.bz2 On Mon, Jun 16, 2003 at 05:00:20PM -0400, Andrew Cagney wrote: > >So, reread_symbols frees the objfile, but does not clear sym_private. > >Clearing it in reread_symbols fixes the crash, but presumably leaks > >memory. How are we supposed to clean up the FDE list? > > fde = (struct dwarf2_fde *) > obstack_alloc (&unit->objfile->psymbol_obstack, > sizeof (struct dwarf2_fde)); > > so won't the symbol table free, free that memory? Silly me. I thought it was malloc'd. In that case the fix is obvious; I'll get it in a little bit. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer