Summary: | If errors-for-leak-kinds is specified, exit-on-first-error should only exit on one of the listed errors. | ||
---|---|---|---|
Product: | [Developer tools] valgrind | Reporter: | Eyal <eyalsoha> |
Component: | memcheck | Assignee: | Paul Floyd <pjfloyd> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | ahajkova, ethan.ordentlich2017, pjfloyd |
Priority: | NOR | ||
Version: | 3.22 GIT | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | patch with working code and unit test |
Description
Eyal
2023-09-04 21:56:00 UTC
Created attachment 161405 [details] patch with working code and unit test This fixes the issue and adds a unit test. Also here: https://github.com/eyal0/valgrind/pull/5/files Let me know if there's anything that you'd like me to do here! The patch and testing is pretty straight-forward. I think that the new behavior will be more inline with valgrind user expectation. Probably next on my list after FreeBSD arm64. Thanks! Added to NEWS and changed commit message commit ca58f30a5e728cda2802c7fafdc0770a45a5f8cb (HEAD -> master, origin/master, origin/HEAD) Author: Eyal Soha <eyalsoha@gmail.com> Date: Tue Mar 2 14:42:38 2021 -0700 Bug 474160 - If errors-for-leak-kinds is specified, exit-on-first-error should only exit on one of the listed errors. It's possible for the user to specify in the memcheck that some errors should not cause an exit with the error-exitcode value. For those errors which would not cause an error exitcode, do not count them for the purposes of exiting after the first error. |