[Patches] [ python-Patches-1179513 ] [AST] Fix for core in test_grammar.py

SourceForge.net noreply at sourceforge.net
Fri Apr 15 04:13:47 CEST 2005


Patches item #1179513, was opened at 2005-04-08 22:43
Message generated for change (Settings changed) made by nascheme
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1179513&group_id=5470

Category: Parser/Compiler
Group: AST
>Status: Closed
>Resolution: Rejected
Priority: 5
Submitted By: logistix (logistix)
>Assigned to: Neil Schemenauer (nascheme)
Summary: [AST] Fix for core in test_grammar.py

Initial Comment:
Executing statements like:

compile("lambda x:x=1")

is causing a coredump on windows when it attempts to 
free an uninitialized ast_sequence.  Making sure that an 
appropriate null value is added to the sequence before 
cleaning up fixes this.

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

>Comment By: Neil Schemenauer (nascheme)
Date: 2005-04-15 02:13

Message:
Logged In: YES 
user_id=35752

I think your fix only works when the length of the sequence
is one.  I checked in a different fix (i.e. initialize to
NULLs when allocating a new asdl_seq).  test_grammar now passes.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1179513&group_id=5470


More information about the Patches mailing list