This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2008年07月06日 22:56 by vstinner, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| bsddb_create.patch | vstinner, 2008年07月06日 22:55 | Proposition to fix the bug | ||
| Messages (3) | |||
|---|---|---|---|
| msg69358 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2008年07月06日 22:55 | |
newDBObject(), called by DB_construct(), doesn't check correctly the result of all to the external function db_create(). It checks if self->db is NULL, but db_create() doesn't change self->db value on error. So if self->db is uninitialized, the error is not catched. Two ideas to fix the bug: - check "if (err)" instead of "if (self->db != NULL)" - set self->db=NULL before calling db_create() I implemented the second proposition in the attached patch. Note: The bug occurs with PYDEBUG, I don't know if PyObject_New() fills new allocate memory to zero (I think no, but I'm not sure). |
|||
| msg69359 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2008年07月06日 22:59 | |
The bug occurs on db_create() failure. Dummy example to reproduce it: "import _bsddb; _bsddb.DB(None, 29.515)" |
|||
| msg70008 - (view) | Author: Jesús Cea Avión (jcea) * (Python committer) | Date: 2008年07月19日 09:37 | |
Solved in my SVN repository. Revision 527. Testsuite updated. Will be available in bsddb 4.7.2. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:36 | admin | set | github: 47557 |
| 2008年07月19日 09:37:50 | jcea | set | resolution: fixed |
| 2008年07月19日 09:37:05 | jcea | set | status: open -> closed messages: + msg70008 |
| 2008年07月07日 04:36:19 | gregory.p.smith | set | priority: normal assignee: jcea type: crash nosy: + jcea |
| 2008年07月06日 22:59:13 | vstinner | set | messages: + msg69359 |
| 2008年07月06日 22:56:00 | vstinner | create | |