File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,16 @@ static inline mca_pml_ob1_comm_proc_t *mca_pml_ob1_peer_lookup (struct ompi_comm
82
82
{
83
83
mca_pml_ob1_comm_t * pml_comm = (mca_pml_ob1_comm_t * )comm -> c_pml_comm ;
84
84
85
+ /**
86
+ * We have very few ways to validate the correct, and collective, creation of
87
+ * the communicator, and ensure all processes have the same cid. The least we
88
+ * can do is to check that we are not using a rank that is outside the scope
89
+ * of the communicator.
90
+ */
91
+ if ( OPAL_UNLIKELY (rank >= (int )pml_comm -> num_procs ) ) {
92
+ ompi_rte_abort (-1 , "PML OB1 received a message from a rank outside the"
93
+ " valid range of the communicator. Please submit a bug request!" );
94
+ }
85
95
if (OPAL_UNLIKELY (NULL == pml_comm -> procs [rank ])) {
86
96
OPAL_THREAD_LOCK (& pml_comm -> proc_lock );
87
97
if (NULL == pml_comm -> procs [rank ]) {
You can’t perform that action at this time.
0 commit comments