-
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
multiple call of rd_kafka_new() from threads #2317
Comments
Should be fine, librdkafka's test suite instantiates multiple rd_kafka_t instances from multiple threads. Use valgrind or asan to figure out what is wrong. |
Hi, I tried it with the sample example. here is the log of Valgrind ( I never used valgrind before. pardon me if I did something wrong)
|
For some reason valgrind doesn't show the stacktrace of the crash. How about you run the program as usual and have it generate a core file, then open that corefile in gdb and print the backtrace from there instead, might give you some ideas what is wrong. |
Thank you! I increased ulimit, now it creates a core file.
|
That's the libc allocator failing, which is usually indication of user-after-free or memory corruption. |
Description
Hi @edenhill
I am calling rd_kafka_new() from multiple threads, does it create any problem from internal implementation point of view??
currently, my main application is getting crashed at the call of rd_kafka_new().
the crash may not be relevant to librdkafka
logs
Checklist
IMPORTANT: We will close issues where the checklist has not been completed.
Please provide the following information:
1.0.0
1.1.1
edit librdkafka.properties and set following properties with ';' separated metadata.broker.list=SASL_SSL://BROKER_FQDN:PORT builtin.features=sasl_gssapi security.protocol=sasl_ssl sasl.mechanisms=GSSAPI sasl.kerberos.service.name=(KAFKASERVICE) sasl.kerberos.principal=(KAFKASERVICE)/(BROKER_FQDN)@(REALM_FQDN) sasl.kerberos.keytab=(FULL_PATH_NAME)/certs/stratusoft1.keytab ssl.ca.location=(FULL_PATH_NAME)/certs/ca-cert ssl.certificate.location=(FULL_PATH_NAME)/certs/rdclient.pem ssl.key.location=(FULL_PATH_NAME)/certs/rdclient.key ssl.key.password=YOUR_PASSWORD
Linux like
debug=..
as necessary) from librdkafkaThe text was updated successfully, but these errors were encountered: