[issue33074] dbm corrupts index on macOS (_dbm module)
Xiang Zhang
report at bugs.python.org
Thu Mar 29 14:15:43 EDT 2018
Xiang Zhang <angwerzx at 126.com> added the comment:
I highly suspect you don't have gdbm installed in your environment and `import dbm.gnu` will fail. When simply using `dbm.open`, it searches through [dbm.gnu, dbm.ndbm, dbm.dumb]. In my environment, macOS 10.13.3, dbm.gnu works correctly(so dbm works correctly) and dbm.ndbm fails with same error. Currently I cannot see any code in Python _dbm module could lead to this error. And POSIX only requires dbm library to support at least 1023 bytes long key/value pairs.
----------
nosy: +xiang.zhang
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33074>
_______________________________________
More information about the Python-bugs-list
mailing list