Title: GitHub Action MSan job: test_os.test_posix.test_fexecve() fails · Issue #158868 · python/cpython · GitHub
Open Graph Title: GitHub Action MSan job: test_os.test_posix.test_fexecve() fails · Issue #158868 · python/cpython
X Title: GitHub Action MSan job: test_os.test_posix.test_fexecve() fails · Issue #158868 · python/cpython
Description: test_os.test_posix fails in the MSan job: FAIL: test_fexecve (test.test_os.test_posix.PosixTester.test_fexecve) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/runner/...
Open Graph Description: test_os.test_posix fails in the MSan job: FAIL: test_fexecve (test.test_os.test_posix.PosixTester.test_fexecve) ---------------------------------------------------------------------- Traceback (mos...
X Description: test_os.test_posix fails in the MSan job: FAIL: test_fexecve (test.test_os.test_posix.PosixTester.test_fexecve) ---------------------------------------------------------------------- Traceback (mos...
Opengraph URL: https://github.com/python/cpython/issues/158868
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"GitHub Action MSan job: test_os.test_posix.test_fexecve() fails","articleBody":"test_os.test_posix fails in the MSan job:\n\n```\nFAIL: test_fexecve (test.test_os.test_posix.PosixTester.test_fexecve)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/runner/work/cpython/cpython/Lib/test/test_os/test_posix.py\", line 219, in test_fexecve\n support.wait_process(pid, exitcode=0)\n ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^\n File \"/home/runner/work/cpython/cpython/Lib/test/support/__init__.py\", line 2491, in wait_process\n raise AssertionError(f\"process {pid} exited with code {exitcode2}, \"\n f\"but exit code {exitcode} is expected\")\nAssertionError: process 21288 exited with code 1, but exit code 0 is expected\n```\n\nMSan logs:\n\n```\n==> /home/runner/work/cpython/cpython/san_log.13546 \u003c==\n==13546==WARNING: MemorySanitizer failed to allocate 0x4000000000000021 bytes\n\n==> /home/runner/work/cpython/cpython/san_log.21288 \u003c==\nexecve failed, errno 2\n```\n\nDoes MSan change excve() behavior?\n\nSo far, I failed to reproduce the issue on Fedora 44 with clang version 22.1.8:\n\n```\n$ cat Modules/Setup.local\n*disabled*\n_bz2 _ctypes _curses _curses_panel _dbm _decimal _gdbm _hashlib\n_lzma _sqlite3 _ssl _tkinter _uuid _zstd readline zlib\n\n$ ./configure OPT=\"-O2 -g\" --with-memory-sanitizer --with-assertions CC=clang LD=clang\n$ make\n$ ./python -m test -v test_os.test_posix \n```\n\nThe GHA CI uses `CC.version: [clang] Ubuntu clang version 21.1.8 (6ubuntu1)` on Ubuntu 26.04.1 LTS (Resolute Raccoon).\n\ncc @StanFromIreland \n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-158865\n* gh-158872\n* gh-159179\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2026-10-05T15:23:45Z","url":"https://github.com/python/cpython/issues/158868"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:51a6306f-d551-4ff0-3258-6b6f0433194b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DEE8:19E4BB:3FA4899:5115B94:6B022025 |
| html-safe-nonce | 4a3c97db994f5e796b42c9ac5160ad7c227c39a1c8794ae7d90377a58e1fedc2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUU4OjE5RTRCQjozRkE0ODk5OjUxMTVCOTQ6NkIwMjIwMjUiLCJ2aXNpdG9yX2lkIjoiNTE0OTQ5MTQ3NDE1NjYyNTk1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2d5361920461dac1980122031b87b3778a63657c6dff1af526b4f5afe066d12a |
| hovercard-subject-tag | issue:5714644095 |
| 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/158868/issue_layout |
| twitter:image | https://opengraph.githubassets.com/541b70dd4d79527c37fccfc27cc989ba938d34cf76c75d861283906c9688e1e0/python/cpython/issues/158868 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/541b70dd4d79527c37fccfc27cc989ba938d34cf76c75d861283906c9688e1e0/python/cpython/issues/158868 |
| og:image:alt | test_os.test_posix fails in the MSan job: FAIL: test_fexecve (test.test_os.test_posix.PosixTester.test_fexecve) ---------------------------------------------------------------------- Traceback (mos... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width