[prev in list] [next in list] [prev in thread] [next in thread] 

List:       enlightenment-devel
Subject:    Re: [E-devel] Edje memory leak - need help
From:       Carsten Haitzler (The Rasterman) <raster () rasterman ! com>
Date:       2004-01-12 2:11:19
Message-ID: 20040112111119.39534cb4.raster () rasterman ! com
[Download RAW message or body]

On Sun, 11 Jan 2004 13:53:41 +0100 Tilman Sauerbeck <tilman@code-monkey.de>
babbled:

> Hi folks,
> last night I spotted a memory leak in Edje (with the help of valgrind).
> 
> When the Edje smart object is removed from the Evas (resp. when it's
> deleted) it isn't free()'d correctly, it seems.
> 
> The bug sits in _edje_collection_free() - it seems only parts
> collections are leaking, programs aren't affected.
> 
> I've looked through the code but couldn't find the cause of the problem
> (I don't know the edje and eet code at all) so I'm sending this stuff to
> the list.
> 
> ==12106== 8 bytes in 8 blocks are definitely lost in loss record 6 of 54
> ==12106==    at 0x40029A2D: malloc (in /usr/lib/valgrind/vgskin_memcheck.so)
> ==12106==    by 0x40429D93: eet_data_get_string (eet_data.c:955)
> ==12106==    by 0x4042A09E: eet_data_get_type (eet_data.c:1074)
> ==12106==    by 0x4042AE24: eet_data_descriptor_decode (eet_data.c:1679)
> ==12106==    by 0x4042AE47: eet_data_descriptor_decode (eet_data.c:1688)
> ==12106==    by 0x4042AEFD: eet_data_descriptor_decode (eet_data.c:1757)
> ==12106==    by 0x4042AA0F: eet_data_read (eet_data.c:1478)
> ==12106==    by 0x402511DB: _edje_file_add (edje_load.c:402)
> ==12106==    by 0x4025086B: edje_object_file_set (edje_load.c:31)
> ==12106==    by 0x8048C4B: main (example.c:41)
> 
> For testing purposes, I use Ben's example edje program.
> I enhanced it so that the various shutdown functions are actually
> called.
> Find the modified version at http://code-monkey.de/example.c
> 
> The EDC I used is available at 
> http://www.cuddletech.com/edje/edc/crossfade.edc
> 
> Can someone please dig in the Edje code and try to find the bug?

aaah thankipoos! leak fond. leak fixed. panties on! :)

> -- 
> Regards,
> Tilman
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Perforce Software.
> Perforce is the Fast Software Configuration Management System offering
> advanced branching capabilities and atomic changes on 50+ platforms.
> Free Eval! http://www.perforce.com/perforce/loadprog.html
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    raster@rasterman.com
$B7'<*(B - $B<V7/(B ($B?tED(B)                  raster@deephackmode.org
Tokyo, Japan ($BEl5~(B $BF|K\(B)


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic