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 wolma
Recipients johan, ned.deily, steve.dower, tim.golden, wolma, zach.ware
Date 2015-04-17.10:12:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429265530.48.0.971697941273.issue23985@psf.upfronthosting.co.za>
In-reply-to
Content
Surprisingly, a much simpler version with just one bytearray seems to run stably (for several minutes at least), but when you wait a while then hit Ctrl-C, you are getting a Segmentation fault:

Python 3.4.0 (default, Apr 11 2014, 13:05:11) 
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import random
>>> buf1 = bytearray()
>>> data = b"1234567890123"
>>> 
>>> while True:
...     buf1 += data
...     l = len(buf1)
...     n = random.randrange(1, l-1)
...     del buf1[:n]
... 

^CSegmentation fault (core dumped)

The same code crashes spontaneously (without attempting a keyboard interrupt) when run in IDLE.
History
Date User Action Args
2015-04-17 10:12:10wolmasetrecipients: + wolma, tim.golden, ned.deily, zach.ware, steve.dower, johan
2015-04-17 10:12:10wolmasetmessageid: <1429265530.48.0.971697941273.issue23985@psf.upfronthosting.co.za>
2015-04-17 10:12:10wolmalinkissue23985 messages
2015-04-17 10:12:10wolmacreate