You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you call the Consumer constructor with no parameters, python segfaults.
Python 3.5.2 (default, Aug 16 2016, 08:16:10)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import confluent_kafka
>>> c = confluent_kafka.Consumer()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: expected configuration dict
Fatal Python error: take_gil: NULL tstate
[1] 68631 abort (core dumped) python
Note, that this only happens if there are strictly no parameters. Simply changing the constructor call to Consumer(**{}) avoids the crash.
Python 3.5.2 (default, Aug 16 2016, 08:16:10)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import confluent_kafka
>>> c = confluent_kafka.Consumer(**{})
>>>
The text was updated successfully, but these errors were encountered:
Interesting - I never actually tried this in a script. I was playing with it in the REPL to get a feeling for the minimal constructor while playing around with mocking out Consumer for unit tests.
If you call the Consumer constructor with no parameters, python segfaults.
Note, that this only happens if there are strictly no parameters. Simply changing the constructor call to
Consumer(**{})
avoids the crash.The text was updated successfully, but these errors were encountered: