tag_ub_p must be checked before assignment
I am getting segmentation fault at line 51 of file: chameleon/runtime/starpu/control/runtime_descriptor.c
:
48 #if defined(HAVE_STARPU_MPI_COMM_GET_ATTR)
49 int64_t *tag_ub_p = NULL;
50 starpu_mpi_comm_get_attr(MPI_COMM_WORLD, STARPU_MPI_TAG_UB, &tag_ub_p, &ok);
51 tag_ub = *tag_ub_p;
52 #else
53 int *tag_ub_p = NULL;
54 MPI_Comm_get_attr(MPI_COMM_WORLD, MPI_TAG_UB, &tag_ub_p, &ok);
55 tag_ub = *tag_ub_p;
56 #endif
I think tag_ub_p
must be checked before it is assigned.