Title: SIGSEGV with generators after direct change in gi_frame · Issue #125038 · python/cpython · GitHub
Open Graph Title: SIGSEGV with generators after direct change in gi_frame · Issue #125038 · python/cpython
X Title: SIGSEGV with generators after direct change in gi_frame · Issue #125038 · python/cpython
Description: Crash report What happened? There is a segmentation fault with simple code snippet: g = (x for x in range(10)) g.gi_frame.f_locals['.0'] = range(20) list(g) print("No segfault") There is a SIGSEGV on my linux machine (Debian GNU/Linux 10...
Open Graph Description: Crash report What happened? There is a segmentation fault with simple code snippet: g = (x for x in range(10)) g.gi_frame.f_locals['.0'] = range(20) list(g) print("No segfault") There is a SIGSEGV ...
X Description: Crash report What happened? There is a segmentation fault with simple code snippet: g = (x for x in range(10)) g.gi_frame.f_locals['.0'] = range(20) list(g) print("No segfault") T...
Opengraph URL: https://github.com/python/cpython/issues/125038
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SIGSEGV with generators after direct change in gi_frame","articleBody":"# Crash report\r\n\r\n### What happened?\r\n\r\nThere is a segmentation fault with simple code snippet:\r\n```python\r\ng = (x for x in range(10))\r\ng.gi_frame.f_locals['.0'] = range(20)\r\nlist(g)\r\nprint(\"No segfault\")\r\n```\r\nThere is a SIGSEGV on my linux machine (Debian GNU/Linux 10) with both main branch Python and 3.13 version.\r\nMessage \"No segfault\" is printed on Python 3.7.3 (default, Oct 31 2022, 14:04:00).\r\n\r\n### CPython versions tested on:\r\n\r\n3.13, CPython main branch\r\n\r\n### Operating systems tested on:\r\n\r\nLinux\r\n\r\n### Output from running 'python -VV' on the command line:\r\n\r\nPython 3.14.0a0 (heads/peg_parser_remove_redundant_functions:e1b62e5cf79, Oct 3 2024, 14:38:46) [GCC 8.3.0]\r\n\r\n\u003c!-- gh-linked-prs --\u003e\r\n### Linked PRs\r\n* gh-125051\r\n* gh-125178\r\n* gh-125846\n* gh-126408\n\u003c!-- /gh-linked-prs --\u003e\r\n","author":{"url":"https://github.com/efimov-mikhail","@type":"Person","name":"efimov-mikhail"},"datePublished":"2024-10-07T10:56:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/125038/cpython/issues/125038"}
| 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:5db01207-19d0-1de7-6d79-13274e7ea469 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D5C0:29957D:55A439:777E29:696A7949 |
| html-safe-nonce | 259ff937191b2b62c69724b12b49d34587845e8e71d6db6806933a5108be2c4c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENUMwOjI5OTU3RDo1NUE0Mzk6Nzc3RTI5OjY5NkE3OTQ5IiwidmlzaXRvcl9pZCI6IjQwMzgxMzI5ODIyMjY3Nzg0NDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 91dc947793904dea234d7034dc088c9bdb1c6f56b531260ed40b29e9ddf2aae1 |
| hovercard-subject-tag | issue:2570078836 |
| 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/125038/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cde2d3024f36b3660016146c61e5c0e250c93ae844c5b813e90ba64c73289672/python/cpython/issues/125038 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cde2d3024f36b3660016146c61e5c0e250c93ae844c5b813e90ba64c73289672/python/cpython/issues/125038 |
| og:image:alt | Crash report What happened? There is a segmentation fault with simple code snippet: g = (x for x in range(10)) g.gi_frame.f_locals['.0'] = range(20) list(g) print("No segfault") There is a SIGSEGV ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | efimov-mikhail |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5b774e44f85c14a75886edd04ddda4e5a25ddebbb241bcbb590b08a3048730e8 |
| 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 | cc5f4eee261b3601c1e98e217ceaf28508b9567e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width