[New-bugs-announce] [issue1112] Test debug assertion in bsddb test_1413192.py

David Bolen report at bugs.python.org
Thu Sep 6 01:00:42 CEST 2007

New submission from David Bolen:

The change made to Lib/bsddb/test/test_1413192.py to clean up temporary
files causes an abort in the DB library when trying to abort an open
transaction at object destruction type - currently when the Python
interpreter exits, because the transaction log file has been removed. 
In the Windows debug version this also causes an assertion pop-up dialog
window.  This has been seen on the 2.5 branch (r57311), trunk (r57286)
and py3k branch (57285).

The proposed change controls the object lifetime through a wrapper
object so the transaction object is destroyed before cleaning up the
filesystem.  It has the added benefit of permitting the filesystem
cleanup to work under Windows since the files are no longer in use.  The
test still generates a warning about a DBTxn aborted in destructor, but
does not abort the interpreter. 

I have tried testing this without the original (issue 1413192, r42177)
change to _bsddb that it was testing, but neither my modified version
nor the original seem to crash in my environment, so I can't say
absolutely whether or not the proposed change affects what the test was
originally designed to test.  I suspect subsequent changes to _bsddb.c
are perhaps also satisfying the original problem.

components: Tests
files: test_1413192.py.diff
messages: 55672
nosy: db3l
severity: normal
status: open
title: Test debug assertion in bsddb test_1413192.py
type: crash
versions: Python 2.5, Python 2.6, Python 3.0

Tracker <report at bugs.python.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_1413192.py.diff
Type: application/octet-stream
Size: 1133 bytes
Desc: not available
Url : http://mail.python.org/pipermail/new-bugs-announce/attachments/20070905/4678e970/attachment.obj 

More information about the New-bugs-announce mailing list