[pybsddb] Regression in 18.1.18: Python crashes on GIL-related assertions

Jesus Cea jcea at jcea.es
Tue Nov 17 05:02:50 CET 2026


On 14/11/26 17:53, Michał Górny via pybsddb wrote:
> Hello,
> 
> When running the test suite of berkeleydb 18.1.8 on top of CPython built
> with assertions enabled (--with-assertions or a debug build), I'm
> getting the following crash:
> 
> test01_basic_replication (tests.test_replication.DBReplicationManager.test01_basic_replication) ... python3.12: Python/pystate.c:1769: tstate_activate: Assertion `!tstate->_status.bound_gilstate || tstate == gilstate_tss_get((tstate->interp->runtime))' failed.
> 
> I can reproduce with Python 3.12.16, 3.13.18 and 3.14.10.  It doesn't
> happen on 3.15.2, so I guess the GIL API may have changed there.

Thanks for the promptly report and for testing multiple Python releases 
for me, with a detailed replication procedure.

I have triaged this to thread state caching when using asynchronous 
callbacks (a feature of Berkeley DB replication). I am testing a patch 
now. Can you wait a ~week for release 18.1.19?

This only affects people using replication and replication callbacks, 
and then shutting down replication.

-- 
Jesús Cea Avión                         _/_/      _/_/_/        _/_/_/
jcea at jcea.es - https://www.jcea.es/    _/_/    _/_/  _/_/    _/_/  _/_/
Twitter: @jcea                        _/_/    _/_/          _/_/_/_/_/
jabber / xmpp:jcea at jabber.org  _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://mailman.jcea.es/pipermail/pybsddb/attachments/20261117/adccfd0c/attachment.bin>


More information about the pybsddb mailing list