Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tachyon sample dump/replay crashes #144336

Open
Labels
stdlibStandard Library Python modules in the Lib/ directorytopic-profilingtype-bugAn unexpected behavior, bug, or error
@hauntsaninja

Description

@hauntsaninja

Bug description:

I'm runningpython -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 wherestat.filename == '\x00'

Error:Failedtoexportheatmap:embeddednullbyteTraceback (mostrecentcalllast):File"<frozen runpy>",line196,in_run_module_as_mainFile"<frozen runpy>",line87,in_run_codeFile"/.../lib/python3.15/profiling/sampling/__main__.py",line65,in<module>main()~~~~^^File"/.../lib/python3.15/profiling/sampling/cli.py",line788,inmain_main()~~~~~^^File"/.../lib/python3.15/profiling/sampling/cli.py",line922,in_mainhandler(args)~~~~~~~^^^^^^File"/.../lib/python3.15/profiling/sampling/cli.py",line1206,in_handle_replaycollector.export(filename)~~~~~~~~~~~~~~~~^^^^^^^^^^File"/.../lib/python3.15/profiling/sampling/heatmap_collector.py",line725,inexportself._generate_file_reports(output_dir,file_stats)~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^File"/.../lib/python3.15/profiling/sampling/heatmap_collector.py",line766,in_generate_file_reportsself._generate_file_html(~~~~~~~~~~~~~~~~~~~~~~~~^file_path,^^^^^^^^^^    ...<3lines>...stat^^^^    )^File"/.../lib/python3.15/profiling/sampling/heatmap_collector.py",line905,in_generate_file_htmlsource_lines=Path(filename).read_text(encoding='utf-8',errors='replace').splitlines()~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File"/.../lib/python3.15/pathlib/__init__.py",line985,inread_textwithself.open(mode='r',encoding=encoding,errors=errors,newline=newline)asf:~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File"/.../lib/python3.15/pathlib/__init__.py",line969,inopenreturnio.open(self,mode,buffering,encoding,errors,newline)~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ValueError:embeddednullbyte

Don't yet have a minimal repro, but maybe the issue is apparent to you

CPython versions tested on:

3.15

Operating systems tested on:

macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-profilingtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2026 Movatter.jp