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 zuo
Recipients zuo
Date 2010-01-26.18:47:10
SpamBayes Score 2.7092304e-07
Marked as misclassified No
Message-id <1264531632.85.0.040390960633.issue7788@psf.upfronthosting.co.za>
In-reply-to
Content
del list_instance([start : stop : very_big_step]) causes segfaults...

The boundary values seem to be:
* start -- near length of the list
* stop -- near (-length) of the list
* very_big_step -- near sys.maxint

Let examples speak...

>>> from sys import maxint
>>> del range(10)[::maxint]
Segmentation fault

>>> from sys import maxint
>>> del range(10)[13::maxint]
>>> del range(10)[12::maxint]
>>> del range(10)[11::maxint]
>>> del range(10)[10::maxint]
>>> del range(10)[9::maxint]
Segmentation fault

>>> from sys import maxint
>>> del range(10)[:-13:maxint]
>>> del range(10)[:-12:maxint]
>>> del range(10)[:-11:maxint]
>>> del range(10)[:-10:maxint]
>>> del range(10)[:-9:maxint]
Segmentation fault

>>> from sys import maxint
>>> del range(10)[-8:8:maxint-5]
>>> del range(10)[-8:8:maxint-4]
>>> del range(10)[-8:8:maxint-3]
>>> del range(10)[-8:8:maxint-2]
Segmentation fault

System Info:
* Python 2.5.4 (r254:67916, Apr  4 2009, 17:55:16) 
* [GCC 4.3.3] on linux2
* sys.maxint == 2147483647, sys.byteorder == 'little'
* Processor: Pentium 4
* libc version: 2.9 (2.9-4ubuntu6)
History
Date User Action Args
2010-01-26 18:47:12zuosetrecipients: + zuo
2010-01-26 18:47:12zuosetmessageid: <1264531632.85.0.040390960633.issue7788@psf.upfronthosting.co.za>
2010-01-26 18:47:11zuolinkissue7788 messages
2010-01-26 18:47:10zuocreate