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.

classification
Title: test_largefile fails on android
Type: behavior Stage: needs patch
Components: Tests Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: cstratak
Priority: normal Keywords:

Created on 2019-11-19 16:06 by xdegaye, last changed 2022-04-11 14:59 by admin.

Messages (3)
msg356976 - (view) Author: Xavier de Gaye (xdegaye) * (Python triager) Date: 2019-11-19 16:06
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
msg356977 - (view) Author: Charalampos Stratakis (cstratak) * Date: 2019-11-19 16:15
I got the same failures on Fedora rawhide. See https://bugs.python.org/issue37096
msg358168 - (view) Author: Xavier de Gaye (xdegaye) * (Python triager) Date: 2019-12-10 07:47
Not interested anymore in android stuff.
History
Date User Action Args
2022-04-11 14:59:23adminsetgithub: 83031
2019-12-10 07:55:10xdegayesetnosy: - xdegaye
2019-12-10 07:47:27xdegayesetmessages: + msg358168
2019-11-19 16:15:09cstrataksetnosy: + cstratak
messages: + msg356977
2019-11-19 16:06:11xdegayecreate