Closed philip-davis closed 6 years ago
We use peer after freeing peer here. I generally suspect this block is broken, but this code is only used if we don't have MPI.
if(check_cp[peer->ptlmap.id] == 1 && dc->comm == NULL) { count = 0; do { // printf("SYS connect %d %d\n",dc->rpc_s->ptlmap.id,peer->ptlmap.id); err = sys_connect(dc->rpc_s, peer); count++; } while(count < 3 && err != 0); if(err != 0) { printf("sys_connect err %d in %s.\n", err, __func__); goto err_out; } } }
We use peer after freeing peer here. I generally suspect this block is broken, but this code is only used if we don't have MPI.