JuliaPerf / PProf.jl

Export Julia profiles to the pprof format
MIT License
158 stars 18 forks source link

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

Closed wly2014 closed 1 day ago

wly2014 commented 11 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 9 months ago

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

Azercoco commented 9 months ago

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

jarbus commented 8 months ago

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

theo-brown commented 7 months ago

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

NHDaly commented 7 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 5 months 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
sprig commented 3 months ago

Affected by the same issue; I stepped through the code and produced #97 which appears to fix this. Please try and lmk if this works for you!

tanderson92 commented 2 months ago

Affected by the same issue; I stepped through the code and produced #97 which appears to fix this. Please try and lmk if this works for you!

Thanks, this fixed the issue for me.

rbeeli commented 2 months ago

Any released fix for this? Having the same.

sprig commented 2 months ago

Until an "official" fix is released you can try using the PR branch by running ]add https://github.com/sprig/PProf.jl.git in julia.

vchuravy commented 1 month ago

PProf.jl will warn now, but we still need to figure out the root cause