tvm icon indicating copy to clipboard operation
tvm copied to clipboard

[Bug] [CPP RPC] custom_addr not properly quoted in JSON string

Open lhez opened this issue 5 years ago • 4 comments

I happened to need custom_addr option in cpp rpc. However, custom_addr_ does not seem properly quoted in the JSON string that is sent to the tracker, resulting in JSON parsing failure in the tracker.

In particular, there are 3 occurrences in apps/cpp_rpc/rpc_tracker_client.h - line 88, line 116 and line 168.

lhez avatar Oct 01 '21 06:10 lhez

thanks for reporting @lhez, @rkimball will take a look

areusch avatar Oct 04 '21 18:10 areusch

You are correct. We need to add \" around the custom_addr since it is a string.

rkimball avatar Oct 04 '21 18:10 rkimball

Here is a quick fix https://github.com/apache/tvm/pull/9192

rkimball avatar Oct 04 '21 19:10 rkimball

@lhez please feel free to re-open if this is not fixed.

areusch avatar Oct 11 '21 22:10 areusch