Skip to content

Segmentation fault on rd_kafka_destroy and rd_kafka_consumer_poll #229

@joshuay03

Description

@joshuay03

Hello, we ran into some segfaults in production at @buildkite.

When this first happened, we were running:

karafka (2.5.0)
karafka-core (2.5.2)
karafka-rdkafka (0.19.5)

and our base image was: ruby:3.4.5-slim-bookworm@sha256:f89ae2834adb08a456be48ac9d7582230e23bfb7cb84b1ff014b206426a20570.

Stack trace: buildkite_karafka_segfault_1.txt

We thought it might have something to do with the recently reported issues with OpenSSL 3.0.17, which we found we were running in our final production image. So, we decided to bump karafka-rdkafka to use the newly released precompiled binaries, which are compiled against OpenSSL 3.0.16. We are now running:

karafka (2.5.0)
karafka-core (2.5.5)
karafka-rdkafka (0.20.1-x86_64-linux-gnu)

However, with these versions we run into a different segfault.

Stack trace: buildkite_karafka_segfault_2.txt

Please let me know if you need any further information to assist with debugging.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions