Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 358249 - x11-libs/libxcb-1.7 leaks memory
Summary: x11-libs/libxcb-1.7 leaks memory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-10 14:59 UTC by Philipp
Modified: 2012-08-14 06:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp 2011-03-10 14:59:41 UTC
A simple program using libX11 shows the problem:

Display *dsp = XOpenDisplay(NULL);
XCloseDisplay(dsp);

Every time this is done, 124 Bytes are leaked.
XOpenDisplay is an essential call in Xlib programming, so probably every program using libX11 is affected.

The corresponding upstream bug report is here

https://bugs.freedesktop.org/show_bug.cgi?id=28526

with a fix here

http://cgit.freedesktop.org/xcb/libxcb/commit/?id=5755582444ad0ba79e661ab3173cc38e9e588d83

I tested the above patch in my local overlay and it doesn't seem to cause any problems. The patch applies cleanly on top of libxcb-1.7.
Comment 1 Luyang Han 2011-10-13 19:47:50 UTC
Is there going to be a patched version? Or this bug is going to be resolved in the next version?
Comment 2 Philipp 2012-07-03 09:55:41 UTC
The fix is in version 1.8 and later, but they are not stable for all systems yet.
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2012-08-14 06:29:16 UTC
Basically it is fixed by 1.8+ and 1.8.1 is stable on most relevant archs already, so closing.