Title: Tachyon sample dump/replay crashes · Issue #144336 · python/cpython · GitHub
Open Graph Title: Tachyon sample dump/replay crashes · Issue #144336 · python/cpython
X Title: Tachyon sample dump/replay crashes · Issue #144336 · python/cpython
Description: Bug description: I'm running python -m profiling.sampling replay prof.bin --heatmap after having captured some profile and it crashes. When I dropped a breakpoint in I saw the dump somehow has ended up with one instance where stat.filena...
Open Graph Description: Bug description: I'm running python -m profiling.sampling replay prof.bin --heatmap after having captured some profile and it crashes. When I dropped a breakpoint in I saw the dump somehow has ende...
X Description: Bug description: I'm running python -m profiling.sampling replay prof.bin --heatmap after having captured some profile and it crashes. When I dropped a breakpoint in I saw the dump somehow has ...
Opengraph URL: https://github.com/python/cpython/issues/144336
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Tachyon sample dump/replay crashes","articleBody":"### Bug description:\n\nI'm running `python -m profiling.sampling replay prof.bin --heatmap` after having captured some profile and it crashes.\n\nWhen I dropped a breakpoint in I saw the dump somehow has ended up with one instance where `stat.filename == '\\x00'`\n\n```python\nError: Failed to export heatmap: embedded null byte\nTraceback (most recent call last):\n File \"\u003cfrozen runpy>\", line 196, in _run_module_as_main\n File \"\u003cfrozen runpy>\", line 87, in _run_code\n File \"/.../lib/python3.15/profiling/sampling/__main__.py\", line 65, in \u003cmodule>\n main()\n ~~~~^^\n File \"/.../lib/python3.15/profiling/sampling/cli.py\", line 788, in main\n _main()\n ~~~~~^^\n File \"/.../lib/python3.15/profiling/sampling/cli.py\", line 922, in _main\n handler(args)\n ~~~~~~~^^^^^^\n File \"/.../lib/python3.15/profiling/sampling/cli.py\", line 1206, in _handle_replay\n collector.export(filename)\n ~~~~~~~~~~~~~~~~^^^^^^^^^^\n File \"/.../lib/python3.15/profiling/sampling/heatmap_collector.py\", line 725, in export\n self._generate_file_reports(output_dir, file_stats)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/.../lib/python3.15/profiling/sampling/heatmap_collector.py\", line 766, in _generate_file_reports\n self._generate_file_html(\n ~~~~~~~~~~~~~~~~~~~~~~~~^\n file_path,\n ^^^^^^^^^^\n ...\u003c3 lines>...\n stat\n ^^^^\n )\n ^\n File \"/.../lib/python3.15/profiling/sampling/heatmap_collector.py\", line 905, in _generate_file_html\n source_lines = Path(filename).read_text(encoding='utf-8', errors='replace').splitlines()\n ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/.../lib/python3.15/pathlib/__init__.py\", line 985, in read_text\n with self.open(mode='r', encoding=encoding, errors=errors, newline=newline) as f:\n ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/.../lib/python3.15/pathlib/__init__.py\", line 969, in open\n return io.open(self, mode, buffering, encoding, errors, newline)\n ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nValueError: embedded null byte\n```\n\nDon't yet have a minimal repro, but maybe the issue is apparent to you\n\n### CPython versions tested on:\n\n3.15\n\n### Operating systems tested on:\n\nmacOS","author":{"url":"https://github.com/hauntsaninja","@type":"Person","name":"hauntsaninja"},"datePublished":"2026-01-30T07:53:45Z","url":"https://github.com/python/cpython/issues/144336"}
| 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:5347322e-91eb-122f-0649-9fea267b96c2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E0EA:BB75:1D68047:26D36DB:6B022F45 |
| html-safe-nonce | 12dec595ee65ce808989850b307c693caea44d0ed76c0c3f34fe9d98a16bb1d3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEVBOkJCNzU6MUQ2ODA0NzoyNkQzNkRCOjZCMDIyRjQ1IiwidmlzaXRvcl9pZCI6IjM5MTU2NjQ1MzU3MDE1NDMwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 11782344eea0d73a9a3678dd90aa7aa9a1856be6265bcb12c0ab2be0ab2014b8 |
| hovercard-subject-tag | issue:3874499609 |
| 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/144336/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fb641af1b2238d2072ec12fed34bb2a163aa2d8683d8872a47a24e4f46fb357c/python/cpython/issues/144336 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fb641af1b2238d2072ec12fed34bb2a163aa2d8683d8872a47a24e4f46fb357c/python/cpython/issues/144336 |
| og:image:alt | Bug description: I'm running python -m profiling.sampling replay prof.bin --heatmap after having captured some profile and it crashes. When I dropped a breakpoint in I saw the dump somehow has ende... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hauntsaninja |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width