Title: `python -m test -v test_call` segfault with clang 22.1.3 build · Issue #148284 · python/cpython · GitHub
Open Graph Title: `python -m test -v test_call` segfault with clang 22.1.3 build · Issue #148284 · python/cpython
X Title: `python -m test -v test_call` segfault with clang 22.1.3 build · Issue #148284 · python/cpython
Description: Crash report What happened? python 3.14.4 built as with Clang 22.1.3 and pyenv (on 3 different Ubuntu 24.04 machines): $ CC="clang" CXX="clang++" LDFLAGS="${LDFLAGS:+$LDFLAGS }-fuse-ld=lld" PYTHON_CONFIGURE_OPTS="--enable-optimizations -...
Open Graph Description: Crash report What happened? python 3.14.4 built as with Clang 22.1.3 and pyenv (on 3 different Ubuntu 24.04 machines): $ CC="clang" CXX="clang++" LDFLAGS="${LDFLAGS:+$LDFLAGS }-fuse-ld=lld" PYTHON_...
X Description: Crash report What happened? python 3.14.4 built as with Clang 22.1.3 and pyenv (on 3 different Ubuntu 24.04 machines): $ CC="clang" CXX="clang++" LDFLAGS="${LDFLAGS:+$LDFLA...
Opengraph URL: https://github.com/python/cpython/issues/148284
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`python -m test -v test_call` segfault with clang 22.1.3 build","articleBody":"# Crash report\n\n### What happened?\n\npython 3.14.4 built as with `Clang 22.1.3` and `pyenv` (on 3 different Ubuntu 24.04 machines):\n```\n$ CC=\"clang\" CXX=\"clang++\" LDFLAGS=\"${LDFLAGS:+$LDFLAGS }-fuse-ld=lld\" PYTHON_CONFIGURE_OPTS=\"--enable-optimizations --with-lto\" PYTHON_CFLAGS=\"-march=native -mtune=native\" pyenv install 3.14.4\n```\n\n```\n$ python -m test -v test_call\n== CPython 3.14.4 (main, Apr 9 2026, 07:24:07) [Clang 22.1.3 (++20260402073256+4250a0fc5de9-1~exp1~20260402073413.57)]\n== Linux-6.8.0-107-generic-x86_64-with-glibc2.39 little-endian\n== Python build: release shared ThinLTO+PGO\n== cwd: /tmp/test_python_worker_93691æ\n== CPU count: 4\n== encodings: locale=UTF-8 FS=utf-8\n== resources: all test resources are disabled, use -u option to unskip tests\n\nUsing random seed: 1791553283\n0:00:00 load avg: 0.00 Run 1 test sequentially in a single process\n0:00:00 load avg: 0.00 [1/1] test_call\ntest_module_not_callable_no_suggestion_0 (test.test_call.CFunctionCallsErrorMessages.test_module_not_callable_no_suggestion_0) ... ok\n...\n...\ntest_margin_is_sufficient (test.test_call.TestRecursion.test_margin_is_sufficient) ... FAIL\ntest_recursion_with_kwargs (test.test_call.TestRecursion.test_recursion_with_kwargs) ... ok\ntest_super_deep (test.test_call.TestRecursion.test_super_deep) ... Fatal Python error: Segmentation fault\n\nCurrent thread 0x00007a261a915b80 [python] (most recent call first):\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n File \"/home/usr00/.pyenv/versions/3.14.4/lib/python3.14/test/test_call.py\", line 1081 in c_recurse\n\nCurrent thread's C stack trace (most recent call first):\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at _Py_DumpStack+0x29 [0x7a261b007919]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at +0x60dd5f [0x7a261b00dd5f]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at +0x60dc2d [0x7a261b00dc2d]\n Binary file \"/lib/x86_64-linux-gnu/libc.so.6\", at +0x45330 [0x7a261a645330]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at _PyEval_EvalFrameDefault+0x226 [0x7a261ac164b6]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at +0x2a7e3c [0x7a261aca7e3c]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at PyObject_Vectorcall+0x59 [0x7a261ad003a9]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at _PyEval_EvalFrameDefault+0x1da74 [0x7a261ac33d04]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at +0x2a7e3c [0x7a261aca7e3c]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at PyObject_Vectorcall+0x59 [0x7a261ad003a9]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at _PyEval_EvalFrameDefault+0x1da74 [0x7a261ac33d04]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at +0x2a7e3c [0x7a261aca7e3c]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at PyObject_Vectorcall+0x59 [0x7a261ad003a9]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at _PyEval_EvalFrameDefault+0x1da74 [0x7a261ac33d04]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at +0x2a7e3c [0x7a261aca7e3c]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at PyObject_Vectorcall+0x59 [0x7a261ad003a9]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at _PyEval_EvalFrameDefault+0x1da74 [0x7a261ac33d04]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at +0x2a7e3c [0x7a261aca7e3c]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at PyObject_Vectorcall+0x59 [0x7a261ad003a9]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at _PyEval_EvalFrameDefault+0x1da74 [0x7a261ac33d04]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at +0x2a7e3c [0x7a261aca7e3c]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at PyObject_Vectorcall+0x59 [0x7a261ad003a9]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at _PyEval_EvalFrameDefault+0x1da74 [0x7a261ac33d04]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at +0x2a7e3c [0x7a261aca7e3c]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at PyObject_Vectorcall+0x59 [0x7a261ad003a9]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at _PyEval_EvalFrameDefault+0x1da74 [0x7a261ac33d04]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at +0x2a7e3c [0x7a261aca7e3c]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at PyObject_Vectorcall+0x59 [0x7a261ad003a9]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at _PyEval_EvalFrameDefault+0x1da74 [0x7a261ac33d04]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at +0x2a7e3c [0x7a261aca7e3c]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at PyObject_Vectorcall+0x59 [0x7a261ad003a9]\n Binary file \"/home/usr00/.pyenv/versions/3.14.4/lib/libpython3.14.so.1.0\", at _PyEval_EvalFrameDefault+0x1da74 [0x7a261ac33d04]\n \u003ctruncated rest of calls>\n\nExtension modules: _testcapi, _testlimitedcapi, _testinternalcapi (total: 3)\nSegmentation fault (core dumped)\n```\n\n\n### CPython versions tested on:\n\n3.14\n\n### Operating systems tested on:\n\nLinux\n\n### Output from running 'python -VV' on the command line:\n\nPython 3.14.4 (main, Apr 9 2026, 07:24:07) [Clang 22.1.3 (++20260402073256+4250a0fc5de9-1~exp1~20260402073413.57)]\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-148310\n* gh-148326\n* gh-148334\n* gh-148349\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/ppigazzini","@type":"Person","name":"ppigazzini"},"datePublished":"2026-04-09T08:03:44Z","url":"https://github.com/python/cpython/issues/148284"}
| 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:4f238948-ff77-4eec-94c0-6de792d454fd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A824:14700E:46898F4:5967611:6B023A99 |
| html-safe-nonce | ab8e1ccba2e6ec7262d13974c4928954876811f75b2113bd11d4795672a1fe14 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODI0OjE0NzAwRTo0Njg5OEY0OjU5Njc2MTE6NkIwMjNBOTkiLCJ2aXNpdG9yX2lkIjoiNTM0MjM2Nzk3MTQwNDgyMzE5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 38715dd4383f1161eb6000fe36f8466c5e561d53b31eb868252612ccaa70df7b |
| hovercard-subject-tag | issue:4230566301 |
| 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/148284/issue_layout |
| twitter:image | https://opengraph.githubassets.com/92a20b498b3ea3a9630db83b2dcf43475e3bc4247cc47d6fe3b102e09cb3448e/python/cpython/issues/148284 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/92a20b498b3ea3a9630db83b2dcf43475e3bc4247cc47d6fe3b102e09cb3448e/python/cpython/issues/148284 |
| og:image:alt | Crash report What happened? python 3.14.4 built as with Clang 22.1.3 and pyenv (on 3 different Ubuntu 24.04 machines): $ CC="clang" CXX="clang++" LDFLAGS="${LDFLAGS:+$LDFLAGS }-fuse-ld=lld" PYTHON_... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ppigazzini |
| 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