Title: Implement stack overflow protection for linux based on actual stack depth · Issue #130396 · python/cpython · GitHub
Open Graph Title: Implement stack overflow protection for linux based on actual stack depth · Issue #130396 · python/cpython
X Title: Implement stack overflow protection for linux based on actual stack depth · Issue #130396 · python/cpython
Description: Linux doesn't offer an API for determining the current stack bounds, at least not that I am aware of. This means we will need to probe the stack using a SIGSEGV handler and longjmp/setjump. It is somewhat ugly but should work. Actually, ...
Open Graph Description: Linux doesn't offer an API for determining the current stack bounds, at least not that I am aware of. This means we will need to probe the stack using a SIGSEGV handler and longjmp/setjump. It is s...
X Description: Linux doesn't offer an API for determining the current stack bounds, at least not that I am aware of. This means we will need to probe the stack using a SIGSEGV handler and longjmp/setjump. It ...
Opengraph URL: https://github.com/python/cpython/issues/130396
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Implement stack overflow protection for linux based on actual stack depth","articleBody":"Linux doesn't offer an API for determining the current stack bounds, at least not that I am aware of.\n\nThis means we will need to probe the stack using a SIGSEGV handler and longjmp/setjump.\nIt is somewhat ugly but should work.\n\nActually, it looks like `pthread_get_stackaddr_np` might work, and avoid all the complexity of the signal handler. In theory, it should work for MacOS as well.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-130398\n* gh-130550\n* gh-130552\n* gh-130554\n* gh-130572\n* gh-130573\n* gh-130593\n* gh-130966\n* gh-131088\n* gh-135928\n* gh-136173\n* gh-141951\n* gh-142012\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/markshannon","@type":"Person","name":"markshannon"},"datePublished":"2025-02-21T10:15:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/130396/cpython/issues/130396"}
| 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:186626d7-e1f2-b90e-7327-e9ee89b3fea1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A798:ECDF9:9CD2CF:D97F28:696A81D2 |
| html-safe-nonce | b783fb0044cfb11b90cef0af124371ba3ddf8974caaa243f64ea021c39f72538 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzk4OkVDREY5OjlDRDJDRjpEOTdGMjg6Njk2QTgxRDIiLCJ2aXNpdG9yX2lkIjoiMjAyODUyNjMxODUyODM5Nzc3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fdf61e70d5fb964d5267f268aeff37c99fdb787d3ef62b3c43890bcade17ce31 |
| hovercard-subject-tag | issue:2868599370 |
| 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/130396/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e2c6dbd36f4053bda95854e761113214f7d115d8913e3b30c5e8450c5124aa43/python/cpython/issues/130396 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e2c6dbd36f4053bda95854e761113214f7d115d8913e3b30c5e8450c5124aa43/python/cpython/issues/130396 |
| og:image:alt | Linux doesn't offer an API for determining the current stack bounds, at least not that I am aware of. This means we will need to probe the stack using a SIGSEGV handler and longjmp/setjump. It is s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | markshannon |
| hostname | github.com |
| expected-hostname | github.com |
| None | 913560fa317c3c5a71e34f9b19253c9f09d02b4b958a86c2a56f4c8541116377 |
| 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 | 5998c30593994bf2589055aef7b22d368a499367 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width