Title: perf trampoline segfaults on UBSan builds · Issue #161288 · python/cpython · GitHub
Open Graph Title: perf trampoline segfaults on UBSan builds · Issue #161288 · python/cpython
X Title: perf trampoline segfaults on UBSan builds · Issue #161288 · python/cpython
Description: Crash report Caught on #161278. On a UBSan build ./python -X perf -c pass segfaults at: cpython/Python/perf_trampoline.c Line 464 in 7e3290d return f(ts, frame, throw, prev_eval_frame != NULL ? prev_eval_frame : _PyEval_EvalFrameDefault)...
Open Graph Description: Crash report Caught on #161278. On a UBSan build ./python -X perf -c pass segfaults at: cpython/Python/perf_trampoline.c Line 464 in 7e3290d return f(ts, frame, throw, prev_eval_frame != NULL ? pre...
X Description: Crash report Caught on #161278. On a UBSan build ./python -X perf -c pass segfaults at: cpython/Python/perf_trampoline.c Line 464 in 7e3290d return f(ts, frame, throw, prev_eval_frame != NULL ? pre...
Opengraph URL: https://github.com/python/cpython/issues/161288
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"perf trampoline segfaults on UBSan builds","articleBody":"### Crash report\n\nCaught on #161278. On a UBSan build `./python -X perf -c pass` segfaults at:\n\nhttps://github.com/python/cpython/blob/7e3290d94427cdbfe0483f0a99d589b784d77c1a/Python/perf_trampoline.c#L464\n\n`-fsanitize=function` reads a type signature 8 bytes before the called function on every call through a function pointer. The trampoline is machine code copied into an mmap'd buffer and has none. It sits at the start of the buffer, so the 8 bytes before it are unmapped and the read segfaults.\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n### Output from running 'python -VV' on the command line:\n\n_No response_\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-161294\n* gh-161348\n* gh-161350\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/NekoAsakura","@type":"Person","name":"NekoAsakura"},"datePublished":"2026-11-04T01:17:48Z","url":"https://github.com/python/cpython/issues/161288"}
| 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:9a551e1c-0d0b-d40d-2395-a16bef1d1779 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 92AA:187C1E:1EBD1A0:287BD11:6B0231C3 |
| html-safe-nonce | 8dd3a54fa3b18d2a1eb44ceb66d4cc4b65633f4407a69e95c56b7e8154ccbe0c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MkFBOjE4N0MxRToxRUJEMUEwOjI4N0JEMTE6NkIwMjMxQzMiLCJ2aXNpdG9yX2lkIjoiNDU3NjAxMTMxNzQ4NzQ4MTI4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | eed1dda50db444bd1d6cca0979ff1940508e0a3601289b8e492ad96b5beb7224 |
| hovercard-subject-tag | issue:6194294849 |
| 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/161288/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3dee6ae404c50c88b0c29e26d91b84eeb3d8c983932530568c7df14d7b1724bc/python/cpython/issues/161288 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3dee6ae404c50c88b0c29e26d91b84eeb3d8c983932530568c7df14d7b1724bc/python/cpython/issues/161288 |
| og:image:alt | Crash report Caught on #161278. On a UBSan build ./python -X perf -c pass segfaults at: cpython/Python/perf_trampoline.c Line 464 in 7e3290d return f(ts, frame, throw, prev_eval_frame != NULL ? pre... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | NekoAsakura |
| 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