[CMake] How to suppress valgrind errors reported by NightlyMemCheck ?
Aaron Boxer
boxerab at gmail.com
Sun Mar 20 18:21:41 EDT 2016
Hi Xavier,
On Sun, Mar 20, 2016 at 1:50 PM, Xavier Besseron <xavier.besseron at uni.lu>
wrote:
> Hi Aaron,
>
> I don't know if that's what you're looking for,
> but you can try to set Valgrind options using an environment variable or
> a cmake variable
>
> set(VALGRIND_OPTS "--suppressions=/path/to/your_suppression_file.supp")
>
>
> or
>
>
> export VALGRIND_OPTS="--suppressions=/path/to/your_suppression_file.supp"
>
>
Excellent, thanks for your help. This worked for me.
Aaron
>
>
> Best regards,
>
> Xavier
>
> On Sun, Mar 20, 2016 at 6:14 PM, Aaron Boxer <boxerab at gmail.com> wrote:
>
>> My program links to libstdc++. It turns out there is a well-known false
>> positive
>> from valgrind regarding libstdc++ memory pools.
>>
>> http://valgrind.org/docs/manual/faq.html#faq.reports
>>
>> How may I suppress this error when running ctest -D NightlyMemCheck ?
>>
>> Thanks,
>> Aaron
>>
>
>
>
> --
> Dr Xavier BESSERON
> Research associate
> FSTC, University of Luxembourg
> Campus Kirchberg, Office E-007
> Phone: +352 46 66 44 5418
> http://luxdem.uni.lu/
>
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160320/d87ed476/attachment.html>
More information about the CMake
mailing list