Skip to content

Commit

Permalink
fix core dump issue when disable HAVE_IBV_WR_API
Browse files Browse the repository at this point in the history
when using rdma-core-v44, and compile perftest with "configure --disable-ibv_wr_api", a core dump will ocur while ctx->dci_stream_id[i]  is not allocted but assigned 0.
  • Loading branch information
tianx666 authored Dec 27, 2024
1 parent 45f9f32 commit 72bf8de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/perftest_resources.c
Original file line number Diff line number Diff line change
Expand Up @@ -2157,9 +2157,11 @@ int ctx_init(struct pingpong_context *ctx, struct perftest_parameters *user_para
if (user_param->work_rdma_cm == OFF) {
modify_qp_to_init(ctx, user_param, i);
}
#ifdef HAVE_IBV_WR_API
#ifdef HAVE_DCS
ctx->dci_stream_id[i] = 0;
#endif
#endif
qp_index++;
}

Expand Down

0 comments on commit 72bf8de

Please sign in to comment.