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

Michał Górny mgorny at gentoo.org
Tue Nov 17 15:09:02 CET 2026


On Tue, 2026-11-17 at 05:02 +0100, Jesus Cea wrote:
> 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.
> 

Sure, no hurry on my end.  Do you need me to test anything?

-- 
Best regards,
Michał Górny

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 293 bytes
Desc: This is a digitally signed message part
URL: <https://mailman.jcea.es/pipermail/pybsddb/attachments/20261117/2c2f32c6/attachment.bin>


More information about the pybsddb mailing list