| 1 | n/a | """ |
|---|
| 2 | n/a | The compiler (>= 2.5) recurses happily until it blows the stack. |
|---|
| 3 | n/a | |
|---|
| 4 | n/a | Recorded on the tracker as http://bugs.python.org/issue11383 |
|---|
| 5 | n/a | """ |
|---|
| 6 | n/a | |
|---|
| 7 | n/a | # The variant below blows up in compiler_call, but there are assorted |
|---|
| 8 | n/a | # other variations that blow up in other functions |
|---|
| 9 | n/a | # e.g. '1*'*10**5+'1' will die in compiler_visit_expr |
|---|
| 10 | n/a | |
|---|
| 11 | n/a | # The exact limit to destroy the stack will vary by platform |
|---|
| 12 | n/a | # but 10M should do the trick even with huge stack allocations |
|---|
| 13 | n/a | compile('()'*10**7, '?', 'exec') |
|---|