[issue9675] segfault: PyDict_SetItem: Assertion `value' failed.

2010-11-04 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- assignee: -> jcea resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue9675] segfault: PyDict_SetItem: Assertion `value' failed.

2010-11-04 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Better bsddb error control. Please, review. """ [j...@babylon5 release27-maint]$ ./python Python 2.7.0+ (release27-maint:86176:86178M, Nov 5 2010, 00:30:) [GCC 4.5.1] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> import

[issue9675] segfault: PyDict_SetItem: Assertion `value' failed.

2010-11-04 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Move the CObject use to a py3k warning instead of an error in r86178. I still need to solve improve error management in bsddb. This bug remains open for a while. -- ___ Python tracker

[issue9675] segfault: PyDict_SetItem: Assertion `value' failed.

2010-09-28 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +dmalcolm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue9675] segfault: PyDict_SetItem: Assertion `value' failed.

2010-09-27 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: In the spirit of moving this forward: http://mail.python.org/pipermail/python-dev/2010-September/104201.html -- ___ Python tracker ___

[issue9675] segfault: PyDict_SetItem: Assertion `value' failed.

2010-08-24 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: The problem is that the "-We" is converting the CObject use to ERRORs, when this API is perfectly legal in Python 2.7. bsddb 4.8.4 DOES *legally* uses CObjects in Python 2.7. In pybsddb 5.0.0 I migrated to Capsule, since 5.0 doesn't support python 3.0 anymo

[issue9675] segfault: PyDict_SetItem: Assertion `value' failed.

2010-08-24 Thread Florent Xicluna
Florent Xicluna 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 wa

[issue9675] segfault: PyDict_SetItem: Assertion `value' failed.

2010-08-24 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Importing "bsddb" crashes. Importing "bsddb3" (the updated version I keep independiently of python) DOESN'T crash. bsddb = 4.8.4 bsddb3 = 5.0.0 (currently). Checking the changelog, I see this possible cause: """ * Capsule support was buggy. The string pa

[issue9675] segfault: PyDict_SetItem: Assertion `value' failed.

2010-08-24 Thread Florent Xicluna
Florent Xicluna added the comment: It is probably related to the CObject PendingDeprecationWarning. For the record, bsddb does not use the new Capsule API in Python 2.7. ref: http://bugs.python.org/issue7992#msg104140 -- ___ Python tracker

[issue9675] segfault: PyDict_SetItem: Assertion `value' failed.

2010-08-24 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue9675] segfault: PyDict_SetItem: Assertion `value' failed.

2010-08-24 Thread Florent Xicluna
Florent Xicluna added the comment: Actually, the issue seems to be in bsddb. $ ./python -We -c 'import bsddb' python: Objects/dictobject.c:759: PyDict_SetItem: Assertion `value' failed. Abandon -- ___ Python tracker

[issue9675] segfault: PyDict_SetItem: Assertion `value' failed.

2010-08-24 Thread Florent Xicluna
New submission from Florent Xicluna : Crash on Python 2.7 branch. $ ./python -We -c 'import anydbm' python: Objects/dictobject.c:759: PyDict_SetItem: Assertion `value' failed. Abandon It occurs with all optional modules compiled. -- messages: 114823 nosy: flox priority: normal severity