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 swanson
Recipients swanson
Date 2014-09-04.10:38:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1409827137.12.0.977974506247.issue22335@psf.upfronthosting.co.za>
In-reply-to
Content
On Python 3, but not Python 2, you crash with a Segmentation Fault instead of getting a MemoryError as expected.  It seems to only be a problem with bytearray, not with other things like tuple:

$ python3
Python 3.4.0 (default, Apr 11 2014, 13:05:18) 
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> bytearray(0x7FFFFFFF)
Segmentation fault (core dumped)
$ 


compare to:


$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:38) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> bytearray(0x7FFFFFFF)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
MemoryError
>>> 


$ python3
Python 3.4.0 (default, Apr 11 2014, 13:05:18) 
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> (0,)*0x7FFFFFFF
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
MemoryError
>>>
History
Date User Action Args
2014-09-04 10:38:57swansonsetrecipients: + swanson
2014-09-04 10:38:57swansonsetmessageid: <1409827137.12.0.977974506247.issue22335@psf.upfronthosting.co.za>
2014-09-04 10:38:57swansonlinkissue22335 messages
2014-09-04 10:38:56swansoncreate