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.

Author vstinner
Recipients vstinner
Date 2008-09-16.21:08:56
SpamBayes Score 0.0119292
Marked as misclassified No
Message-id <1221599389.8.0.12271871478.issue3885@psf.upfronthosting.co.za>
In-reply-to
Content
I found two differents bugs using Fusil the fuzzer.

(1) On db_env_create() error in newDBEnvObject(), self->db_env is not 
set and so use of this pointer may crashs.

(2) DBEnv_dealloc() may raise an exception (DBEnv_close_internal() 
calls makeDBError()) but the garbage collector dislike exceptions!

Example of (2):
----
$ python
>>> import gc, _bsddb; env=_bsddb.DBEnv(3); del env
>>> gc.collect(); gc.collect()
Exception bsddb.db.DBNoServerError: (-30992, 'DB_NOSERVER: Fatal 
error, no RPC server -- No Berkeley DB RPC server environment') 
in 'garbage collection' ignored
Fatal Python error: unexpected exception during garbage collection
----
History
Date User Action Args
2008-09-16 21:09:49vstinnersetrecipients: + vstinner
2008-09-16 21:09:49vstinnersetmessageid: <1221599389.8.0.12271871478.issue3885@psf.upfronthosting.co.za>
2008-09-16 21:08:59vstinnerlinkissue3885 messages
2008-09-16 21:08:59vstinnercreate