Skip to content

test_pty: test_openpty() failed on aarch64 RHEL8 LTO + PGO 3.x #109960

Closed
@vstinner

Description

@vstinner

aarch64 RHEL8 LTO + PGO 3.x:

0:00:16 load avg: 8.60 [299/463/1] test_pty failed (1 failure)
hi there
test_fork (test.test_pty.PtyTest.test_fork) ... ok
test_master_read (test.test_pty.PtyTest.test_master_read) ... ok
test_openpty (test.test_pty.PtyTest.test_openpty) ... FAIL

Stdout:
tty.tcgetattr(pty.STDIN_FILENO) failed
Calling pty.openpty()
Got master_fd=3, slave_fd=4, slave_name=None
Writing to slave_fd
Writing chunked output
test_spawn_doesnt_hang (test.test_pty.PtyTest.test_spawn_doesnt_hang) ... ok
test__copy_to_each (test.test_pty.SmallPtyTests.test__copy_to_each)
Test the normal data case on both master_fd and stdin. ... ok
test__restore_tty_mode_normal_return (test.test_pty.SmallPtyTests.test__restore_tty_mode_normal_return)
Test that spawn resets the tty mode no when _copy returns normally. ... ok

======================================================================
FAIL: test_openpty (test.test_pty.PtyTest.test_openpty)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-aarch64.lto-pgo/build/Lib/test/test_pty.py", line 192, in test_openpty
    s2 = _readline(master_fd)
         ^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-aarch64.lto-pgo/build/Lib/test/test_pty.py", line 68, in _readline
    return reader.readline()
           ^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-aarch64.lto-pgo/build/Lib/test/test_pty.py", line 105, in handle_sig
    self.fail("isatty hung")
AssertionError: isatty hung

Stdout:
tty.tcgetattr(pty.STDIN_FILENO) failed
Calling pty.openpty()
Got master_fd=3, slave_fd=4, slave_name=None
Writing to slave_fd
Writing chunked output

----------------------------------------------------------------------
Ran 6 tests in 10.023s

FAILED (failures=1)
test test_pty failed

build: https://buildbot.python.org/all/#/builders/78/builds/5451

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions