Jesús Cea Avión j...@jcea.es 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
Jesús Cea Avión j...@jcea.es 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
Changes by Jesús Cea Avión j...@jcea.es:
--
assignee: - jcea
resolution: - accepted
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9675
Changes by Dave Malcolm dmalc...@redhat.com:
--
nosy: +dmalcolm
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9675
___
___
Python-bugs-list
Jesús Cea Avión j...@jcea.es added the comment:
In the spirit of moving this forward:
http://mail.python.org/pipermail/python-dev/2010-September/104201.html
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9675
New submission from Florent Xicluna florent.xicl...@gmail.com:
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
Florent Xicluna florent.xicl...@gmail.com 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
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9675
___
___
Python-bugs-list
Florent Xicluna florent.xicl...@gmail.com 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
--
Jesús Cea Avión j...@jcea.es 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
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.
Jesús Cea Avión j...@jcea.es 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
12 matches
Mail list logo