New submission from Lenard Lindstrom <le...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue10001>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to