Skip to content

Initializing producer throws segfault #1728

@asas1235066

Description

@asas1235066

Description

Confluent-kafka-python will exit with an error when running in the twisted framework.

I found that using version 1.9.2 can run in the twisted framework, but versions after 2.0.2 will throw an exception.

The stack information is as follows:
17129008166569

Can you help me find the cause and suggest a fix?

How to reproduce

from confluent_kafka import Producer
from twisted.internet import reactor
from twisted.internet.threads import deferToThread


def instantiate_producer():
    producer_config = {
        'bootstrap.servers': ['127.0.0.1:9092'],
    }
    Producer(producer_config)


def handle_result(*args):
    reactor.stop()


d = deferToThread(instantiate_producer)
d.addCallback(handle_result)
reactor.run()

Dependent environment is as follows:
os Centos7.6
Python 3.7.4
Twisted 19.7.0
confluent-kafka 2.3.0
Kafka 2.4.1

Checklist

Please provide the following information:

  • confluent-kafka-python and librdkafka version (confluent_kafka.version() and confluent_kafka.libversion()):
  • Apache Kafka broker version:
  • Client configuration: {...}
  • Operating system: Centos7.6
  • Provide client logs (with 'debug': '..' as necessary)
  • Provide broker log excerpts
  • Critical issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    investigate furtherIt's unclear what the issue is at this time but there is enough interest to look into it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy