[issue16858] tarfile silently hides errors

Марк Коренберг report at bugs.python.org
Fri May 20 17:57:01 EDT 2016


Марк Коренберг added the comment:

Can not reproduce in Linux. Will reopen if reproduced on MacOS X or BSD.

#!/usr/bin/python3.5

import os
import signal


p = os.getpid()

if os.fork() == 0:
    while True:
        try:
            os.kill(p, signal.SIGCHLD)
        except (ProcessLookupError, KeyboardInterrupt):
            break
    os._exit(0)

qwe = open('qwe.dat', 'w+b')
qwe.seek(2*1024*1024*1024*1024)
qwe.write(b'0')
qwe.flush()
qwe.seek(0)
while True:
    d = qwe.read(65536 * 32)
    if len(d) != 65536 * 32:
        raise Exception('!')

----------
resolution:  -> wont fix
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16858>
_______________________________________


More information about the Python-bugs-list mailing list