[issue22583] C stack overflow in the Python 2.7 compiler

2020-04-26 Thread Zachary Ware


Zachary Ware  added the comment:

As 2.7 has reached EOL, I'm closing this issue.

--
nosy: +zach.ware
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22583] C stack overflow in the Python 2.7 compiler

2015-04-16 Thread Aleksandr Yeganov

Aleksandr Yeganov added the comment:

This is a backport of https://bugs.python.org/issue5765. I've pretty much taken 
the patch directly and applied it. I did have to modify the test code to use a 
different method.

--
keywords: +patch
nosy: +ayeganov
Added file: http://bugs.python.org/file39084/issue_22583.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22583
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22583] C stack overflow in the Python 2.7 compiler

2014-10-09 Thread STINNER Victor

STINNER Victor added the comment:

 You're supposed to use that code to create a file (the output file is just 
 +...+).

Oh ok, the bug is in Python compiler. It's probably an overflow of the C stack.

The bug was fixed in Python 3.3 by the issue #5765: see changeset ab02cd145f56. 
See also the issue #19098 (sys.setrecursionlimit(2**30) breaks interactive 
shell) and the changeset c3df31cbcd0a.

Nick Coghlan wrote in the issue #5765: However, agreed on the won't fix for 
3.2 and 2.7, although I'd consider it at least for 2.7 if someone went through 
and worked out a patch that applies cleanly.


$ python2
Python 2.7.5 (default, Sep 25 2014, 13:57:38) 
[GCC 4.8.3 20140911 (Red Hat 4.8.3-7)] on linux2 compile('1' + '+1'*10**5, 
'string', 'exec')
code object module at 0x7f8c5ba2c1b0, file string, line 1
 compile('1' + '+1'*10**6, 'string', 'exec')
Erreur de segmentation (core dumped)

$ python3
Python 3.3.2 (default, Jun 30 2014, 17:20:03) 
[GCC 4.8.3 20140624 (Red Hat 4.8.3-1)] on linux
 compile('1' + '+1'*10**3, 'string', 'exec')
code object module at 0x7f7298d479c0, file string, line 1
 compile('1' + '+1'*10**4, 'string', 'exec')
Traceback (most recent call last):
  File stdin, line 1, in module
RuntimeError: maximum recursion depth exceeded during compilation

--
nosy: +ncoghlan
title: Segmentation fault with string concatenation - C stack overflow in the 
Python 2.7 compiler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22583
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com