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.

Author Albert.Zeyer
Recipients Albert.Zeyer
Date 2011-07-22.13:13:26
SpamBayes Score 0.029688716
Marked as misclassified No
Message-id <1311340407.01.0.0385021056908.issue12608@psf.upfronthosting.co.za>
In-reply-to
Content
Code:

```
import ast

globalsDict = {}

fAst = ast.FunctionDef(
	name="foo",
	args=ast.arguments(
		args=[], vararg=None, kwarg=None, defaults=[],
		kwonlyargs=[], kw_defaults=[]),
	body=[], decorator_list=[])

exprAst = ast.Interactive(body=[fAst])
ast.fix_missing_locations(exprAst)
compiled = compile(exprAst, "<foo>", "single")
eval(compiled, globalsDict, globalsDict)

print(globalsDict["foo"])
```

Also CPython 2.6, 2.7, 3.0 and PyPy 1.5 crashes on this.
History
Date User Action Args
2011-07-22 13:13:27Albert.Zeyersetrecipients: + Albert.Zeyer
2011-07-22 13:13:27Albert.Zeyersetmessageid: <1311340407.01.0.0385021056908.issue12608@psf.upfronthosting.co.za>
2011-07-22 13:13:26Albert.Zeyerlinkissue12608 messages
2011-07-22 13:13:26Albert.Zeyercreate
Morty Proxy This is a proxified and sanitized view of the page, visit original site.