-
Notifications
You must be signed in to change notification settings - Fork 931
fix memory leaks and valgrind errors #520
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
|
Now running valgrind clean for a simple program executing: Probably bound for 1.8 if @rhc54 approves. |
|
|
Refer to this link for build results (access rights to CI server needed): Build Log Test FAILed. |
This commit fixes several vagrind errors. Included: - installdirs did not correctly reinitialize all pointers to NULL at close. This causes valgrind errors on a subsequent call to opal_init_tool. - several opal strings were leaked by opal_deregister_params which was setting them to NULL instead of letting them be freed by the MCA variable system. - move opal_net_init to AFTER the variable system is initialized and opal's MCA variables have been registered. opal_net_init uses a variable registered by opal_register_params! - do not leak ompi_mpi_main_thread when it is allocated by MPI_T_init_thread. - do not overwrite ompi_mpi_main_thread if it is already set (by MPI_T_init_thread). - mca_base_var: read_files was overwritting mca_base_var_file_list even if it was non-NULL. - mca_base_var: set all file global variables to initial states on finalize. - btl/vader: decrement enumerator reference count to ensure that it is freed. Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
d9c690f to
a7b0c00
Compare
|
|
Refer to this link for build results (access rights to CI server needed): |
fix memory leaks and valgrind errors
|
bot:retest |
|
…-map yalla: fix passing on-demand mapping config to mxm.
safety valve for callbacks
This commit fixes several vagrind errors. Included:
at close. This causes valgrind errors on a subsequent call to
opal_init_tool.
was setting them to NULL instead of letting them be freed by the
MCA variable system.
opal's MCA variables have been registered. opal_net_init uses a
variable registered by opal_register_params!
MPI_T_init_thread.
MPI_T_init_thread).
even if it was non-NULL.
finalize.
is freed.
Signed-off-by: Nathan Hjelm hjelmn@lanl.gov