diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2011-03-03 11:08:33 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2011-03-03 11:08:33 (GMT) |
commit | 8370bb952809f72b387f11e58aa7b0452e383915 (patch) | |
tree | db7443f058a49a96963b71f242f6ae1d02abc6e9 /Lib | |
parent | 446230664b1bed00289e462008fbb671994f98b1 (diff) | |
download | cpython-8370bb952809f72b387f11e58aa7b0452e383915.zip cpython-8370bb952809f72b387f11e58aa7b0452e383915.tar.gz cpython-8370bb952809f72b387f11e58aa7b0452e383915.tar.bz2 |
Update compiler recursion crasher to more reliably blow the stack and add a tracker issue for it
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/crashers/compiler_recursion.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Lib/test/crashers/compiler_recursion.py b/Lib/test/crashers/compiler_recursion.py index 4954bdd..8fd93fc 100644 --- a/Lib/test/crashers/compiler_recursion.py +++ b/Lib/test/crashers/compiler_recursion.py @@ -1,5 +1,13 @@ """ -The compiler (>= 2.5) recurses happily. +The compiler (>= 2.5) recurses happily until it blows the stack. + +Recorded on the tracker as http://bugs.python.org/issue11383 """ -compile('()'*9**5, '?', 'exec') +# The variant below blows up in compiler_call, but there are assorted +# other variations that blow up in other functions +# e.g. '1*'*10**5+'1' will die in compiler_visit_expr + +# The exact limit to destroy the stack will vary by platform +# but 100k should do the trick most places +compile('()'*10**5, '?', 'exec') |