Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2003:
[Freeciv-Dev] Re: (PR#6742) civclient memory leak
Home

[Freeciv-Dev] Re: (PR#6742) civclient memory leak

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: chrisk@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#6742) civclient memory leak
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 9 Nov 2003 10:48:44 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=6742 >

Raimar Falke wrote:

> We are down to 68313 bytes leaked in 5 turns. All more or less deep
> within gtk/gdk/x11.
> 
> I also started the client and open a lot of dialogs and closing
> them. This resulted in a 900k leak. It is unknow if these are constant
> leaks or if they happen every time this dialog is opened. Opening
> dialogs is harder to reproduce then running 5 turns. To trace which
> dialogs have problems I expanded the stack trace from 20 to 40. But
> still no luck. I even tried "--num-callers=999999" but it looks like
> the stack trace is limited to 50.

Valgrind can usually tell if it is an actual leak ("definitely lost") or 
not.  It looks for pointers to the data to tell this.  Sometimes it gets 
confused ("possibly lost").  It doesn't report allocated-but-pointed-to 
data at all  (unless you tell it to).

-jason




[Prev in Thread] Current Thread [Next in Thread]