Repository navigation
Patch librdkafka NULL cgrp crash and confluent-kafka metadata over-read - #25483
Conversation
|
Wheels promoted to stable storage for commit
Full process: Dependency Updates. |
This comment has been minimized.
This comment has been minimized.
evalya-impact-summaryevalya impact analysis |
Disk usage changeCommit Uncompressed
Details
Compressed
Details
|
…tfetch-null-cgrp Resolve the .deps/ conflicts by taking master's version. Those files are generated by the resolve-build-deps workflow, which re-resolves them for the merged builder inputs after the next push. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
More details
The guard prevents the OffsetFetch error handler from dereferencing a missing consumer group while retaining coordinator refresh for consumer clients. Native builds and crash reproduction remain unverified.
🤖 Bits Code Review · Commit 4c08b13
…tfetch-null-cgrp # Conflicts: # .deps/builder_inputs.toml # .deps/image_digests.json # .deps/resolved/linux-aarch64_3.13.txt # .deps/resolved/linux-x86_64_3.13.txt # .deps/resolved/macos-aarch64_3.13.txt # .deps/resolved/macos-x86_64_3.13.txt # .deps/resolved/windows-x86_64_3.13.txt
Co-authored-by: Cursor <cursoragent@cursor.com>
Validation ReportAll 22 validations passed. Show details
|
|
Backport evaluation: View Slack thread |
What does this PR do?
Fixes two independent kafka_consumer crashes in the wheels the builders produce. Both change the same builder scripts, so they're combined here to rebuild and promote the wheels once.
librdkafka-fix-offsetfetch-null-cgrp.patch, a backport of upstream admin: fix ListConsumerGroupOffsets crash without a consumer group confluentinc/librdkafka#5611, on every builder platform and in the kafka_consumer CI install script. When a broker answers OffsetFetch with a coordinator error, librdkafka callsrd_kafka_cgrp_opon the AdminClient's NULLrk_cgrpand reads address0x58onrdk:main.confluent-kafka-fix-metadata-overread.patch, soTopicPartition_setupcopiesmetadata_sizebytes instead of callingstrdup(). librdkafka returns commit metadata without a NUL terminator, sostrdupreads past the buffer onrdk:bg, and under jemalloc the read can reach an unmapped page. This is Patch confluent-kafka to stop reading commit metadata past its end #25702 by @alexeypilyugin, included with his commit.The dependency-resolution bot regenerates
.deps/after the push, and the wheels needddev dep promotebefore merge.Motivation
Node Agents running kafka_consumer exit with code 139 and no Go trace (DataDog/datadog-agent#44442). Core dumps from internal cluster show both signatures:
strlen←strdup←c_part_to_pyonrdk:bg, and a read of0x58inside librdkafka onrdk:main.Each fix was verified on its own:
NOT_COORDINATORcrashes stock 7.85.0-rc.6 and rc.7 Agent images and passes with the librdkafka patch.librdkafka+0xb1a81, preceded byNOT_COORDINATOR).No new tests: these are builder patches, and the kafka_consumer CI installs confluent-kafka from PyPI, so it doesn't exercise the patched reader. The check-side mitigation, recreating the AdminClient after coordinator errors, already merged in #25485. Once @alexeypilyugin agrees, #25702 can be closed in favour of this PR.
Checklist before requesting review
🤖 Generated with Claude Code