Hi,

It's a long standing issue that Valgrind finds thousands of issues in
Mesa: https://www.phoronix.com/scan.php?page=news_item&px=MTQzNjk

There's a build flag in Mesa to enable Valgrind support, thus
preventing those false positives:
https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-20.1.2/meson_options.txt#L264-270

Building the Debian package with `-Dvalgrind=true` (and adding
valgrind as a build dep) should fix this issue.
For the reference, AFAICT this flag is not enabled in mesa 20.1.1-1 in
Debian Sid.

I would strongly encourage Debian maintainers to consider this change,
as it's the only way to make Valgrind usable to debug any kind of
OpenGL or Vulkan application.
I'm one of the developers of Godot Engine myself, and we have
countless developers left without option to use Valgrind because they
are running Debian or Ubuntu.

Other distros changed their packaging to use `-Dvalgrind=true`:

- Fedora: 
https://src.fedoraproject.org/rpms/mesa/c/37749951bc4d289a522ca332b3cc9cada8ace277?branch=master
- Arch: https://bugs.archlinux.org/task/62943
- Mageia: https://ml.mageia.org/l/arc/dev/2019-07/msg00003.html (I'm a
Mageia packager)

openSUSE doesn't seem to enable it yet, but I'll suggest it to them too.

Thanks in advance,

Rémi Verschelde
Godot Engine Project Manager / Mageia packager

Reply via email to