[issue1275] bsddb closing a DB object before all DBCursors using it are closed crashes

Gregory P. Smith report at bugs.python.org
Fri Oct 12 21:20:02 CEST 2007


New submission from Gregory P. Smith:

If a bsddb.db.DB object is closed before any DBCursor objects
referencing it are closed, python will crash when the cursors are closed
or deleted.

Workaround: never close a database with open cursors.  this is annoying
in unittest code where a tearDown method closes the DB in the exception
handling path on a test failure before the cursors have been closed or
garbage collected.

I've got a test in my sandbox, I'll check it in with the fix as its a
crasher otherwise.

----------
assignee: gregory.p.smith
components: Extension Modules
messages: 56383
nosy: gregory.p.smith
severity: normal
status: open
title: bsddb closing a DB object before all DBCursors using it are closed crashes
type: crash

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1275>
__________________________________


More information about the Python-bugs-list mailing list