[issue3663] Extra DECREF on syntax errors

Amaury Forgeot d'Arc report at bugs.python.org
Sun Aug 24 22:20:30 CEST 2008


New submission from Amaury Forgeot d'Arc <amauryfa at gmail.com>:

The following output is very suspect: the total number of references
decreases!

Python 3.0b3+ (py3k, Aug 24 2008, 21:56:40) [MSC v.1500 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> f(1=1)
  File "<stdin>", line 1
SyntaxError: keyword can't be an expression
[42055 refs]
>>> f(1=1)
  File "<stdin>", line 1
SyntaxError: keyword can't be an expression
[42054 refs]
>>> f(1=1)
  File "<stdin>", line 1
SyntaxError: keyword can't be an expression
[42053 refs]
>>> f(1=1)
  File "<stdin>", line 1
SyntaxError: keyword can't be an expression
[42052 refs]
>>> f(1=1)
  File "<stdin>", line 1
SyntaxError: keyword can't be an expression
[42051 refs]
>>> f(1=1)
  File "<stdin>", line 1
SyntaxError: keyword can't be an expression
[42050 refs]

After several hundred statements, I got:
Fatal Python error: deallocating None

----------
messages: 71859
nosy: amaury.forgeotdarc
priority: deferred blocker
severity: normal
status: open
title: Extra DECREF on syntax errors
versions: Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3663>
_______________________________________


More information about the Python-bugs-list mailing list