Skip to content

Conversation

@cjwatson
Copy link

@cjwatson cjwatson commented Dec 5, 2025

If NewTopic was initialized with a non-dict config, then the constructor raised an exception but left the object in a partially-initialized state with replica_assignment and config elements that hadn't had their reference counts increased, leading to mysterious segfaults in the test suite. Be more careful to only set these elements once we're ready to do so.

Fixes: #2146

If `NewTopic` was initialized with a non-dict `config`, then the
constructor raised an exception but left the object in a
partially-initialized state with `replica_assignment` and `config`
elements that hadn't had their reference counts increased, leading to
mysterious segfaults in the test suite.  Be more careful to only set
these elements once we're ready to do so.

Fixes: confluentinc#2146
@cjwatson cjwatson requested review from a team and MSeal as code owners December 5, 2025 11:08
@confluent-cla-assistant
Copy link

confluent-cla-assistant bot commented Dec 5, 2025

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

@MSeal
Copy link
Contributor

MSeal commented Dec 5, 2025

/sem-approve

Copy link
Contributor

@MSeal MSeal left a comment

Choose a reason for hiding this comment

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

Thanks for the fix. I've validated the change locally and kicked off the test suite validation. Once it passes I'll merge the change. There's a release being prepped for mid December that will include this fix.

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.

Segfault in test suite with Python 3.14

2 participants