Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Huge memory leak in expression evaluation
@ 2007-06-01 15:06 Andreas Schwab
  2007-06-01 17:16 ` Daniel Jacobowitz
  2007-06-14 22:38 ` Aman Wardak
  0 siblings, 2 replies; 6+ messages in thread
From: Andreas Schwab @ 2007-06-01 15:06 UTC (permalink / raw)
  To: gdb

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.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Huge memory leak in expression evaluation
  2007-06-01 15:06 Huge memory leak in expression evaluation Andreas Schwab
@ 2007-06-01 17:16 ` Daniel Jacobowitz
  2007-06-01 17:38   ` Andreas Schwab
  2007-06-01 18:06   ` Andreas Schwab
  2007-06-14 22:38 ` Aman Wardak
  1 sibling, 2 replies; 6+ messages in thread
From: Daniel Jacobowitz @ 2007-06-01 17:16 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: gdb

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Huge memory leak in expression evaluation
  2007-06-01 17:16 ` Daniel Jacobowitz
@ 2007-06-01 17:38   ` Andreas Schwab
  2007-06-01 18:06   ` Andreas Schwab
  1 sibling, 0 replies; 6+ messages in thread
From: Andreas Schwab @ 2007-06-01 17:38 UTC (permalink / raw)
  To: gdb

Daniel Jacobowitz <drow@false.org> writes:

> Is this new, do you know?

I don't know.

> Otherwise, valgrind works fine on GDB nowadays; we'll have to use it.

Unfortunately, valgrind does not support ia64.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Huge memory leak in expression evaluation
  2007-06-01 17:16 ` Daniel Jacobowitz
  2007-06-01 17:38   ` Andreas Schwab
@ 2007-06-01 18:06   ` Andreas Schwab
  1 sibling, 0 replies; 6+ messages in thread
From: Andreas Schwab @ 2007-06-01 18:06 UTC (permalink / raw)
  To: gdb

Daniel Jacobowitz <drow@false.org> writes:

> Is this new, do you know?

At least gdb 6.5 has the same problem.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Huge memory leak in expression evaluation
  2007-06-01 15:06 Huge memory leak in expression evaluation Andreas Schwab
  2007-06-01 17:16 ` Daniel Jacobowitz
@ 2007-06-14 22:38 ` Aman Wardak
  2007-06-15 12:58   ` Andreas Schwab
  1 sibling, 1 reply; 6+ messages in thread
From: Aman Wardak @ 2007-06-14 22:38 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: gdb

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
>   
Sorry, did you mean here 500mb or 500kb?  I'm seeing 500kb/sec growth on 
a conditional breakpoint.
Aman
> 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.
>
> Andreas.
>
>   


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Huge memory leak in expression evaluation
  2007-06-14 22:38 ` Aman Wardak
@ 2007-06-15 12:58   ` Andreas Schwab
  0 siblings, 0 replies; 6+ messages in thread
From: Andreas Schwab @ 2007-06-15 12:58 UTC (permalink / raw)
  To: Aman Wardak; +Cc: gdb

Aman Wardak <awardak@mvista.com> writes:

> 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
>>   
> Sorry, did you mean here 500mb or 500kb?

The former.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-06-15 12:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-01 15:06 Huge memory leak in expression evaluation Andreas Schwab
2007-06-01 17:16 ` Daniel Jacobowitz
2007-06-01 17:38   ` Andreas Schwab
2007-06-01 18:06   ` Andreas Schwab
2007-06-14 22:38 ` Aman Wardak
2007-06-15 12:58   ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox