-
Notifications
You must be signed in to change notification settings - Fork 6
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
consumer segfaulting when connecting to test.gcn.nasa.gov #17
Comments
tried on a linux box as well, same result, with gdb output; Thread 1 "python" received signal SIGSEGV, Segmentation fault. HTH |
This is due to a known issue in the latest version of librdkafka/confluent-kafka-python: confluentinc/librdkafka#4245 As a workaround, install the previous version of confluent-kafka:
|
Work around a segfault that was introduced in librdkafka/confluent-kafka-python 2.1.0 by disallowing that version as a dependency. See confluentinc/librdkafka#4245. Fixes nasa-gcn#17.
Work around a segfault that was introduced in librdkafka/confluent-kafka-python 2.1.0 by disallowing that version as a dependency. See confluentinc/librdkafka#4245. Fixes #17.
@blaufuss, as an alternative workaround, you can just update to the latest version of gcn-kafka-python:
|
Thanks fixed the seg faults. |
Hi
Was trying to listen in on some testing messages I'm trying to generate and send from icecube.* but am having trouble with simply listening to the test instance.
This code
consumer = Consumer(client_id='XXX',
client_secret='XXX',
domain='test.gcn.nasa.gov')
Subscribe to topics and receive alerts
consumer.subscribe(['gcn.classic.text.ICECUBE_ASTROTRACK_BRONZE',
'gcn.classic.text.ICECUBE_ASTROTRACK_GOLD',
'gcn.classic.text.ICECUBE_CASCADE'])
while True:
for message in consumer.consume(timeout=1):
value = message.value()
print(value)
(when using credentials from test.gcn.nasa.gov)
segfaults (backtrace attached)
Similar code, without the "domain" setting and client_* from gcn.nasa.gov has worked fine
This is gcn-kafka 0.3.0, using Homebrew python (Mac OS 13.3.1,Python 3.11.3)
Anything I'm doing wrong?
gcn_kafka_crash.txt
The text was updated successfully, but these errors were encountered: