Title: `str.replace` can crash under memory pressure · Issue #152228 · python/cpython · GitHub
Open Graph Title: `str.replace` can crash under memory pressure · Issue #152228 · python/cpython
X Title: `str.replace` can crash under memory pressure · Issue #152228 · python/cpython
Description: Crash report Refs #151763 Original description: https://gist.github.com/devdanzin/34b633230f6d2301ba17dec195ffe4b7 as OOM-009 Linked PRs gh-152229 gh-152615 gh-152616 gh-152617
Open Graph Description: Crash report Refs #151763 Original description: https://gist.github.com/devdanzin/34b633230f6d2301ba17dec195ffe4b7 as OOM-009 Linked PRs gh-152229 gh-152615 gh-152616 gh-152617
X Description: Crash report Refs #151763 Original description: https://gist.github.com/devdanzin/34b633230f6d2301ba17dec195ffe4b7 as OOM-009 Linked PRs gh-152229 gh-152615 gh-152616 gh-152617
Opengraph URL: https://github.com/python/cpython/issues/152228
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`str.replace` can crash under memory pressure","articleBody":"# Crash report\n\nRefs https://github.com/python/cpython/issues/151763\n\nOriginal description: https://gist.github.com/devdanzin/34b633230f6d2301ba17dec195ffe4b7 as OOM-009\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-152229\n* gh-152615\n* gh-152616\n* gh-152617\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/sobolevn","@type":"Person","name":"sobolevn"},"datePublished":"2026-06-25T18:31:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/152228/cpython/issues/152228"}
| 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:c2391331-c964-683b-60e7-5c816b217b0e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A072:277986:10ABB66:161C041:6A529A90 |
| html-safe-nonce | cb1056f96fc0de6782ec1230c9830a41643b06ba8b5fe0934277f636e2d2271d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDcyOjI3Nzk4NjoxMEFCQjY2OjE2MUMwNDE6NkE1MjlBOTAiLCJ2aXNpdG9yX2lkIjoiNjIwMzE0NDY2MTIzNDIyMzUyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 81f04dbd39e2be1cdb274edb569bf7b1086f14584f70f6d891d828107b8d4981 |
| hovercard-subject-tag | issue:4746450300 |
| 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/152228/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a0eda2a1c92316c1f567fd3d892e33992f5a3f40551f56d924e130c5ad64a1d5/python/cpython/issues/152228 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a0eda2a1c92316c1f567fd3d892e33992f5a3f40551f56d924e130c5ad64a1d5/python/cpython/issues/152228 |
| og:image:alt | Crash report Refs #151763 Original description: https://gist.github.com/devdanzin/34b633230f6d2301ba17dec195ffe4b7 as OOM-009 Linked PRs gh-152229 gh-152615 gh-152616 gh-152617 |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sobolevn |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width