-
Notifications
You must be signed in to change notification settings - Fork 901
common/ucx: fix variable registration #10365
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
The registration code in common/ucx was overly complex. It assumed that re-registration is not desireable when it essentially does the same as the find before the registration. The only thing that needs protection is resetting the char * variables before they are registered. The primary purpose of this commit to fix two memory leaks caused by the extra allocations to hold the strings. These allocations are unnecessary. Signed-off-by: Nathan Hjelm <[email protected]> (cherry picked from commit 5ad772c)
This was found by MTT testing on ppc64le (regardless of compiler) and configured with
I believe that the
The problem is the same one that Nathan fixed for |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
I'm able to reproduce the |
The problem seems to be specific to ompi/ompi/tools/ompi_info/ompi_info.c Lines 194 to 208 in 82b1eb4
The I must be either missing some other commit from |
* Model the MCA string variable handling after the common/ofi component that uses a second degree of indirection to keep the pointer valid even when the library closes (i.e., in ompi_info). Signed-off-by: Joshua Hursey <[email protected]>
I pushed a new commit to this PR that addresses the This PR is ready to go. |
The registration code in common/ucx was overly complex. It assumed
that re-registration is not desireable when it essentially does the
same as the find before the registration. The only thing that needs
protection is resetting the char * variables before they are
registered.
The primary purpose of this commit to fix two memory leaks caused
by the extra allocations to hold the strings. These allocations
are unnecessary.
Fix the MCA registration modeling it after the common/ofi component.
bot:notacherrypick