-
Notifications
You must be signed in to change notification settings - Fork 6
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
Run tests with ASan #17
Comments
References #16. |
Interestingly, Boost.Test seems to leak memory with ASan enabled. Here, the reproducer: #define BOOST_TEST_MODULE test_foo
#include <boost/test/included/unit_test.hpp>
BOOST_AUTO_TEST_CASE(test_foo) {
BOOST_TEST_MESSAGE("Boost version: " << BOOST_VERSION);
BOOST_TEST_CHECK(true);
} which returns
when compiled and linked with
and run, afterwards. $ cat LSan.supp
leak:libboost_unit_test_framework.so.* However, this is rather a work around.
Note that the test binary is both compiled and run from within a Fedora32 LCX container image on a gentoo host. |
It turns out that Valgrind's Memcheck utility detects the issue, too. |
Note that this is a regression (see #17).
Note that this is a regression (see #17).
In order to detect memory issues as early as possible, it would be good to enable AddressSanitizer when running unittests. The error detector comes with both gcc and clang builtin, anyway.
The text was updated successfully, but these errors were encountered: