[New-bugs-announce] [issue17054] cStringIO.StringIO aborted when more then INT_MAX bytes written
Serhiy Storchaka
report at bugs.python.org
Sun Jan 27 21:33:45 CET 2013
New submission from Serhiy Storchaka:
Reproduced on x8 snakebite.
% ./python.exe
Python 2.7.3+ (2.7:38a10d0778d2+, Jan 27 2013, 20:05:15)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Could not open PYTHONSTARTUP
IOError: [Errno 2] No such file or directory: '/Users/cpython/.pythonrc'
>>> from cStringIO import StringIO
[38179 refs]
>>> f = StringIO()
[38181 refs]
>>> s = 'x' * 2**30
[38183 refs]
>>> f.write(s)
[38183 refs]
>>> f.write(s)
Assertion failed: (oself->pos + l < INT_MAX), function O_cwrite, file /Users/cpython/hg/storchaka/Modules/cStringIO.c, line 421.
zsh: abort ./python.exe
----------
components: IO
messages: 180790
nosy: serhiy.storchaka
priority: high
severity: normal
stage: needs patch
status: open
title: cStringIO.StringIO aborted when more then INT_MAX bytes written
type: crash
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17054>
_______________________________________
More information about the New-bugs-announce
mailing list