[Patches] [ python-Patches-980475 ] partially initialized heap
allocated type objects
SourceForge.net
noreply at sourceforge.net
Sat Jun 26 19:47:09 EDT 2004
Patches item #980475, was opened at 2004-06-26 16:47
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=980475&group_id=5470
Category: Core (C code)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Eric Huss (ehuss)
Assigned to: Nobody/Anonymous (nobody)
Summary: partially initialized heap allocated type objects
Initial Comment:
There is a problem if you try to dealloc a partially
initialized heap allocated type object. Because
PyObject_GC_TRACK is not typically called until
initialization is done, the gc_refs value is set to
GC_UNTRACKED.
In type_dealloc, it calls _PyObject_GC_UNTRACK which
skips the check to see if it is GC_UNTRACKED.
This patch fixes it so that it calls PyObject_GC_UnTrack
to correctly handle this case.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=980475&group_id=5470
More information about the Patches
mailing list