philip-davis / dataspaces

Git Home of the RDI2 DataSpaces Project
BSD 2-Clause "Simplified" License
4 stars 1 forks source link

Infiniband dc_boot() bug #40

Closed philip-davis closed 6 years ago

philip-davis commented 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;
            }
        }
    }