This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: [AST] Fix for core in test_grammar.py
Type: Stage:
Components: Interpreter Core Versions:
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: nascheme Nosy List: logistix, nascheme
Priority: normal Keywords: patch

Created on 2005-04-08 22:43 by logistix, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_grammar_core_fix.diff logistix, 2005-04-08 22:44
Messages (2)
msg48178 - (view) Author: Grant Olson (logistix) Date: 2005-04-08 22:43
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.
msg48179 - (view) Author: Neil Schemenauer (nascheme) * (Python committer) Date: 2005-04-15 02:13
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.
History
Date User Action Args
2022-04-11 14:56:10adminsetgithub: 41831
2005-04-08 22:43:07logistixcreate