-
Notifications
You must be signed in to change notification settings - Fork 37.7k
script: de-dupe and update valgrind suppressions #18178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This commit began with the suppressions generated by valgrind and reduced them by ~4x to the minimum necessary so that running valgrind with --exit-on-first-error can pass. All tested with valgrind 3.16.0 on Debian 4.19 x86/64. These suppressions enable running valgrind on current master for the unit tests valgrind --leak-check=full --show-leak-kinds=all --show-reachable=yes \ --gen-suppressions=all --error-limit=no -s \ --suppressions=contrib/valgrind.supp \ src/test/test_bitcoin --log_level=test_suite bench valgrind --leak-check=full --show-leak-kinds=all --show-reachable=yes \ --gen-suppressions=all --error-limit=no -s \ --suppressions=contrib/valgrind.supp \ src/bench/bench_bitcoin -evals=1 qt tests valgrind --leak-check=full --show-leak-kinds=all --show-reachable=yes \ --gen-suppressions=all --error-limit=no -s \ --suppressions=contrib/valgrind.supp \ src/qt/test/test_bitcoin-qt --log_level=test_suite as well as with `make check-valgrind` in PR 17639
Are you able to reproduce this one reliably?
If so, can you try minimising the test case to find the root cause? It looks like the use of an uninitialised value, which would be a very valuable find! |
@practicalswift which test or test suite are you seeing fail without that suppression? |
Lone travis failure in "scheduler_tests/mockforward" is unrelated. |
@jonatack I haven't seen that failure - I quoted the diff :) |
Oh ok, that appears to be worth looking into but is unrelated to this PR; that suppression was introduced in 2d23082 by @michiboo. Once this PR is merged it will be easier for me to look into individual errors without seeing a hundred other warnings or maintaining a custom suppressions file. |
No reviews or interest in this, closing. |
This PR de-dupes the current suppressions, then reduces the additional ones currently generated down to the minimal entries needed to run valgrind 3.16.0 with
--exit-on-first-error=yes
. Tested on Debian 4.19 x86/64. Feedback welcome.These suppressions allow running valgrind without errors on current master for...
test_bitcoin:
bench_bitcoin:
test_bitcoin-qt:
and with
make check-valgrind
in PR #17639 which runs them all.