From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4493 invoked by alias); 16 Jun 2003 21:00:24 -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 4486 invoked from network); 16 Jun 2003 21:00:24 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.131) by sources.redhat.com with SMTP; 16 Jun 2003 21:00:24 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id E9BC12B5F; Mon, 16 Jun 2003 17:00:20 -0400 (EDT) Message-ID: <3EEE2FE4.6050403@redhat.com> Date: Mon, 16 Jun 2003 21:00:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Jacobowitz Cc: gdb@sources.redhat.com Subject: Re: Crasher in dwarf2-frame.c - memory reuse References: <20030616134944.GA17095@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-06/txt/msg00324.txt.bz2 > 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? Andrew