Florent Xicluna <florent.xicl...@gmail.com> added the comment: The crash is triggered because PyDict_SetItemString(d, "api", py_api) is called with py_api=NULL when PyCObject_FromVoidPtr returns an error.
A possible workaround is to create a copy of PyCObject_FromVoidPtr (e.g. _PyCObject_FromVoidPtr) which is free of warnings. This function will be used by the _bsddb module in Python 2.7. See patch. ---------- keywords: +patch stage: unit test needed -> patch review Added file: http://bugs.python.org/file18637/issue9675_cobject.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9675> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com