Bug 82513

Summary: valgrind shows many errors for mesa-progs-8.1.0 with mesa-10.2.{4,5}
Product: Mesa Reporter: Jonas Jelten <jj>
Component: Drivers/DRI/i965Assignee: Ian Romanick <idr>
Status: RESOLVED WONTFIX QA Contact: Intel 3D Bugs Mailing List <intel-3d-bugs>
Severity: normal    
Priority: medium CC: jj
Version: 10.2   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: the complete valgrind glxinfo output
shutdown-memleaks for glxgears
shutdown-memleaks for glxinfo

Description Jonas Jelten 2014-08-12 13:18:40 UTC
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.
Comment 1 Matt Turner 2014-08-12 16:00:14 UTC
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.
Comment 2 Jonas Jelten 2014-08-12 16:50:49 UTC
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.
Comment 3 Jonas Jelten 2014-08-12 16:51:49 UTC
Created attachment 104511 [details]
shutdown-memleaks for glxgears
Comment 4 Jonas Jelten 2014-08-12 16:52:27 UTC
Created attachment 104512 [details]
shutdown-memleaks for glxinfo
Comment 5 Matt Turner 2015-03-05 00:40:05 UTC
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.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.