Commit 4d435f8c authored by Nysal Jan K.A's avatar Nysal Jan K.A Committed by Michael Blocksome
Browse files

Initialize the dbg_next field of the mpi request



Fixes a crash in finalize when --enable-debuginfo is set

(ibm) D193788
Signed-off-by: default avatarMichael Blocksome <blocksom@us.ibm.com>
parent 6d524b90
......@@ -135,6 +135,11 @@ void MPIDI_Request_allocate_pool();
#endif
#ifdef HAVE_DEBUGGER_SUPPORT
#define MPIDI_Request_clear_dbg(req_) ((req_)->dbg_next = NULL)
#else
#define MPIDI_Request_clear_dbg(req_)
#endif
/**
* \brief Create a very generic request
......@@ -157,6 +162,7 @@ MPIDI_Request_create_basic()
memset(&req->mpid, 0xFFFFFFFF, sizeof(struct MPIDI_Request));
#endif
req->mpid.next = NULL;
MPIDI_Request_clear_dbg(req);
return req;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment