Skip to content

test_largefile fails on android #83031

Description

@xdegaye
mannequin
BPO 38850
Nosy @stratakis

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2019-11-19.16:06:11.336>
labels = ['type-bug', 'tests', '3.9']
title = 'test_largefile fails on android'
updated_at = <Date 2019-12-10.07:55:10.076>
user = 'https://github.com/xdegaye'

bugs.python.org fields:

activity = <Date 2019-12-10.07:55:10.076>
actor = 'xdegaye'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Tests']
creation = <Date 2019-11-19.16:06:11.336>
creator = 'xdegaye'
dependencies = []
files = []
hgrepos = []
issue_num = 38850
keywords = []
message_count = 3.0
messages = ['356976', '356977', '358168']
nosy_count = 1.0
nosy_names = ['cstratak']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'needs patch'
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue38850'
versions = ['Python 3.9']

Activity

  1. xdegaye commented on Nov 19, 2019

    xdegayemannequin
    MannequinAuthor

    The failure on andoid API 24:

    generic_x86_64:/data/local/tmp/python $ python -m test -v test_largefile -m test_it
    == CPython 3.9.0a0 (heads/abifa-dirty:cf805c25e6, Nov 18 2019, 16:40:26) [Clang 8.0.2 (https://andro
    id.googlesource.com/toolchain/clang 40173bab62ec7462
    == Linux-3.10.0+-x86_64-with-libc little-endian
    == cwd: /data/local/tmp/python/tmp/test_python_2626
    == CPU count: 2
    == encodings: locale=UTF-8, FS=utf-8
    0:00:00 Run tests sequentially
    0:00:00 [1/1] test_largefile
    test_it (test.test_largefile.TestCopyfile) ... ERROR
    test_it (test.test_largefile.TestSocketSendfile) ... Exception in thread Thread-1:
    Traceback (most recent call last):
      File "/data/local/tmp/python/lib/python3.9/threading.py", line 944, in _bootstrap_inner
        self.run()
      File "/data/local/tmp/python/lib/python3.9/threading.py", line 882, in run
        self._target(*self._args, **self._kwargs)
      File "/data/local/tmp/python/lib/python3.9/test/test_largefile.py", line 193, in run
        f.write(chunk)
    OSError: [Errno 28] No space left on device
    ERROR

    ======================================================================
    ERROR: test_it (test.test_largefile.TestCopyfile)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "/data/local/tmp/python/lib/python3.9/test/test_largefile.py", line 160, in test_it
        shutil.copyfile(TESTFN, TESTFN2)
      File "/data/local/tmp/python/lib/python3.9/shutil.py", line 270, in copyfile
        _fastcopy_sendfile(fsrc, fdst)
      File "/data/local/tmp/python/lib/python3.9/shutil.py", line 163, in _fastcopy_sendfile
        raise err from None
      File "/data/local/tmp/python/lib/python3.9/shutil.py", line 149, in _fastcopy_sendfile
        sent = os.sendfile(outfd, infd, offset, blocksize)
    OSError: [Errno 28] No space left on device: '@test_2626_tmp' -> '@test_2626_tmp2'

    ======================================================================
    ERROR: test_it (test.test_largefile.TestSocketSendfile)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "/data/local/tmp/python/lib/python3.9/test/test_largefile.py", line 207, in test_it
        shutil.copyfile(TESTFN, TESTFN2)
      File "/data/local/tmp/python/lib/python3.9/shutil.py", line 270, in copyfile
        _fastcopy_sendfile(fsrc, fdst)
      File "/data/local/tmp/python/lib/python3.9/shutil.py", line 163, in _fastcopy_sendfile
        raise err from None
      File "/data/local/tmp/python/lib/python3.9/shutil.py", line 149, in _fastcopy_sendfile
        sent = os.sendfile(outfd, infd, offset, blocksize)
    OSError: [Errno 28] No space left on device: '@test_2626_tmp' -> '@test_2626_tmp2'

    ======================================================================
    ERROR: test_it (test.test_largefile.TestSocketSendfile)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "/data/local/tmp/python/lib/python3.9/test/test_largefile.py", line 207, in test_it
        client.sendfile(f)
      File "/data/local/tmp/python/lib/python3.9/socket.py", line 483, in sendfile
        return self._sendfile_use_sendfile(file, offset, count)
      File "/data/local/tmp/python/lib/python3.9/socket.py", line 400, in _sendfile_use_sendfile
        raise err from None
      File "/data/local/tmp/python/lib/python3.9/socket.py", line 386, in _sendfile_use_sendfile
        sent = os_sendfile(sockno, fileno, offset, blocksize)
    BrokenPipeError: [Errno 32] Broken pipe

    Ran 2 tests in 1.207s

    FAILED (errors=2)
    test test_largefile failed
    test_largefile failed

    == Tests result: FAILURE ==

    1 test failed:
    test_largefile

    Total duration: 1.4 sec
    Tests result: FAILURE

  2. added
    testsTests in the Lib/test dir
    type-bugAn unexpected behavior, bug, or error
    on Nov 19, 2019
  3. stratakis commented on Nov 19, 2019

    stratakismannequin
    Mannequin

    I got the same failures on Fedora rawhide. See https://bugs.python.org/issue37096

  4. xdegaye commented on Dec 10, 2019

    xdegayemannequin
    MannequinAuthor

    Not interested anymore in android stuff.

  5. transferred this issue fromon Apr 10, 2022
  6. kumaraditya303 commented on May 27, 2022

    @kumaraditya303
    Contributor

    Fixed by #18261

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.9 (EOL)end of lifetestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions