-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault: 11 #280
Comments
Stupid question, but did you try rebooting? |
Yes : ) it was so unexpected for me that the standard code template does not work, that I tried it in month ago, and then I cloned swift-grpc yesterday and tried test echo example again - same result: run server, wait ~30 minutes, send request, sigmentation error My Mac: |
The same thing on iOS server. |
@woodcrust @maznikoff Here is my mac environment.
|
@tikidunpon I will make video from quicktime, I think this should be better variant for demonstration this mistake $ swift --version $ xcodebuild -version |
I've run server on iOS device and after 15 mins of inactivity got it. The issue can be reproduced on iOS 11.x and 12.x using Xcode 9.4/10.x
|
@MrMage @maznikoff @tikidunpon @timburks @haberman |
@woodcrust
and this document also helpful. https://github.com/grpc/grpc/blob/master/doc/environment_variables.md |
I have the same problem. This workaround will fix that. But no idea to fix completely. |
I have the same problem. This workaround will fix that. But no idea to fix completely. |
Closing this now; please open a new issue if the issue persists in Swift gRPC 0.9.0. |
Just FYI still happens in v0.10.0 |
I went down the rabbit hole abit yesterday, It looks like when the timeout event is received you are you just continuing the "spinloop" but it seems that the core is destorying the underlyingCompletionQueue I couldnt find any documentation on how gRPC should handle the timeout event, so either you can have the server end running or you can spin up a new server. In my opinion the server should stop and the developer should be able to decide what they want to do, either re-run the server etcc... |
That makes sense as the cause of the error; I just don't understand why gRPC destroys the queue upon that timeout — that one doesn't make sense to me. Maybe we should look into e.g. the C++ or Python libraries built on top of gRPC-Core to see how they handle this; maybe a search for the corresponding "wait for event" function could help. |
From thread_manager.cc ` ` |
I am about to fix this in #630. |
Hi! I don't know english...
Bug:
server
client
Olehs-MacBook-Pro:grpc-swift nerzh$ ./.build/x86_64-apple-macosx10.10/debug/Echo get calling get get sending: Testing 1 2 3 get received: Swift echo get: Testing 1 2 3 Olehs-MacBook-Pro:grpc-swift nerzh$ ./.build/x86_64-apple-macosx10.10/debug/Echo get calling get get sending: Testing 1 2 3 Unknown error occurred.
I repeat this test five times and get the same result: wait some time ~15-30 minutes, send request with
./.build/x86_64-apple-macosx10.10/debug/Echo get
or another like./.build/x86_64-apple-macosx10.10/debug/Echo update
etc and get Segmentation fault: 11If run server in Xcode :
Why ? What I am doing wrong ?
The text was updated successfully, but these errors were encountered: