Closed JasonThon closed 2 years ago
I tried your failed service and didn't reproduced. I have a few questions:
Is the bug reproduced constantly? If the port is changed to the same as the successful one, does the bug still occur? Are these two services running in one process?
Note, 0.12.0 is released, you can also give it a try.
I tried your failed service and didn't reproduced. I have a few questions:
Is the bug reproduced constantly? If the port is changed to the same as the successful one, does the bug still occur? Are these two services running in one process?
The error should occur when the string_view is converted to string in URI::PercentDecode
. It somehow starts from an invalid offset and with an invalid length.
The error should occur when the string_view is converted to string in
URI::PercentDecode
. It somehow starts from an invalid offset and with an invalid length.
There two things I think you want to know:
So seems like this bug is somewhat related to different Mac's environment settings or chip?
Looks like it's caused by different hardware envs. I will close this issue for now. thank you so much~
Problem Description
My project has two different services but with the same
grpc-rs
dependency. However, one can start normally and the other failed; The exception message is simple:[1] 11810 segmentation fault cargo run --manifest-path src/worker/Cargo.toml
When I debug deeply, I found a strange phenomenon:
This screenshot is for the normally started service, you can see on the top left, the
parsed_addr
variable is equal toaddr
, seemingly.This screenshot is for the failed service, you can see on the top left, the
parsed_addr
variable is an unexpected value.Code Difference
Normally start service grpc binding code
Failed start service grpc binding code
You can see their binding configurations are the same;
Dependencies
The two projects dependencies are the followings
Normally start service dependencies
Failed start service dependencies
The common module dependencies
The proto module dependencies
The stream module dependencies
Expected behavior
I think for the same binding configuration, the
parsed_addr
should be expected to be equal toaddr
.System information
Another context
I use Visual Studio Code for debug, with latest CodeLLDB and rust-analysor extensions