Skip to content

Fix segfault after delete_records() on Python 3.14 (reference-counting bug) - #2328

Merged
Ojasva Jain (ojasvajain) merged 1 commit into
masterfrom
fix_delete_records_seg_fault
Aug 24, 2026
Merged

Fix segfault after delete_records() on Python 3.14 (reference-counting bug)#2328
Ojasva Jain (ojasvajain) merged 1 commit into
masterfrom
fix_delete_records_seg_fault

Conversation

@ojasvajain

Copy link
Copy Markdown
Member

Fixes #2275

Removed the two spurious Py_XDECREF(topic_partition_offsets) calls. The function should not touch the refcount of an argument it doesn't own.

What

Checklist

  • Contains customer facing changes? Including API/behavior changes
  • Did you add sufficient unit test and/or integration test coverage for this PR?
    • If not, please explain why it is not required

References

JIRA:

Test & Review

Open questions / Follow-ups

@confluent-cla-assistant

Copy link
Copy Markdown

🎉 All Contributor License Agreements have been signed. Ready to merge.
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

@sonarqube-confluent

Copy link
Copy Markdown

@pranavrth Pranav Rathi (pranavrth) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!. Thanks Ojasva Jain (@ojasvajain) !

@ojasvajain
Ojasva Jain (ojasvajain) merged commit 253e0c6 into master Aug 24, 2026
4 checks passed
@ojasvajain
Ojasva Jain (ojasvajain) deleted the fix_delete_records_seg_fault branch August 24, 2026 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

delete_records leads up to a crash when using Python 3.14.6

2 participants