From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14251 invoked by alias); 10 Aug 2007 07:16:10 -0000 Received: (qmail 14148 invoked by uid 22791); 10 Aug 2007 07:16:07 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate1.de.ibm.com (HELO mtagate1.de.ibm.com) (195.212.29.150) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 10 Aug 2007 07:16:01 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate1.de.ibm.com (8.13.8/8.13.8) with ESMTP id l7A7Fw2h067948 for ; Fri, 10 Aug 2007 07:15:58 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.4) with ESMTP id l7A7FwvP2265260 for ; Fri, 10 Aug 2007 09:15:58 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l7A7Fvk9018400 for ; Fri, 10 Aug 2007 09:15:58 +0200 Received: from bbkeks.boeblingen.de.ibm.com (dyn-9-152-248-39.boeblingen.de.ibm.com [9.152.248.39]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l7A7Fuw9018354 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 10 Aug 2007 09:15:57 +0200 Message-ID: <46BC1052.1090303@de.ibm.com> Date: Fri, 10 Aug 2007 07:16:00 -0000 From: Markus Deuling User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: msnyder@sonic.net CC: luisgpm@linux.vnet.ibm.com, gdb-patches@sourceware.org, jimb@codesourcery.com, kevinb@redhat.com Subject: Re: [PATCH] solib-svr4.c, several memory leaks References: <23585.12.7.175.2.1186282957.squirrel@webmail.sonic.net> <21109.12.7.175.2.1186596556.squirrel@webmail.sonic.net> <1186699391.4524.12.camel@localhost> <21641.12.7.175.2.1186704765.squirrel@webmail.sonic.net> In-Reply-To: <21641.12.7.175.2.1186704765.squirrel@webmail.sonic.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-08/txt/msg00200.txt.bz2 msnyder@sonic.net schrieb: > Jim, Kevin, > > Apparently we can't free the tmp name while bfd has the file open. > Moving the xfree to later, after it has been closed, seems to fix > the segfault. > > See attached patch. > Michael > >> Folks, >> >> GDB started acting strange today, segfaulting when trying to open some >> binaries, GDB itself included. Other binaries would work OK. >> >> Log: >> >> ------- >> ~/builds/gdb-head/> gdb-head-64bit/gdb/gdb gdb-head-64bit/gdb/gdb >> GNU gdb 6.6.50.20070809-cvs >> Copyright (C) 2007 Free Software Foundation, Inc. >> GDB is free software, covered by the GNU General Public License, and you >> are >> welcome to change it and/or distribute copies of it under certain >> conditions. >> Type "show copying" to see the conditions. >> There is absolutely no warranty for GDB. Type "show warranty" for >> details. >> This GDB was configured as "powerpc64-unknown-linux-gnu"... >> startUsing host libthread_db library "/lib64/ppc970/libthread_db.so.1". >> (gdb) start >> Breakpoint 1 at 0x10060b3c: file gdb-head/gdb/gdb.c, line 30. >> Starting program: gdb-head-64bit/gdb/gdb >> BFD: reopening : No such file or directory >> >> Segmentation fault >> ------- >> >> >> I tracked down the root of the problem and this patch appears to be the >> problem. Reverting it back fixes the problem. > Yes, it does. Please commit. These are my current testsuite results on x86 :-( : # of expected passes 5706 # of unexpected failures 1233 <...> # of unresolved testcases 4334 -- Markus Deuling GNU Toolchain for Linux on Cell BE deuling@de.ibm.com