<div dir="ltr">Hello,<div><br></div><div>Using MPICH 3.2, I get the following from Valgrind:</div><div><br></div><div><div>==80605== Conditional jump or move depends on uninitialised value(s)</div><div>==80605==    at 0x100198C14: MPIC_Waitall (mpiimpl.h:4394)</div><div>==80605==    by 0x100061D82: MPI_Dist_graph_create (dist_gr_create.c:380)</div><div>==80605==    by 0x100000EC5: main (uninit.c:21)</div><div>==80605==  Uninitialised value was created by a stack allocation</div><div>==80605==    at 0x100198ADD: MPIC_Waitall (helper_fns.c:735)</div></div><div><br></div><div>When I run this program with 2 ranks:</div><div><div><br></div><div>int main(int argc, char** argv)</div><div>{</div><div>  MPI_Init(&argc, &argv);</div><div>  int n[2] = {1,1};</div><div>  int sources[2] = {0,1};</div><div>  int degrees[2] = {0,2};</div><div>  int destinations_1[2] = {0,1};</div><div>  int* destinations[2] = {0, destinations_1};</div><div>  int weights_1[2] = {1,1};</div><div>  int* weights[2] = {0, weights_1};</div><div>  int rank;</div><div>  MPI_Comm_rank(MPI_COMM_WORLD, &rank);</div><div>  MPI_Comm new_comm;</div><div>  MPI_Dist_graph_create(MPI_COMM_WORLD, n[rank], &sources[rank],</div><div>      &degrees[rank], destinations[rank], weights[rank],</div><div>      MPI_INFO_NULL, 0, &new_comm);</div><div>  MPI_Comm_free(&new_comm);</div><div>  MPI_Finalize();</div><div>}</div></div><div><br></div><div>It seems to come from the status_static_array at</div><div>src/mpi/coll/helper_fns.c:740<br></div><div><br></div><div>It looks like status->MPI_SOURCE, when checked by MPIR_Process_status at</div><div>src/include/mpiimpl.h:4394<br></div><div>might not be initialized by MPIR_Waitall_impl</div><div>(I checked the other things used in that if statement and I'm</div><div>pretty sure its MPI_SOURCE).</div><div>I had a hard time tracing through the code further than that though.</div><div><br></div><div>I just switched from MPICH 3.1.4 and this didn't show up in that version.</div><div>I tend to like MPICH for its lack of Valgrind issues,</div><div>so let me know how I can help get this fixed.</div><div><br></div><div>Thank you,</div></div>