[issue13947] gdbm reorganize() leaves hanging file descriptor
sds
report at bugs.python.org
Wed Apr 3 11:58:04 EDT 2019
sds <sds at gnu.org> added the comment:
I observe the same behavior on Linux 4.18.0-17-generic #18-Ubuntu
with Python 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0].
gdbm 1.14.1-6:
after
db = dbm.gnu.open("asdf","n")
db["a"] = "124"
db.reorganize()
db.close()
I see
$ lsof ~/asdf
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
python3 22071 sds mem-W REG 8,2 16384 4328326 /home/sds/asdf
and
>>> db = dbm.gnu.open("asdf","r")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/sds/src/pyapp/tests/fileconv_test.py", line 1053, in <module>
_gdbm.error: [Errno 11] Resource temporarily unavailable
----------
nosy: +sam-s
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue13947>
_______________________________________
More information about the Python-bugs-list
mailing list