Created attachment 104502 [details]
the complete valgrind glxinfo output
When i execute
valgrind -v --leak-check=full --track-origins=yes glxinfo
i get lots errors: uninitialized values, invalid writes, ...
Originally I got all the errors when testing an opengl coding project,
but when narrowing down the problem, i found that the errors also occur when running glxgears or glxinfo.
The complete valgrind output is attached.
Mesa was compiled with:
-O3 -pipe -march=corei7-avx -mcx16 -maes -mpclmul -mpopcnt -mavx -msse4.2 -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256
this equals -march=native for my laptop.
This looks like your libdrm isn't compiled with valgrind support. Recompile/install libdrm with valgrind already installed and I think this will clear up.
Reopen if there are still valgrind warnings after doing that.
indeed, recompiling libdrm so it detects having valgrind installed gets rid of nearly all errors.
but i still got some non-free'd blocks after glxinfo/glxgears exits ;)
I'll attach the outputs for running glxgears and glxinfo.
Created attachment 104511 [details]
shutdown-memleaks for glxgears
Created attachment 104512 [details]
shutdown-memleaks for glxinfo
I'm marking as WONTFIX.. not really because we won't fix it, but because the bug doesn't really help us to fix it.
Please send patches to the mesa-dev mailing list.