-
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
I meet the core ,use librdkafka-0.8.6.zip and Linux version 2.6.32, gcc version 4.8.2 #415
Comments
Are you getting this after destroying a Kafka handle? |
Can do this in gdb?
|
not destroy , when i get the core , it is running, ok, wait for a moment |
Program terminated with signal 11, Segmentation fault. |
when init, I did follows: // because there is 12 partition, so I start 12 partid when run, i did: if I use with some wrong? |
I can recieve msg, but when run for a while, I meet the problem. it seems a kafka broker down or some other problems caused. |
How did you set up _conf? |
set up _conf as follows: |
class ExampleEventCb : public RdKafka::EventCb { |
by the way, when meet net error or other error, need i restart the consumer? what error need to restart and how? thank you~! |
I'm guessing your EventCb is stack allocated and goes out of scope. |
You do not need to take any action when broker connection goes down, librdkafka will reconnect automatically. |
Program terminated with signal 11, Segmentation fault.
#0 0x00000000004c61d9 in RdKafka::log_cb_trampoline (rk=, level=3, fac=,
55 handle->event_cb_->event_cb(event);
(gdb) bt
#0 0x00000000004c61d9 in RdKafka::log_cb_trampoline (rk=, level=3, fac=,
#1 0x00000000004c7f69 in rd_kafka_log0 (rk=0x22be000, extra=extra@entry=0x0, level=level@entry=3, fac=fac@entry=0x6950ac "FAIL", fmt=fmt@entry=0x6951d5 "%s")
#2 0x00000000004d58ce in rd_kafka_broker_fail (rkb=rkb@entry=0x2391800, err=RD_KAFKA_RESP_ERR__TRANSPORT, fmt=fmt@entry=0x69511d "Receive failed: %s")
#3 0x00000000004d5fe7 in rd_kafka_recv (rkb=rkb@entry=0x2391800) at rdkafka_broker.c:1519
#4 0x00000000004d6888 in rd_kafka_broker_io_serve (rkb=rkb@entry=0x2391800) at rdkafka_broker.c:2452
#5 0x00000000004d7103 in rd_kafka_broker_consumer_serve (rkb=0x2391800) at rdkafka_broker.c:4105
#6 rd_kafka_broker_thread_main (arg=) at rdkafka_broker.c:4154
#7 0x00007ff5a07b71c3 in ?? ()
#8 0x0000000000000000 in ?? ()
The text was updated successfully, but these errors were encountered: