https://bugs.kde.org/show_bug.cgi?id=474160
Bug ID: 474160 Summary: If errors-for-leak-kinds is specified, exit-on-first-error should only exit on one of the listed errors. Classification: Developer tools Product: valgrind Version: 3.22 GIT Platform: Other OS: Linux Status: REPORTED Severity: wishlist Priority: NOR Component: memcheck Assignee: jsew...@acm.org Reporter: eyals...@gmail.com Target Milestone: --- SUMMARY *** `exit-on-first-error` should *not* exit on any error that is not listed in the `errors-for-leak-kinds` list. *** STEPS TO REPRODUCE 1. Build and install in the usual way: ./autogen.sh && ./configure --prefix=$HOME/.local && make -j 20 && make -j 20 check && make install 2. From root directory of valgrind, run: valgrind --error-exitcode=127 --errors-for-leak-kinds=definite --leak-check=full -s --exit-on-first-error=yes memcheck/tests/leak-cases OBSERVED RESULT Despite setting errors-for-leak-kinds to "definite", the test is exiting on a non-"definite" leak. EXPECTED RESULT The test should only exit on leak types listed in the errors-for-leak-kinds. If that list is empty only then should it exit on all types of leaks. SOFTWARE/OS VERSIONS Linux/KDE Plasma: 3.22 git commit c086bbdd6 ADDITIONAL INFORMATION More details here: https://github.com/eyal0/valgrind/pull/5#issuecomment-1705724572 Working fix with unit test here: https://github.com/eyal0/valgrind/pull/5/files -- You are receiving this mail because: You are watching all bug changes.