-
Notifications
You must be signed in to change notification settings - Fork 905
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
SIGSEGV on program exit when RD_KAFKA_RESP_ERR__REVOKE_PARTITIONS #265
Comments
👍 for gdb backtrace! It looks like the garbage collector kicks in, triggering Consumer deallocation and an implicit consumer close(), that in turn triggers the on_revoke callback, which expects to have been triggered from a call to poll() or close() that sets up the thread state, but no such luck. This is a bug in the client which we'll fix, but in the meantime I suggest that you explicitly close() the consumer before letting the GC delete it. |
I just tried making a simple reproduction and you are right. If I make sure to have |
I can't reproduce this on Python 2.7.14:
What Python version are you on? |
3.6 :-) |
Thanks, still no reproduction on Python 3.6 with librdkafka master. |
We are running with git clone --branch v0.11.0 https://github.com/edenhill/librdkafka.git |
Nope, still nothing. |
Are you running latest confluent-kafka-python from master? |
|
Except for the typo (comit vs commit in consumer.py) the repro in the docker-compose still works:
|
It doesn't seem to SIGSEGV/core though, right? |
I'm not sure about the translation of the return codes via docker/docker-compose with regards to signals etc. but a core file appears which is what i use for the gdb tracing |
Is this reproducible with librdkafka v0.11.4 and confluent-kafka-python v0.11.4? (use latest binary wheel) |
Description
I have an app that throws an exception following a consumer.poll before commit. In turn my python program ends with SIGSEGV and a core dump. Here's the output from gdb:
How to reproduce
https://gist.github.com/sbv-siteimprove/90965a8b16e9f542f3fe3aa0f01355e0
Checklist
Please provide the following information:
confluent_kafka.version()
andconfluent_kafka.libversion()
):wurstmeister/kafka:0.11.0.1 docker image
{...}
Operating system:
debian jessie
Provide client logs (with
'debug': '..'
as necessary)I'm not sure how to
Provide broker log excerpts
[2017-10-16 14:44:13,870] INFO [GroupCoordinator 1001]: Member rdkafka-bcb360c4-e259-4b8b-9329-1d589e626d7a in group somethinghere has failed, removing it from the group (kafka.coordinator.group.GroupCoordinator)
[2017-10-16 14:44:13,870] INFO [GroupCoordinator 1001]: Preparing to rebalance group somethinghere with old generation 1 (__consumer_offsets-42) (kafka.coordinator.group.GroupCoordinator)
[2017-10-16 14:44:13,871] INFO [GroupCoordinator 1001]: Group somethinghere with generation 2 is now empty (__consumer_offsets-42) (kafka.coordinator.group.GroupCoordinator)
Critical issue
The text was updated successfully, but these errors were encountered: