Title: Add unstable C APIs for allocation-free raw-frame stack inspection · Issue #148925 · python/cpython · GitHub
Open Graph Title: Add unstable C APIs for allocation-free raw-frame stack inspection · Issue #148925 · python/cpython
X Title: Add unstable C APIs for allocation-free raw-frame stack inspection · Issue #148925 · python/cpython
Description: Feature or enhancement Proposal: #145559 proposes a signal-safe mechanism to print backtraces. This is useful for human debugging, but not ideal for tools because it requires parsing human-readable text. For example, a crash-tracker may ...
Open Graph Description: Feature or enhancement Proposal: #145559 proposes a signal-safe mechanism to print backtraces. This is useful for human debugging, but not ideal for tools because it requires parsing human-readable...
X Description: Feature or enhancement Proposal: #145559 proposes a signal-safe mechanism to print backtraces. This is useful for human debugging, but not ideal for tools because it requires parsing human-readable...
Opengraph URL: https://github.com/python/cpython/issues/148925
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add unstable C APIs for allocation-free raw-frame stack inspection","articleBody":"# Feature or enhancement\n\n### Proposal:\n\nhttps://github.com/python/cpython/issues/145559 proposes a signal-safe mechanism to print backtraces. This is useful for human debugging, but not ideal for tools because it requires parsing human-readable text. For example, a crash-tracker may wish to export and analyze structured backtraces. Similarly, a profiler can benefit from the ability to generate structure stack-traces in pure C, without needing to reason about the safety of reentering the python interpreter. \n\n### Has this already been discussed elsewhere?\n\nI have already discussed this feature proposal on Discourse\n\n### Links to previous discussion of this feature:\n\nhttps://discuss.python.org/t/pure-c-structured-traceback/106872/8\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-148930\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/danielsn","@type":"Person","name":"danielsn"},"datePublished":"2026-04-23T16:32:30Z","url":"https://github.com/python/cpython/issues/148925"}
| 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:a86b547d-2944-acc8-a984-f59dea8de96e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC8E:14EB6E:1F64362:2926773:6B022F62 |
| html-safe-nonce | c9c9dcaa8c84cc54df358e9a99d2a1e1d97846a63c8ed66e55499828bf526176 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzhFOjE0RUI2RToxRjY0MzYyOjI5MjY3NzM6NkIwMjJGNjIiLCJ2aXNpdG9yX2lkIjoiMjgxNzEyNjkwODc0NjE0OTczMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ca1255db4d7d89939c612a4cd3907ba2d6f3a465c71764933186e3e38f060946 |
| hovercard-subject-tag | issue:4317418896 |
| 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/148925/issue_layout |
| twitter:image | https://opengraph.githubassets.com/64d4fcfd9662db36514e43f06f7c02b5f41e8b2edf302f2e6bd2d70a39cf0041/python/cpython/issues/148925 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/64d4fcfd9662db36514e43f06f7c02b5f41e8b2edf302f2e6bd2d70a39cf0041/python/cpython/issues/148925 |
| og:image:alt | Feature or enhancement Proposal: #145559 proposes a signal-safe mechanism to print backtraces. This is useful for human debugging, but not ideal for tools because it requires parsing human-readable... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | danielsn |
| 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 | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width