[Python-bugs-list] [Bug #133096] Fatal python error in com_make_closure()
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 19 Feb 2001 15:38:29 -0800
Bug #133096, was updated on 2001-Feb-19 09:03
Here is a current snapshot of the bug.
Project: Python
Category: Parser/Compiler
Status: Open
Resolution: None
Bug Group: None
Priority: 7
Submitted by: glchapman
Assigned to : jhylton
Summary: Fatal python error in com_make_closure()
Details: This construct causes python (2.1 alpha 2) to crash:
>>> def test(n):
... return lambda fact: fact(fact, long(n))
...
lookup 'n' in test 1 -1
Fatal Python error: com_make_closure()
To try to help narrow it down, the following works with no problem:
>>> def test(n):
... return lambda fact: fact(fact, n)
So it appears that adding the call to the long function is breaking
something.
Follow-Ups:
Date: 2001-Feb-19 15:38
By: jhylton
Comment:
This appears to work with the current CVS repository. One of the
bug fixes this morning must have caught it.
-------------------------------------------------------
Date: 2001-Feb-19 13:27
By: fdrake
Comment:
Assigned to Mr. Compiler.
-------------------------------------------------------
Date: 2001-Feb-19 10:34
By: mwh
Comment:
OTOH, I've just rebuilt and it seems to have gone away.
A bug of this kind was fixed in revision 2.163 of compile.c (on
2001/02/12)- can you try after that?
-------------------------------------------------------
Date: 2001-Feb-19 09:18
By: mwh
Comment:
Nah, it crashes on linux too.
It doesn't crash if you change almost anything about the test-case, so it's
probably some bizarre kind of dictionary traversal bug again.
-------------------------------------------------------
Date: 2001-Feb-19 09:05
By: glchapman
Comment:
I probably should have added that I'm using the Win32 compiled version
downloaded from SourceForge (operating system is Windows 2000).
-------------------------------------------------------
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=133096&group_id=5470