Title: mmap.resize() can raise SystemError · Issue #138205 · python/cpython · GitHub
Open Graph Title: mmap.resize() can raise SystemError · Issue #138205 · python/cpython
X Title: mmap.resize() can raise SystemError · Issue #138205 · python/cpython
Description: Bug report On Posix platforms without mremap() (FreeBSD, OpenBSD, NetBSD, OpenIndiana) mmap.resize() raises SystemError. SystemError: mmap: resizing not available--no mremap() SystemError should only be raised in case of the misuse of th...
Open Graph Description: Bug report On Posix platforms without mremap() (FreeBSD, OpenBSD, NetBSD, OpenIndiana) mmap.resize() raises SystemError. SystemError: mmap: resizing not available--no mremap() SystemError should on...
X Description: Bug report On Posix platforms without mremap() (FreeBSD, OpenBSD, NetBSD, OpenIndiana) mmap.resize() raises SystemError. SystemError: mmap: resizing not available--no mremap() SystemError should on...
Opengraph URL: https://github.com/python/cpython/issues/138205
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mmap.resize() can raise SystemError","articleBody":"# Bug report\n\nOn Posix platforms without mremap() (FreeBSD, OpenBSD, NetBSD, OpenIndiana) `mmap.resize()` raises SystemError.\n```\nSystemError: mmap: resizing not available--no mremap()\n```\n\nSystemError should only be raised in case of the misuse of the C API or breaking internal consistency of the Python core. It is one step away from a segmentation fault or undefined behavior. If some function cannot be implemented, it should either do not exist (causing AttributeError) or raise more appropriate exception when called, like NotImplemenedError, or OSError(ENOTSUP), or simply RuntimeError.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-138276\n* gh-143440\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2025-08-27T19:02:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/138205/cpython/issues/138205"}
| 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:93f9483c-a793-9132-b337-e5055f0616b4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E406:8EAF6:394023:4FE9F3:6A57B91C |
| html-safe-nonce | 07202f43fc007f6b062b78cc5337636d7f71068942f48fec3b21df377a02bcea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDA2OjhFQUY2OjM5NDAyMzo0RkU5RjM6NkE1N0I5MUMiLCJ2aXNpdG9yX2lkIjoiNzE2NjM5Njg4OTMwMjU0NjcxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9ef8960ae25f4a517cb42fe73e77158dd376fa63a88860c1c8c9c775e6da76ae |
| hovercard-subject-tag | issue:3360543501 |
| 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/138205/issue_layout |
| twitter:image | https://opengraph.githubassets.com/75070120773d50393eb9d2a3ec4253551b5f3033b67f14e02525c8623549ecf8/python/cpython/issues/138205 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/75070120773d50393eb9d2a3ec4253551b5f3033b67f14e02525c8623549ecf8/python/cpython/issues/138205 |
| og:image:alt | Bug report On Posix platforms without mremap() (FreeBSD, OpenBSD, NetBSD, OpenIndiana) mmap.resize() raises SystemError. SystemError: mmap: resizing not available--no mremap() SystemError should on... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | serhiy-storchaka |
| hostname | github.com |
| expected-hostname | github.com |
| None | 899c314dfde9abcf8fc1fe8c04f09866b347ea06f43166d653afc482795c9fca |
| 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 | 67aa73f3bba9e68b2de0ebe01c65fcd120461cba |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width