-
Notifications
You must be signed in to change notification settings - Fork 649
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
@grpc/grpc-js: Closing Stream After Unary Call Triggers Double Free #1464
Comments
That is definitely a bug in Node itself. You have more information about how you triggered the bug and your environment, so you should file an issue in that repository (https://github.com/nodejs/node), and link to it from here. I suggest that when you do, you share the error information in the form of text so that it's easier to interact with. |
Is there any update on this? I think I've encountered the same issue, still trying to figure out how to deal with it. |
Wrapping the |
@murgatroid99 built a small repro case for this issue and opened a ticket against https://github.com/nodejs/node as suggested. |
nodejs/node#38964. I'll investigate it. |
|
Great, okay, it like it's definitely a bug in node core. Track nodejs/node#38964 for updates :) |
Linking for reference 🎉 nodejs/node#39076 — thank you @mdouglass!! |
This is a workaround for grpc/grpc-node#1464 which is a bug were canceling the stream just before closeing the gRPC connection causes a segfault.
This is a workaround for grpc/grpc-node#1464 which is a bug were canceling the stream just before closeing the gRPC connection causes a segfault.
This is a workaround for grpc/grpc-node#1464 which is a bug were canceling the stream just before closeing the gRPC connection causes a segfault.
This is a Node bug and it appears to have been fixed in Node. |
Problem description
Attempting to close the client's connections to a server after making a single unary call triggers a panic in Node (this may actually be a bug in Node, it's not clear to me).
Reproduction steps
I have a client class that manages a couple gRPC streams (
_events
and_tunnelStream
) that are open for the lifetime of the client class. The client also makes unary calls. After making any number of unary calls (1 or more), and attempting to disconnect with the function below triggers a double free what appears to be the NodeJS HTTP/2 library:Environment
@grpc/grpc-js ^1.0.3
Screenshots
The text was updated successfully, but these errors were encountered: