Closed
Description
Bug report
Bug description:
Many failures in the test if the strace version doesn't support some of the options:
25-05-08T15:38:14.817Z] ======================================================================
[2025-05-08T15:38:14.817Z] FAIL: test_syscalls_read (test.test_fileio.CAutoFileTests.test_syscalls_read) (name='open builtin with default options')
[2025-05-08T15:38:14.817Z] Check set of system calls during common I/O patterns
[2025-05-08T15:38:14.817Z] ----------------------------------------------------------------------
[2025-05-08T15:38:14.817Z] Traceback (most recent call last):
[2025-05-08T15:38:14.817Z] File "/bb/jenkins_work/python/workspace/python_python3.14-debian_PR-1/distro/refroot/amd64/opt/bb/lib64/python3.14/test/test_fileio.py", line 381, in check_readall
[2025-05-08T15:38:14.817Z] syscalls = strace_helper.get_events(code, _strace_flags,
[2025-05-08T15:38:14.817Z] prelude=prelude,
[2025-05-08T15:38:14.817Z] cleanup=cleanup)
[2025-05-08T15:38:14.817Z] File "/bb/jenkins_work/python/workspace/python_python3.14-debian_PR-1/distro/refroot/amd64/opt/bb/lib64/python3.14/test/support/strace_helper.py", line 162, in get_events
[2025-05-08T15:38:14.817Z] trace = strace_python(to_run, strace_flags)
[2025-05-08T15:38:14.817Z] File "/bb/jenkins_work/python/workspace/python_python3.14-debian_PR-1/distro/refroot/amd64/opt/bb/lib64/python3.14/test/support/strace_helper.py", line 122, in strace_python
[2025-05-08T15:38:14.817Z] res.fail(cmd_line)
[2025-05-08T15:38:14.817Z] ~~~~~~~~^^^^^^^^^^
[2025-05-08T15:38:14.817Z] File "/bb/jenkins_work/python/workspace/python_python3.14-debian_PR-1/distro/refroot/amd64/opt/bb/lib64/python3.14/test/support/script_helper.py", line 80, in fail
[2025-05-08T15:38:14.817Z] raise AssertionError(f"Process return code is {exitcode}\n"
[2025-05-08T15:38:14.817Z] ...<10 lines>...
[2025-05-08T15:38:14.817Z] f"---")
[2025-05-08T15:38:14.817Z] AssertionError: Process return code is 1
[2025-05-08T15:38:14.817Z] command line: ['/usr/bin/strace', '--trace=%file,%desc', '/bb/jenkins_work/python/workspace/python_python3.14-debian_PR-1/distro/refroot/amd64/opt/bb/bin/python3.14', '-X', 'faulthandler', '-I', '-c', '\nprint("MARK prelude", flush=True)\n\nprint("MARK code", flush=True)\n\nf = open(\'@test_123835_tmpæ\')\nf.read()\nf.close()\n\nprint("MARK cleanup", flush=True)\n\nprint("MARK __shutdown", flush=True)\n']
[2025-05-08T15:38:14.817Z]
[2025-05-08T15:38:14.817Z] stdout:
[2025-05-08T15:38:14.817Z] ---
[2025-05-08T15:38:14.817Z]
[2025-05-08T15:38:14.817Z] ---
[2025-05-08T15:38:14.817Z]
[2025-05-08T15:38:14.817Z] stderr:
[2025-05-08T15:38:14.817Z] ---
[2025-05-08T15:38:14.817Z] /usr/bin/strace: invalid option -- '-'
[2025-05-08T15:38:14.817Z] Try '/usr/bin/strace -h' for more information.
[2025-05-08T15:38:14.817Z] ---
CPython versions tested on:
3.14
Operating systems tested on:
Linux