-
Notifications
You must be signed in to change notification settings - Fork 1.2k
There seems to be a memory leak in readprofile #1077
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
Comments
make_checkusage
seems to be failing on Ubuntu Bionic (when util-linux is built with clang)make_checkusage
seems to be failing on Ubuntu Bionic under ASan
I ran
|
make_checkusage
seems to be failing on Ubuntu Bionic under ASan
Note that we do not do free-before-exit. It's pretty common to call exit() or err() without care about the previous allocation. This is expected and fine. The memory leak is mostly important in libs and library sample/test programs. It means you have to be careful about asan or valgrind results interpretation. |
I agree that it's common in general but once projects start running their testsuites under ASan it is usually much easier to fix memory leaks instead of trying to figure out how to ignore some of them.
Given that in #1075 I simply ran all the tests on Ubuntu Bionic without changing anything it looks like make_checkusage isn't exactly compatible with ASan. I can add |
Well, we have in our hands what binaries will be probed for memory-leak in the test suite and I don't think we have to apply the same compile flags to all stuff :-) I really want to avoid storm of free() patches just to keep CI happy. The question is if make_checkusage() makes sense -- IMHO things from tools/ are mostly designed for manual execution. For serious automatic tests it would be better to have something robust in tests/. It would be nice to clean up it and select what we need. |
OK, closing. |
https://travis-ci.org/github/karelzak/util-linux/jobs/702935746
The text was updated successfully, but these errors were encountered: