Message99742
| Author |
LukMak |
| Recipients |
LukMak |
| Date |
2010年02月22日.15:02:49 |
| SpamBayes Score |
2.0490154e-06 |
| Marked as misclassified |
No |
| Message-id |
<1266850971.35.0.609104606794.issue7985@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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? |
|
History
|
|---|
| 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 |
|