1

I am trying to profile my application for checking possible memory leaks using Valgrind's memcheck tool. As my application has many dependent 3rd party libraries, which are reporting 'Invalid write of size' memory error. How do I suppress this error? I have tried make options in the suppression file such as Cond, Value4, Addr4. But nothing has suppressed this warning. I have also provided the option --undef-value-errors=no

1 Answer 1

1

Use --gen-suppressions=all and edit the resulting generated suppressions (e.g. to make them more general and give a name to them)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.