This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:51LukMaksetrecipients: + LukMak
2010-02-22 15:02:51LukMaksetmessageid: <1266850971.35.0.609104606794.issue7985@psf.upfronthosting.co.za>
2010-02-22 15:02:50LukMaklinkissue7985 messages
2010-02-22 15:02:49LukMakcreate