[Bug 98420] Memory leak in drm_atomic.c eventually (few days) consuming all RAM (on at least one system configuration)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Oct 25 23:12:07 UTC 2016


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

--- Comment #6 from Felix Monninger <felix.monninger at gmail.com> ---
Oh I see. Interesting to learn about the different approaches to these matters.

As a final note on when this bug occurs and why it hasn't been noticed yet
(this might be useful for people finding this until the time at which the
patched code is distributed):

Programs like "xflux" or "redshift" that change screen color temperature to a
more reddish type depending on daytime will trigger a call of
drm_atomic_helper_legacy_gamma_set(). During transition phase (from normal->red
and vice versa) they make many (>100) calls, and then in regular intervals
(xflux: every 0.5s; redshift: every 5s). Thus at each of these intervals memory
is leaked, with redshift at 1/10 the rate of xflux.

With these tools turned off there don't seem to be many changes of the gamma
value. So this bug will probably not affect those who are not using these
tools. Also, this has been introduced only recently, > kernel 4.5.1

(If everything is wrapped up, this issue can be closed, but I don't know the
correct procedure.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20161025/5a377af6/attachment.html>


More information about the intel-gfx-bugs mailing list