Title: `bm_tornado_http` crashes on PyPy 3.11: "BufferError: Existing exports of data: object cannot be re-sized" · Issue #510 · python/pyperformance · GitHub
Open Graph Title: `bm_tornado_http` crashes on PyPy 3.11: "BufferError: Existing exports of data: object cannot be re-sized" · Issue #510 · python/pyperformance
X Title: `bm_tornado_http` crashes on PyPy 3.11: "BufferError: Existing exports of data: object cannot be re-sized" · Issue #510 · python/pyperformance
Description: Bug report Benchmark: tornado_http Interpreter: PyPy 3.11 (3.11.17) — CPython is unaffected pyperformance version: 1.14.0 tornado version: 6.5.2 Environment: GitHub Actions ubuntu-latest, matrix entry python: pypy-3.11 Description Runnin...
Open Graph Description: Bug report Benchmark: tornado_http Interpreter: PyPy 3.11 (3.11.17) — CPython is unaffected pyperformance version: 1.14.0 tornado version: 6.5.2 Environment: GitHub Actions ubuntu-latest, matrix en...
X Description: Bug report Benchmark: tornado_http Interpreter: PyPy 3.11 (3.11.17) — CPython is unaffected pyperformance version: 1.14.0 tornado version: 6.5.2 Environment: GitHub Actions ubuntu-latest, matrix en...
Opengraph URL: https://github.com/python/pyperformance/issues/510
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`bm_tornado_http` crashes on PyPy 3.11: \"BufferError: Existing exports of data: object cannot be re-sized\"","articleBody":"## Bug report\n\n**Benchmark:** `tornado_http`\n**Interpreter:** PyPy 3.11 (3.11.17) — CPython is unaffected\n**pyperformance version:** 1.14.0\n**tornado version:** 6.5.2\n**Environment:** GitHub Actions `ubuntu-latest`, matrix entry `python: pypy-3.11`\n\n### Description\n\nRunning `python -m pyperformance run -b all --debug-single-value` (what the\n`test_run_and_show` test does in CI) fails only on PyPy because `bm_tornado_http`\ndies:\n\n```\n1 benchmarks failed:\n- tornado_http (Benchmark died)\n```\n\nThe benchmark crashes with `BufferError: Existing exports of data: object cannot be\nre-sized`, raised from tornado's `IOStream._consume` where `del\nself._read_buffer[:loc]` resizes a buffer that PyPy considers to still have an\nactive export. tornado then closes the connection, the client sees\n`HTTPStreamClosedError: Stream closed`, and the benchmark process exits non-zero.\n\n### Traceback\n\n```\nFile \".../tornado/iostream.py\", line 993, in _consume\n del self._read_buffer[:loc]\nBufferError: Existing exports of data: object cannot be re-sized\nUncaught exception, closing connection.\n...\nFile \".../bm_tornado_http/run_benchmark.py\", line 74, in run_client\ntornado.simple_httpclient.HTTPStreamClosedError: Stream closed\n...\nRuntimeError: Benchmark died\n```\n\n### Reproducibility\n\nNot a flake — it reproduces on every `pypy-3.11` CI run. Both a recent pull-request\nrun and the `main` branch run fail identically on `tornado_http`, so this is\nindependent of any in-flight change.\n\n### Notes\n\n- `BufferError: Existing exports of data: object cannot be re-sized` is a PyPy\n buffer-protocol behavior: slice-deleting a buffer that still has an active\n export (e.g. a `memoryview`) is rejected, where CPython does not enforce it here.\n- Existing issues #53 (\"tornado_http with --track-memory does not terminate\"),\n #61 (\"tornado fails with 3.8.0b2 on Windows\") and #76 (\"Django and Tornado\n benchmarks broken on Python 3.9\") are different problems.\n","author":{"url":"https://github.com/sendaoYan","@type":"Person","name":"sendaoYan"},"datePublished":"2026-11-09T07:21:20Z","url":"https://github.com/python/pyperformance/issues/510"}
| 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:86426ffe-52e5-a048-3358-41be526f5150 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 94E2:E9D16:2FDC866:3CC2C72:6B01FA4C |
| html-safe-nonce | 09006490088303a2b2a207ebbc551395ae24a89306390d97fb1151c8fd1b16ed |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEUyOkU5RDE2OjJGREM4NjY6M0NDMkM3Mjo2QjAxRkE0QyIsInZpc2l0b3JfaWQiOiI4MTE2ODA5MDU4MTIxNTQ2MzE2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d342b21c6bff84832d8ead9a0f68406addf4de5aadd24ad1b8e79477b42c9619 |
| hovercard-subject-tag | issue:6281762938 |
| 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/pyperformance/510/issue_layout |
| twitter:image | https://opengraph.githubassets.com/46fb3fb90218363144ed9fb7c30f7bda2d68e4fe9718e228e42679ecddf9c4f6/python/pyperformance/issues/510 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/46fb3fb90218363144ed9fb7c30f7bda2d68e4fe9718e228e42679ecddf9c4f6/python/pyperformance/issues/510 |
| og:image:alt | Bug report Benchmark: tornado_http Interpreter: PyPy 3.11 (3.11.17) — CPython is unaffected pyperformance version: 1.14.0 tornado version: 6.5.2 Environment: GitHub Actions ubuntu-latest, matrix en... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sendaoYan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/pyperformance git https://github.com/python/pyperformance.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 65949828 |
| octolytics-dimension-repository_nwo | python/pyperformance |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 65949828 |
| octolytics-dimension-repository_network_root_nwo | python/pyperformance |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width