[Python-bugs-list] [ python-Bugs-742911 ] Memory fault on complex weakref/weakkeydict delete
SourceForge.net
noreply@sourceforge.net
Sat, 24 May 2003 15:29:35 -0700
Bugs item #742911, was opened at 2003-05-24 18:29
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=742911&group_id=5470
Category: Python Interpreter Core
Group: Python 2.2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Mike C. Fletcher (mcfletch)
Assigned to: Nobody/Anonymous (nobody)
Summary: Memory fault on complex weakref/weakkeydict delete
Initial Comment:
Attached find two modules which together form a
test-case. The cache.py file is ripped out of a
production system (OpenGLContext), and I am seeing
memory faults under both Python 2.2.2 and 2.2.3 when I
run the code. Under 2.2.2 while single-stepping
through the code I was able to provoke an error-message:
Fatal Python error: GC object already in linked list
The error message doesn't show up under 2.2.3, but the
memory-fault does.
Modules here don't use any extension modules, so there
shouldn't be any loose memory references or the like.
Note, you'll likely need to make weakkeydictionary's
__delitem__ use keys instead of iterkeys to even get to
the crashing.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=742911&group_id=5470