From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23407 invoked by alias); 1 Jun 2007 17:16:18 -0000 Received: (qmail 23399 invoked by uid 22791); 1 Jun 2007 17:16:18 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 01 Jun 2007 17:16:13 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 24DF898219; Fri, 1 Jun 2007 17:16:12 +0000 (GMT) Received: from false.org (nc-76-4-218-255.dyn.embarqhsd.net [76.4.218.255]) by nan.false.org (Postfix) with ESMTP id DF7F098212; Fri, 1 Jun 2007 17:16:11 +0000 (GMT) Date: Fri, 01 Jun 2007 17:16:00 -0000 From: Daniel Jacobowitz To: Andreas Schwab Cc: gdb@sourceware.org Subject: Re: Huge memory leak in expression evaluation Message-ID: <20070601171613.GB4992@them.org> Mail-Followup-To: Andreas Schwab , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-06/txt/msg00015.txt.bz2 On Fri, Jun 01, 2007 at 05:06:38PM +0200, Andreas Schwab wrote: > There appears to be a huge memory leak in the expression evaluator. For > example when I set a conditional breakpoint on a frequently executed > line gdb quickly grows in the order of 500mb per second. When I make > the breakpoint unconditional, but add commands to call continue when the > condition is not satisfied I still see some big growth, but only in the > order of 100mb per second. The difference is probably because > breakpoint commands are executed much slower. Is this new, do you know? Otherwise, valgrind works fine on GDB nowadays; we'll have to use it. I had gotten a base GDB session down to no leaks at one point, though the patch was never committed because of an ugly wart. -- Daniel Jacobowitz CodeSourcery