Message228852
> Then, on Ubuntu 14.04, 32-bit:
> $ python mega_concat.py
> Segmentation fault (core dumped)
What is your Python version? It looks like Ubuntu Trusty provides Python 2.7.6. I'm unable to reproduce the issue on ArchLinux 32-bit with Python 2.7.8. The issue was maybe fixed between 2.7.6 and 2.7.8.
[haypo@arch32 ~]$ cat megaconcat.py
N = 2**17
my_array = []
for i in range(N):
my_array.append("\"\"")
print('+'.join(my_array))
[haypo@arch32 ~]$ python2 -V
Python 2.7.8
[haypo@arch32 ~]$ ulimit -v 8000
[haypo@arch32 ~]$ python2 megaconcat.py
Traceback (most recent call last):
File "megaconcat.py", line 5, in <module>
my_array.append("\"\"")
MemoryError |
|
Date |
User |
Action |
Args |
2014-10-09 10:02:04 | vstinner | set | recipients:
+ vstinner, josh.r, Kevin.Dyer |
2014-10-09 10:02:04 | vstinner | set | messageid: <1412848924.48.0.586460857268.issue22583@psf.upfronthosting.co.za> |
2014-10-09 10:02:04 | vstinner | link | issue22583 messages |
2014-10-09 10:02:04 | vstinner | create | |
|