STINNER Victor <[EMAIL PROTECTED]> added the comment: 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. _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3885> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com