Skip to content
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

Producer segfaults with request.required.acks=0 #75

Closed
mteodoro opened this issue Feb 7, 2014 · 1 comment
Closed

Producer segfaults with request.required.acks=0 #75

mteodoro opened this issue Feb 7, 2014 · 1 comment
Labels

Comments

@mteodoro
Copy link

mteodoro commented Feb 7, 2014

We recently updated our version of librdkafka and noticed that producers are segfaulting when request.required.acks is set to 0. I was able to reproduce this with rdkafka_example:

$ echo testdata | ./examples/rdkafka_example -P -t test -X topic.request.required.acks=0
Segmentation fault (core dumped)

It looks like rd_kafka_produce_reply_handle is being called with an NULL reply:

rd_kafka_produce_msgset_reply (rkb=0x7ffff0001ca0, err=RD_KAFKA_RESP_ERR_NO_ERROR, reply=0x0, 
    request=0x7fffe8000aa0, opaque=0x7ffff0002320) at rdkafka_broker.c:1584
1584                    err = rd_kafka_produce_reply_handle(rkb, reply);

Git bisect makes it look like this was introduced in a52f585.

librdkafka has been a pleasure to use so far, thanks for all the work!

edenhill added a commit that referenced this issue Feb 8, 2014
For example when required.acks is set to 0 there is no reply
and thus no reply message in the reply handler.
@edenhill
Copy link
Contributor

edenhill commented Feb 8, 2014

Thanks for reporting this!
It's now been fixed in master and a matching regression test has been implemented.

Glad to hear you are happy with rdkafka, let me know if you want to get added to the list of users in the README file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants