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

Michał Górny mgorny at gentoo.org
Sat Nov 14 17:53:35 CET 2026


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.

-- 
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/20261114/8302e731/attachment.bin>


More information about the pybsddb mailing list