Skip to content

mesa: add valgrind support #26418

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2017
Merged

mesa: add valgrind support #26418

merged 1 commit into from
Jun 10, 2017

Conversation

lheckemann
Copy link
Member

Motivation for this change

Completing the work to fix #25917, I think.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Sorry, something went wrong.

@lheckemann
Copy link
Member Author

cc @vcunat

@edolstra
Copy link
Member

edolstra commented Jun 6, 2017

Making a core package like mesa dependent on valgrind doesn't seem very desirable to me.

Surely mesa doesn't need to depend on valgrind just to install a suppression file?

@lheckemann
Copy link
Member Author

It's not a suppression file, it's code within mesa that informs valgrind that XYZ memory is ok to access — see discussion in #25917. Since libdrm already depends on valgrind-light now (b4bb396), mesa does anyway.

@vcunat
Copy link
Member

vcunat commented Jun 6, 2017

Right, my understanding is that there's a macro call defined in valgrind headers that is used to insert specific code patterns into the resulting binaries. Those are then recognized when interpreted by valgrind.

It's only a build time dependency a valgrind-light is pretty light.

@Mic92 Mic92 merged commit 377e0d3 into NixOS:staging Jun 10, 2017
@lheckemann lheckemann deleted the mesa-valgrind branch June 11, 2017 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants