Message99742
Execution:
>>> l=[]
>>> l.append(l)
>>> l
[[...]]
>>> l[0]
[[...]]
>>> l[0][0][0]
[[...]]
>>> eval('l'+'[0]'*10)
[[...]]
>>> eval('l'+'[0]'*666)
[[...]]
>>> eval('l'+'[0]'*999999)
Segmentation fault
Environment:
2.6.24-27-generic #1 SMP, Ubuntu 8.04.4 LTS, Both Python 2.5.2 from distro repo and Python 3.1.1 compiled by me. But crash seems to be platform and version independent.
Comment:
Should throw RuntimeError: maximum recursion depth exceeded instead of SIGSEGV? |
|
Date |
User |
Action |
Args |
2010-02-22 15:02:51 | LukMak | set | recipients:
+ LukMak |
2010-02-22 15:02:51 | LukMak | set | messageid: <1266850971.35.0.609104606794.issue7985@psf.upfronthosting.co.za> |
2010-02-22 15:02:50 | LukMak | link | issue7985 messages |
2010-02-22 15:02:49 | LukMak | create | |
|