Several years ago (2005), Joe Link submitted a patch to allow specification of line numbers in suppression expressions (https://sourceforge.net/p/valgrind/mailman/message/14023169/ ) [E.g., in Joe's words: support for suppression entries such as: { allocator Memcheck:Leak fun:_Znaj src:quick_allocator.hpp:97 } { allocator Memcheck:Leak fun:_Znaj src:quick_allocator.hpp } ] According to Ivo Raisr, this patch was never incorporated (https://sourceforge.net/p/valgrind/mailman/message/36225028/ ) I've modified Joe's original patch to conform to the new[er] infrastructure in a copy of the 3.13.0 source. I'm clueless as to how to go about submitting the changes for review (and potential inclusion). Do I just attach a diff/patch file to this request? Or should I try to integrate it with a private version of 3.14.0 first (and then attach a diff/patch)? Or something else?
Thanks for your interest! Patches are submitted using phabricator.kde.org. This should tell you what you need to know: https://community.kde.org/Infrastructure/Phabricator
No, valgrind does not use phabricator. Just attach the patch here.
My mistake, sorry.
Created attachment 110691 [details] Patch against 3.14.0 src & doc to implement/document suppression-by-file
I'm not sure what the protocol is for creating test cases (I can't seem to get them to work in my environment) but if someone can give me a pointer, I'll do my best to create something. I tested this on x86 linux (FC7); building required modification per https://bugs.kde.org/show_bug.cgi?id=390524
Created attachment 113569 [details] patch with NEWS updated Patch cleaned up. Tests still pending.
Fixed in changeset 410d736a9928f535e2591c9d5f32e8e0941f96d8. https://sourceware.org/git/?p=valgrind.git;a=commitdiff;h=410d736a9928f535e2591c9d5f32e8e0941f96d8