Message223658
It is possible to crash Python by breaking opened gdbm database.
>>> import _gdbm as dbm
>>> db = dbm.open('x.db', 'n')
>>> open('x.db', 'wb').close()
>>> db[b'a'] = b'b'
gdbm fatal: read error
Proposed patch tries to convert fatal gdbm into regular exception or in Python fatal error (which at least produces traceback).
>>> import _gdbm as dbm
>>> db = dbm.open('x.db', 'n')
>>> open('x.db', 'wb').close()
>>> db[b'a'] = b'b'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
_gdbm.error: gdbm fatal: read error |
|
Date |
User |
Action |
Args |
2014-07-22 10:20:40 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka |
2014-07-22 10:20:40 | serhiy.storchaka | set | messageid: <1406024440.03.0.44171364302.issue22035@psf.upfronthosting.co.za> |
2014-07-22 10:20:39 | serhiy.storchaka | link | issue22035 messages |
2014-07-22 10:20:39 | serhiy.storchaka | create | |
|