-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
client consume from kafka crushed occasionally #254
Comments
Which version of librdkafka is this? Can you share your code for your consume callback? Thanks |
0.8.5, the g_conf.run is a global variable. I use it to stop rkt outside kafkacli_consume which calls rd_kafka_consume_callback
|
Looks okay. |
I will try it! But I'm not sure when this bug will appear again. Thx for reply:) |
Also, would it be possible to try out the latest master version? |
Not sure. I can update my librdkafka first. |
another type coredump(most coredump files are the two types): (gdb) bt (gdb) p *rko |
Any luck with valgrind? |
Is still happening? |
I used valgrind and run the program for 2 weeks, it did not crash anymore. Without valgrind, it crashed again. very strange! |
With valgrind and such tools there is no need to crash - can you add the valgrind output file? I think it might be multi-threading related. Try also running it with Helgrind instead of valgrind. |
Did you capture the log output from valgrind? |
Reopen if reseen |
I also have this issue |
@chriscrenshaw Which librdkafka version are you on? Do you have a gdb stack trace? |
my problem solved. Sorry it is my own mistake |
I use librdkafka to consume messages from kafka. But there will be a coredump every 2 or 3 days. Here is the stack from one of the coredump files. I dont have any idea now from these information.
(gdb) bt
#0 0x0000003dbae784aa in _int_free () from /lib64/libc.so.6
#1 0x00007fb46f5b0cb4 in rd_kafka_q_serve (rkq=0x9ae848, timeout_ms=, callback=0x7fb46f5b1f00 <rd_kafka_consume_cb>,
#2 0x00007fb46f5b0da4 in rd_kafka_consume_callback0 (rkt=0x9ae170, partition=0, timeout_ms=1000, consume_cb=0x405688 <msg_consume>, opaque=0x0)
#3 rd_kafka_consume_callback (rkt=0x9ae170, partition=0, timeout_ms=1000, consume_cb=0x405688 <msg_consume>, opaque=0x0) at rdkafka.c:1508
#4 0x0000000000407ad9 in kafkacli_consume (index=0, offset=42192633) at kafkacli.c:1774
#5 0x0000000000404918 in main (argc=3, argv=0x7fff80a3fb98) at consumer.c:601
The text was updated successfully, but these errors were encountered: