[New-bugs-announce] [issue1662] [patch] assert tp_traverse in PyType_GenericAlloc()

Bryan Silverthorn report at bugs.python.org
Wed Dec 19 18:22:01 CET 2007


New submission from Bryan Silverthorn:

Attached is a very short patch against r59568 which asserts tp_traverse
on (the types of) objects allocated in PyType_GenericAlloc(). As far as
I'm aware, tp_traverse should always be set at this point. Catching that
error early, even if only in debug builds, would help to prevent bugs
like http://bugzilla.gnome.org/show_bug.cgi?id=504337 .

----------
components: Interpreter Core
files: bcs_typeobject_assert.patch
messages: 58811
nosy: bsilverthorn
severity: minor
status: open
title: [patch] assert tp_traverse in PyType_GenericAlloc()
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file8998/bcs_typeobject_assert.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1662>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bcs_typeobject_assert.patch
Type: text/x-patch
Size: 406 bytes
Desc: not available
Url : http://mail.python.org/pipermail/new-bugs-announce/attachments/20071219/e4bc073e/attachment.bin 


More information about the New-bugs-announce mailing list