JuliaPerf / PProf.jl

Export Julia profiles to the pprof format
MIT License
154 stars 17 forks source link

profile.pb.gz: malformed profile: found location with reserved id=0 #93

Open wly2014 opened 6 months ago

wly2014 commented 6 months ago

When I run PProf.pprof(). I met this error:

profile.pb.gz: malformed profile: found location with reserved id=0
pprof: failed to fetch any source profiles

versioninfo:

Julia Version 1.9.3
Commit bed2cd540a1 (2023-08-24 14:43 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 32 × 13th Gen Intel(R) Core(TM) i9-13900K
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, goldmont)
  Threads: 1 on 32 virtual cores

Thanks.

torfjelde commented 5 months ago

Also running into the same issue. Anyone know of a workaround?

Azercoco commented 5 months ago

I am also encountering the issue, did anyone found a solution ?

jarbus commented 4 months ago

Experiencing this as well, fixed by downgrading to version 2.3.0 for me

theo-brown commented 2 months ago

I also have this issue, but downgrading to 2.3.0 didn't fix it

NHDaly commented 2 months ago

Could someone who is experiencing this issue please upload the .pb.gz that has the problem? it should be in the CWD of wherever you are running pprof.

And cherry-on-top would be to provide a reproducible MRE that would let us demonstrate this ourselves!

awadell1 commented 1 month ago

This reproduces the issue for me on v3.1.0:

using PProf
@pprof map(sin, rand(1000))

Here's the generated profile.pb.gz

System information:

julia> versioninfo()
Julia Version 1.10.3
Commit 0b4590a5507 (2024-04-30 10:59 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 192 × AMD EPYC 9654 96-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, znver3)
Threads: 1 default, 0 interactive, 1 GC (on 192 virtual cores)
Environment:
  LD_LIBRARY_PATH = /sw/pkgs/arc/gcc/10.3.0/lib64:/sw/pkgs/arc/python/3.11.5/lib:/nfs/turbo/coe-venkvis/awadell
/mist/deepspeed/.venv/lib
  JULIA_PKG_USE_CLI_GIT = true
  LD_RUN_PATH = /sw/pkgs/arc/gcc/10.3.0/lib64