[Python-bugs-list] [Bug #128688] Tools/compiler can't compile Lib/*.py

noreply@sourceforge.net noreply@sourceforge.net
Sat, 13 Jan 2001 12:34:55 -0800


Bug #128688, was updated on 2001-Jan-13 12:07
Here is a current snapshot of the bug.

Project: Python
Category: demos and tools
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Submitted by: nascheme
Assigned to : jhylton
Summary: Tools/compiler can't compile Lib/*.py

Details: Subject says it all.


Follow-Ups:

Date: 2001-Jan-13 12:34
By: nascheme

Comment:
This (incorrect?) patch to transformer.py seems to help:

-    def com_NEWLINE(self):
+    def com_NEWLINE(self, nodelist):

but the resulting bytecode kills the interpreter:

(gdb) run Lib/test/regrtest.py
Starting program: /home/nas/Python/py/python Lib/test/regrtest.py
test_grammar
test_opcodes
test_operations
test_builtin
test_exceptions
test_types
test_MimeWriter
test_StringIO

Program received signal SIGSEGV, Segmentation fault.
0x805b8d3 in eval_code2 (co=0x8255f08, globals=0x8258e44, locals=0x0, 
    args=0x81ffd64, argcount=1, kws=0x81ffd68, kwcount=0, defs=0x0,
defcount=0)
    at ceval.c:2079
2079                    Py_XDECREF(v);
(gdb) l
2074            
2075            /* Pop remaining stack entries */
2076            
2077            while (!EMPTY()) {
2078                    v = POP();
2079                    Py_XDECREF(v);
2080            }
2081            
2082            if (why != WHY_RETURN)
2083                    retval = NULL;
(gdb) p *v
Cannot access memory at address 0x22.

-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=128688&group_id=5470