[New-bugs-announce] [issue22582] Segmentation fault with string concatenation

Kevin Dyer report at bugs.python.org
Wed Oct 8 20:27:49 CEST 2014

New submission from Kevin Dyer:

The following can be used to generate a file called ```mega_concat.py```:
N = 2**17
my_array = []
for i in range(N):
print '+'.join(my_array)


$ python mega_concat.py 
Segmentation fault (core dumped)
$ python3 mega_concat.py 
RuntimeError: maximum recursion depth exceeded during compilation

Trying to debug this and it seems like it's a simple out-of-memory issue.

components: Interpreter Core
messages: 228807
nosy: Kevin.Dyer
priority: normal
severity: normal
status: open
title: Segmentation fault with string concatenation
versions: Python 2.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list