Hubert Tournier <hubert.tourn...@gmail.com> added the comment:

I modified the test program to better reflect the size of the data structures 
stored in shelve (sys.getsizeof() which I used was far off the real size).

I saw that the database was corrupted with big records, though even bigger 
previous records had not corrupted it. Records larger than 1K (mentioned in one 
of the other problem report) were routinely OK. Records larger than 4K (also 
mentioned on another PR) were sometimes OK.

When I took a problematic record and used it single alone or with few other 
records, no corruption occurred.

Any idea?

----------
Added file: https://bugs.python.org/file50704/shelve-test-3.10-b.zip

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue47072>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to