[Bug 276614] graphics/mesa-dri:fix os_same_file_description warning

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276614

--- Comment #41 from Jan Beich <[email protected]> ---
Created attachment 249495
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=249495&action=edit
syslog() every time missing kcmp() can leak memory

(In reply to Yusuf Khan from comment #34)
> (with a minor memory leak?)

The original leaks weren't "minor", see
https://gitlab.freedesktop.org/mesa/mesa/-/issues/1426 and
https://gitlab.freedesktop.org/mesa/mesa/-/issues/2270 . Would be nice to
collect more data by unthrottling the warning (see attached patch) and checking
what triggers it. However, I'm not sure how to catch leaks over long-lived
graphical sessions.

For example, nesting sway/mesa-dri from 13.2 jail under sway-devel/mesa-devel
from 15.0-CURRENT host suggests kcmp() is required at least 3 times (on the
jail side).

# pkg install -qy sway
$ MESA_LOG=file sway
MESA: warning: iris: Kernel has no file descriptor comparison support: Invalid
argument
MESA: warning: iris: Kernel has no file descriptor comparison support: No such
file or directory
MESA: warning: iris: Kernel has no file descriptor comparison support: No such
file or directory
[...]

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.