Skip to content
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

Fix memory leak in configure, which prevents leak sanitizer usage #7953

Merged
merged 1 commit into from
Jul 21, 2020

Conversation

cniethammer
Copy link
Contributor

Signed-off-by: Christoph Niethammer niethammer@hlrs.de

@jsquyres
Copy link
Member

@cniethammer I'm not entirely understanding what problem it is that you're fixing here. Yes, the free() was missing from the configure program, but why does it matter?

@cniethammer
Copy link
Contributor Author

This matters if I build Open MPI with sanitizers, e.g. configure CC=clang CFLAGS=-fsanitize=address ....
In this case configure test programs area also build with the sanitizers and will report errors resulting in configure to fail.

@jsquyres
Copy link
Member

Got it. Can you put that in the commit message and/or in a comment in the code?

If building Open MPI with sanitizers, e.g
$ configure CC=clang CFLAGS=-fsanitize=address ....
configure test programs are also build with the sanitizers and will
report errors resulting in configure to fail.

Signed-off-by: Christoph Niethammer <niethammer@hlrs.de>
@cniethammer
Copy link
Contributor Author

@jsquyres Updated the commit message

@jsquyres jsquyres merged commit 30ba603 into open-mpi:master Jul 21, 2020
@devreal
Copy link
Contributor

devreal commented Jul 22, 2020

Should this be backported to the release branches?

@cniethammer
Copy link
Contributor Author

Yes, would be good to have this in at least 4.1.x for testing

@jsquyres
Copy link
Member

Might as well do v4.0.x, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants