Skip to content

Commit 67c78c6

Browse files
committed
pmix/external: Fix memory corruption
Corresponds to PR #2981 This bug introduced in PR #2885. The status variable of waiting was not activated it leads to early release of the callback data and memory corruption. Signed-off-by: Boris Karasev <[email protected]> (cherry picked from commit 179abe4)
1 parent c6c70e7 commit 67c78c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opal/mca/pmix/external/pmix_ext_server_south.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
44
* Copyright (c) 2014-2017 Research Organization for Information Science
55
* and Technology (RIST). All rights reserved.
6-
* Copyright (c) 2014 Mellanox Technologies, Inc.
6+
* Copyright (c) 2014-2017 Mellanox Technologies, Inc.
77
* All rights reserved.
88
* $COPYRIGHT$
99
*
@@ -255,6 +255,7 @@ int pmix_ext_server_register_nspace(opal_jobid_t jobid,
255255
op.sz = sz;
256256
op.opcbfunc = cbfunc;
257257
op.cbdata = cbdata;
258+
op.active = true;
258259
rc = PMIx_server_register_nspace(nspace, nlocalprocs, pinfo, sz,
259260
opcbfunc, &op);
260261
if (PMIX_SUCCESS == rc) {

0 commit comments

Comments
 (0)