Skip to content

test_asyncio test_sendfile_close_peer_in_the_middle_of_receiving fails on ppc64le Linux 6.10.x #123384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hroncok opened this issue Aug 27, 2024 · 2 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@hroncok
Copy link
Contributor

hroncok commented Aug 27, 2024

Bug report

Bug description:

Since the Fedora builders were upgraded to Linux kernel 6.10.4 and/or 6.10.5, we see the following test failures when we build CPython on Fedora Linux 39, 40, 41, or 42:

======================================================================
FAIL: test_sendfile_close_peer_in_the_middle_of_receiving (test.test_asyncio.test_sendfile.EPollEventLoopTests.test_sendfile_close_peer_in_the_middle_of_receiving)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.12/test/test_asyncio/test_sendfile.py", line 466, in test_sendfile_close_peer_in_the_middle_of_receiving
    with self.assertRaises(ConnectionError):
AssertionError: ConnectionError not raised

======================================================================
FAIL: test_sendfile_close_peer_in_the_middle_of_receiving (test.test_asyncio.test_sendfile.PollEventLoopTests.test_sendfile_close_peer_in_the_middle_of_receiving)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.12/test/test_asyncio/test_sendfile.py", line 466, in test_sendfile_close_peer_in_the_middle_of_receiving
    with self.assertRaises(ConnectionError):
AssertionError: ConnectionError not raised

======================================================================
FAIL: test_sendfile_close_peer_in_the_middle_of_receiving (test.test_asyncio.test_sendfile.SelectEventLoopTests.test_sendfile_close_peer_in_the_middle_of_receiving)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.12/test/test_asyncio/test_sendfile.py", line 466, in test_sendfile_close_peer_in_the_middle_of_receiving
    with self.assertRaises(ConnectionError):
AssertionError: ConnectionError not raised

----------------------------------------------------------------------
Ran 3 tests in 0.103s

I was able to reproduce this by upgrading a Fedora Linxu 39 ppc64le machine from an older kernel (6.8.x) to 6.10.6-100.fc39.ppc64le. The failures were not present with the older kernel but are present with the new one. No need to rebuild Python on the new kernel, just run it (e.g. via python3.12 -m test test_asyncio -wW -j8).

This is similar to #122136 but unlike that, this only happens on ppc64le. This also affects all the supported CPython versions we ship.

CPython versions tested on:

3.8, 3.9, 3.10, 3.11, 3.12, 3.13

Operating systems tested on:

Linux

@hroncok hroncok added the type-bug An unexpected behavior, bug, or error label Aug 27, 2024
@hroncok
Copy link
Contributor Author

hroncok commented Aug 27, 2024

a758424

@hroncok
Copy link
Contributor Author

hroncok commented Aug 27, 2024

This is a duplicate of #120226

@hroncok hroncok closed this as not planned Won't fix, can't repro, duplicate, stale Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant