[Python-bugs-list] [ python-Bugs-692776 ] new.function() leads to segfault
SourceForge.net
noreply@sourceforge.net
Mon, 19 May 2003 12:53:47 -0700
Bugs item #692776, was opened at 2003-02-25 08:04
Message generated for change (Settings changed) made by jhylton
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=692776&group_id=5470
Category: Python Interpreter Core
Group: Python 2.2.2
Status: Open
Resolution: None
>Priority: 7
Submitted By: Jp Calderone (kuran)
Assigned to: Jeremy Hylton (jhylton)
Summary: new.function() leads to segfault
Initial Comment:
If a code object which requires a closure is passed to
new.function(), a segfault (Python/ceval.c:2578). This
seems to be fixed in 2.3. Attached is a short code
example that demonstrates the behavior.
----------------------------------------------------------------------
Comment By: Jeremy Hylton (jhylton)
Date: 2003-04-09 18:57
Message:
Logged In: YES
user_id=31392
I think I can swap in the state without too much pain.
----------------------------------------------------------------------
Comment By: Michael Hudson (mwh)
Date: 2003-04-09 10:48
Message:
Logged In: YES
user_id=6656
Jeremy, is this easy for you to fix? It's fiddlier than I
expected.
----------------------------------------------------------------------
Comment By: Michael Hudson (mwh)
Date: 2003-02-25 09:31
Message:
Logged In: YES
user_id=6656
You're right.
I guess the fix is to backport the extra 'closure' argument
from 2.3. I'll look into this.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=692776&group_id=5470