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
memory leak detected by address sanitizer #96
Comments
I proposed a patch for this on the list: https://www.mail-archive.com/haproxy@formilux.org/msg33745.html |
I'll run tests with sanitizer soon |
I tested, everything is ok |
I've rebased to current master, enabled address sanitizer and built: https://travis-ci.org/chipitsine/haproxy-1/jobs/532472001#L2448-L2454 https://travis-ci.org/chipitsine/haproxy-1/builds/532471995 still leaks |
Yes, because my memory-leak patch has not yet been applied. |
Sorry, I saw some discussion on mailing list. I thought similar patch was applied, but I was wrong |
The struct mworker_proc is not uniformly freed everywhere, sometimes leading to leaks of the `id` string (and possibly the other strings). Introduce a mworker_free_child function instead of duplicating the freeing logic everywhere to prevent this kind of issues. This leak was reported in issue #96. It looks like the leaks have been introduced in commit 9a1ee7a, which is specific to 2.0-dev. Backporting `mworker_free_child` might be helpful to ease backporting other fixes, though.
full log:
https://travis-ci.com/chipitsine/haproxy-1/jobs/198816193
leak
The text was updated successfully, but these errors were encountered: