Title: test_fileio fails if strace version is too old · Issue #133741 · python/cpython · GitHub
Open Graph Title: test_fileio fails if strace version is too old · Issue #133741 · python/cpython
X Title: test_fileio fails if strace version is too old · Issue #133741 · python/cpython
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] FA...
Open Graph 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] ============================================================...
X 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] ========================================================...
Opengraph URL: https://github.com/python/cpython/issues/133741
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_fileio fails if strace version is too old","articleBody":"# Bug report\n\n### Bug description:\n\nMany failures in the test if the strace version doesn't support some of the options:\n\n```\n25-05-08T15:38:14.817Z] ======================================================================\n[2025-05-08T15:38:14.817Z] FAIL: test_syscalls_read (test.test_fileio.CAutoFileTests.test_syscalls_read) (name='open builtin with default options')\n[2025-05-08T15:38:14.817Z] Check set of system calls during common I/O patterns\n[2025-05-08T15:38:14.817Z] ----------------------------------------------------------------------\n[2025-05-08T15:38:14.817Z] Traceback (most recent call last):\n[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\n[2025-05-08T15:38:14.817Z] syscalls = strace_helper.get_events(code, _strace_flags,\n[2025-05-08T15:38:14.817Z] prelude=prelude,\n[2025-05-08T15:38:14.817Z] cleanup=cleanup)\n[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\n[2025-05-08T15:38:14.817Z] trace = strace_python(to_run, strace_flags)\n[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\n[2025-05-08T15:38:14.817Z] res.fail(cmd_line)\n[2025-05-08T15:38:14.817Z] ~~~~~~~~^^^^^^^^^^\n[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\n[2025-05-08T15:38:14.817Z] raise AssertionError(f\"Process return code is {exitcode}\\n\"\n[2025-05-08T15:38:14.817Z] ...\u003c10 lines\u003e...\n[2025-05-08T15:38:14.817Z] f\"---\")\n[2025-05-08T15:38:14.817Z] AssertionError: Process return code is 1\n[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']\n[2025-05-08T15:38:14.817Z] \n[2025-05-08T15:38:14.817Z] stdout:\n[2025-05-08T15:38:14.817Z] ---\n[2025-05-08T15:38:14.817Z] \n[2025-05-08T15:38:14.817Z] ---\n[2025-05-08T15:38:14.817Z] \n[2025-05-08T15:38:14.817Z] stderr:\n[2025-05-08T15:38:14.817Z] ---\n[2025-05-08T15:38:14.817Z] /usr/bin/strace: invalid option -- '-'\n[2025-05-08T15:38:14.817Z] Try '/usr/bin/strace -h' for more information.\n[2025-05-08T15:38:14.817Z] ---\n```\n\n### CPython versions tested on:\n\n3.14\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-133763\n* gh-133766\n* gh-133774\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/pablogsal","@type":"Person","name":"pablogsal"},"datePublished":"2025-05-09T12:22:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/133741/cpython/issues/133741"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6633e7fb-90cd-f5d7-b9da-d94e25c6008a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB88:108FC:28604F4:366736D:6A53A389 |
| html-safe-nonce | 52197db6d6d79b1687424f2403d32daef7e1610886f113d0c819dd4769962bfd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjg4OjEwOEZDOjI4NjA0RjQ6MzY2NzM2RDo2QTUzQTM4OSIsInZpc2l0b3JfaWQiOiI2OTgyODYxMDU2ODY0NjU4MzEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 013b2ecdf3cf40b1a099af5537fa04c5f8274c89bdf9fe9e6a086fa429c6ba5e |
| hovercard-subject-tag | issue:3052006743 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/133741/issue_layout |
| twitter:image | https://opengraph.githubassets.com/497ac6837f1dfdbbb3c7f6c280a498560cfc34ce0f633ee8ed242aff9a393375/python/cpython/issues/133741 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/497ac6837f1dfdbbb3c7f6c280a498560cfc34ce0f633ee8ed242aff9a393375/python/cpython/issues/133741 |
| og:image:alt | 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] ============================================================... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pablogsal |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width