[mpich] MPICH primary repository branch, master, updated. v3.2a2-113-g7d59d14
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "MPICH primary repository". The branch, master has been updated via 7d59d14dd74072037b0daaa67612836974c0ff2b (commit) from 4be54219b7cb132bc2de3b0c1323211fe1718fb1 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://git.mpich.org/mpich.git/commitdiff/7d59d14dd74072037b0daaa67612836974... commit 7d59d14dd74072037b0daaa67612836974c0ff2b Author: Su Huang <[email protected]> Date: Fri Jan 16 14:55:16 2015 -0500 PAMID:MP_STATISTICS=print will cause mpi hw case coredump The segfault was caused by the library trying to free an already freed mpid_statp structure. The structure is freed right after the status information is printed. To fix the problem, the mpid_statp is set to NULL after the free is done. (ibm) D202018 Signed-off-by: Sameh Sharkawi <[email protected]> diff --git a/src/mpid/pamid/src/mpidi_util.c b/src/mpid/pamid/src/mpidi_util.c index 8217ade..774e786 100644 --- a/src/mpid/pamid/src/mpidi_util.c +++ b/src/mpid/pamid/src/mpidi_util.c @@ -800,10 +800,16 @@ void MPIDI_print_statistics() { (MPIDI_Process.mp_printenv)) { if (MPIDI_Process.mp_statistics) { MPIDI_Statistics_write(stdout); - if (mpid_statp) MPIU_Free(mpid_statp); + if (mpid_statp) { + MPIU_Free(mpid_statp); + mpid_statp=NULL; + } } if (MPIDI_Process.mp_printenv) { - if (mpich_env) MPIU_Free(mpich_env); + if (mpich_env) { + MPIU_Free(mpich_env); + mpich_env=NULL; + } } } } ----------------------------------------------------------------------- Summary of changes: src/mpid/pamid/src/mpidi_util.c | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) hooks/post-receive -- MPICH primary repository
participants (1)
-
noreply@mpich.org