Bug 82513 - valgrind shows many errors for mesa-progs-8.1.0 with mesa-10.2.{4,5}
Summary: valgrind shows many errors for mesa-progs-8.1.0 with mesa-10.2.{4,5}
Status: RESOLVED WONTFIX
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: 10.2
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Ian Romanick
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-12 13:18 UTC by Jonas Jelten
Modified: 2015-03-05 00:40 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
the complete valgrind glxinfo output (153.10 KB, text/plain)
2014-08-12 13:18 UTC, Jonas Jelten
Details
shutdown-memleaks for glxgears (1012.52 KB, text/plain)
2014-08-12 16:51 UTC, Jonas Jelten
Details
shutdown-memleaks for glxinfo (46.13 KB, text/plain)
2014-08-12 16:52 UTC, Jonas Jelten
Details

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.