[pybsddb] berkeleydb segfaulting with Python 3.13
Jesus Cea
jcea at jcea.es
Wed May 14 16:59:11 CEST 2025
On 14/5/25 4:00, Jacob Henner wrote:
> berkeleydb is segfaulting on Arch Linux amd64, with Python 3.13 and
> either libdb 6.2.32 or libdb 5.3.28. Both Python 3.13.0 and 3.13.3 were
> confirmed to be affected. 3.12.10 is not affected.
I can't reproduce this under Ubuntu, but BerkeleyDB and Python 3.13 are
self-compiled.
> Stack trace:
>
> #0 0x00007a69663ced7a n/a (libc.so.6 + 0xb8d7a)
>
> #1 0x00007a696637b437 n/a (libc.so.6 + 0x65437)
>
> #2 0x00007a696637c1e4 n/a (libc.so.6 + 0x661e4)
>
> #3 0x00007a6965e9e05a __db_errfile (libdb-6.2.so + 0x12005a)
>
> #4 0x00007a6965e9e634 __db_errx (libdb-6.2.so + 0x120634)
>
> #5 0x00007a6965ec98f5 __env_set_create_dir (libdb-6.2.so + 0x14b8f5)
>
> #6 0x00007a6965f8bbc9 DBEnv_set_lk_detect (_berkeleydb.abi3.so + 0x12bc9)
This traceback is useful, thanks.
Lets try to do a minimal reproducible case. Try this code:
"""
import berkeleydb
e = berkeleydb.db.DBEnv()
e.set_lk_detect(berkeleydb.db.DB_LOCK_DEFAULT)
"""
--
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/20250514/f2c85642/attachment.bin>
More information about the pybsddb
mailing list