[Xcb] mem leak with ecore_xcb

Vincent Torri vtorri at univ-evry.fr
Wed Apr 11 11:48:14 PDT 2007



On Wed, 11 Apr 2007, Barton C Massey wrote:

> In message <Pine.LNX.4.64.0704111140420.26273 at grozny.maths.univ-evry.fr> you wrote:

>> ==31763== 24 bytes in 1 blocks are still reachable in loss record 2 of 3
>> ==31763==    at 0x401A6F0: malloc (vg_replace_malloc.c:149)
>> ==31763==    by 0x4494E6C: XauFileName (AuFileName.c:67)
>
> I committed a fix to this one a little while back, in the
> case where XauFileName() is called from inside libXau().
> Make sure you have the latest XCB: if it still shows the
> problem, please set a breakpoint in XauFileName and get me a
> stack backtrace...

I have a quite recent source code of xcb (my libXau is quite old, on the 
other hand). Here is the bt. I don't know if it is sufficient.

#0  XauFileName () at AuFileName.c:39
         name = <value optimized out>
         buf = 0x0
         bsize = 0
         size = <value optimized out>
#1  0x4048d70e in XauGetBestAuthByAddr (family=256, address_length=36, 
address=0xbfffebd0 "alf94-3-82-66-248-160.fbx.proxad.net", 
number_length=1,
     number=0xbfffecd0 "0", types_length=2, types=0x4028b008, 
type_lengths=0xbfffecf8) at AuGetBest.c:84
         auth_file = <value optimized out>
         auth_name = <value optimized out>
         entry = <value optimized out>
         best = <value optimized out>
         best_type = <value optimized out>
         type = <value optimized out>
#2  0x4027e60d in _xcb_get_auth_info (fd=6, info=0xbfffed38, display=0) at 
xcb_auth.c:131
         sockbuf = 
"\001\000/tmp/.X11-unix/X0\000C\235\000@(ëÿ¿\000\000\000\0008È(@еH@@U\020@\000\000\000\000$ëÿ¿ 
ëÿ¿\000\000\000\000\000\000\000\000¼F\001@ºm+@ºm+@ÀÜÿ¿ØÛÿ¿B®\000@", '\0' 
<repeats 12 times>, 
"¼F\001@Ûå\000@¼F\001@`Üÿ¿`Üÿ¿LÜÿ¿Ëæ\000@\b\000\000\000\024\000\000\000¼F\001@\\ëÿ¿å\235\000@\024\000\000\0008Ýÿ¿(®\000@@U\020@\000\000\000\000$ëÿ¿ 
ëÿ¿\000\000\000\000\000\000\000\000¼F\001@Ì\t+@Ì\t+ at 8Ýÿ¿PÜ"...
         socknamelen = 20
         sockname = (struct sockaddr *) 0xbfffdbc0
         ret = <value optimized out>
#3  0x4027e440 in xcb_connect (displayname=0x0, screenp=0xbfffedcc) at 
xcb_util.c:244
         fd = 6
         display = 0
         host = 0x804c650 ""
         c = <value optimized out>
         auth = {namelen = 1073906226, name = 0x7 <Address 0x7 out of 
bounds>, datalen = -1073746456, data = 0x4000ab80 "ZY\207\004$Â\b"}
#4  0x40100543 in ecore_x_init (name=0x0) at ecore_xcb.c:190
         iter = {data = 0x400d8e88, rem = 1073911444, index = 1073906226}
         screen = <value optimized out>
         reply_damage = <value optimized out>
         reply_dpms = <value optimized out>
         reply_randr = <value optimized out>
         reply_screensaver = <value optimized out>
         reply_shape = <value optimized out>
         cookie_sync_init = <value optimized out>
         reply_sync_init = <value optimized out>
         reply_sync = <value optimized out>
         reply_xfixes = <value optimized out>
         reply_xinerama = <value optimized out>
#5  0x40021707 in ecore_evas_software_x11_new (disp_name=0x0, parent=0, 
x=0, y=0, w=200, h=200) at ecore_evas_x.c:2353
         ee = <value optimized out>
         argb = <value optimized out>
         rmethod = 7
         redraw_debug = -1
#6  0x08048b37 in main (argc=1, argv=0xbfffefe4) at main.c:52
         ee = (Ecore_Evas *) 0x40253698
         win = 0
         evas = (Evas *) 0xbfffef38
         o = (Evas_Object *) 0x8048801
         t1 = 1176315999.309653
         t2 = 4.862279317624891e-270

Vincent


More information about the Xcb mailing list