Skip to content

Commit

Permalink
nnshah1 stream infer segfault fix (#5842)
Browse files Browse the repository at this point in the history
match logic from infer_handler.cc
  • Loading branch information
nnshah1 authored May 23, 2023
1 parent c1ad1bf commit aeccc45
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/grpc/stream_infer_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,11 @@ ModelStreamInferHandler::Process(InferHandler::State* state, bool rpc_ok)
}
// Get request ID for logging in case of error.
const char* request_id = "";
LOG_TRITONSERVER_ERROR(
TRITONSERVER_InferenceRequestId(irequest, &request_id),
"unable to retrieve request ID string");
if (irequest != nullptr) {
LOG_TRITONSERVER_ERROR(
TRITONSERVER_InferenceRequestId(irequest, &request_id),
"unable to retrieve request ID string");
}
if (!strncmp(request_id, "", 1)) {
request_id = "<id_unknown>";
}
Expand Down

0 comments on commit aeccc45

Please sign in to comment.