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 jcea, vstinner
Date 2008-09-16.21:14:21
SpamBayes Score 1.18789e-06
Marked as misclassified No
Message-id <1221599722.33.0.753365634606.issue3885@psf.upfronthosting.co.za>
In-reply-to
Content
About the bug (1): it also occurs in DBEnv_dealloc() but 
DBEnv_dealloc() is directly called from newDBEnvObject() with 
Py_DECREF(self);. The two bugs can be reproduces with dummy DBenv() 
arguments, eg. "DBEnv(92)".

Backtrace using gdb:
-----
$ gdb ./python
...
>>> import _bsddb; _bsddb.DBenv(92)
...
Program received signal SIGSEGV, Segmentation fault.

0xb7cc8f5e in DBEnv_close_internal (self=0x83385f0, flags=0) 
at ../Modules/_bsddb.c:3989
3989            err = self->db_env->close(self->db_env, flags);
(gdb) print self->db_env
$1 = (DB_ENV *) 0xfffffffe
-----

There db_env value is not set.
History
Date User Action Args
2008-09-16 21:15:22vstinnersetrecipients: + vstinner, jcea
2008-09-16 21:15:22vstinnersetmessageid: <1221599722.33.0.753365634606.issue3885@psf.upfronthosting.co.za>
2008-09-16 21:14:21vstinnerlinkissue3885 messages
2008-09-16 21:14:21vstinnercreate