[issue10001] ~Py_buffer.obj field is undocumented, though not hidden

Lenard Lindstrom report at bugs.python.org
Thu Sep 30 19:46:48 CEST 2010


New submission from Lenard Lindstrom <len-l at telus.net>:

Python 3.2a2+ (py3k:85072M, Sep 29 2010, 12:11:17) (from SVN)
[GCC 4.4.5 20100728 (prerelease)] on linux2 (Debian squeeze)

The ~Py_buffer.obj field is undocumented. Yet memoryview, that acts as a wrapper, includes the field in gc traversal. Also, if the field is not initialized by bf_getbuffer its value can be indeterminate. For memoryview the gc can crash (see attached C demo program).

----------
components: Interpreter Core
files: bufobj.c.gz
messages: 117754
nosy: kermode
priority: normal
severity: normal
status: open
title: ~Py_buffer.obj field is undocumented, though not hidden
versions: Python 3.2
Added file: http://bugs.python.org/file19069/bufobj.c.gz

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10001>
_______________________________________


More information about the Python-bugs-list mailing list