[issue22035] Fatal error in dbm.gdbm

2019-03-15 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue22035] Fatal error in dbm.gdbm

2015-04-01 Thread STINNER Victor
STINNER Victor added the comment: 2015-04-01 10:39 GMT+02:00 Serhiy Storchaka : > Other external libraries used by the stdlib also can crash, and perhaps > crashes can be converted to exceptions. This issue is only first in the > series. I don't think that it's a good practice to try to workar

[issue22035] Fatal error in dbm.gdbm

2015-04-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch for issue3999 was rejected because Python internal state may be corrupted when the SIGSEGV signal is raised. This is not the case of this issue. gdbm fatal function is called when Python is in consistent state. So we free to use any Python C-API. B

[issue22035] Fatal error in dbm.gdbm

2015-03-31 Thread STINNER Victor
STINNER Victor added the comment: > Oh, Mark, please stop shaking up bug tracker. I agree: please stop posting useless messages, and review patches instead. -- ___ Python tracker __

[issue22035] Fatal error in dbm.gdbm

2015-03-31 Thread STINNER Victor
STINNER Victor added the comment: I would prefer to avoid setgmp/longjmp, it's kind of a hack. It's maybe more a design issue in the gdbm library to report errors. I proposed a generic signal handler using setjmp/longjmp to convert SIGSEGV to regular Python exceptions, but it was rejected: iss

[issue22035] Fatal error in dbm.gdbm

2015-03-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue22035] Fatal error in dbm.gdbm

2015-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, Mark, please stop shaking up bug tracker. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue22035] Fatal error in dbm.gdbm

2015-02-14 Thread Mark Lawrence
Mark Lawrence added the comment: Would somebody please review Serhiy's patch. -- nosy: +BreamoreBoy ___ Python tracker ___ ___ Python-

[issue22035] Fatal error in dbm.gdbm

2014-08-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +needs review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue22035] Fatal error in dbm.gdbm

2014-07-22 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: 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 excepti