-
Notifications
You must be signed in to change notification settings - Fork 291
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
Segfault in NativeClient::rebalance_protocol
#416
Comments
Oy, yeah, looks like that's how it signals errors. |
Would you be up for submitting a PR? |
Sure, coming right up. |
We are seeing a sporadic segfault when handling rebalance events in our kafka client. I have traced this down to a null pointer being passed to
CStr::from_ptr
. It appears thatrdsys::rd_kafka_rebalance_protocol
can return a null pointer in some circumstances and the Rust library doesn't handle that. I have worked around it by returningRebalanceProtocol::None
when this happens, but I don't know if there is a better solution or a deeper underlying problem.The text was updated successfully, but these errors were encountered: