Skip to content

cmd/pprof: header size >= 2**16 #6915

@gopherbot

Description

@gopherbot

by baron@xaprb.com:

Using go 1.2, I found the same issue reported in an old mailing list thread,
https://groups.google.com/d/topic/golang-nuts/LFk2-ikvxTs/discussion: "go tool
pprof" reports header size >= 2**16. The problem is an extra three-dash line in
the input.

I reproduced this with the following program: http://play.golang.org/p/oUJCQPRzWL

Then I ran the following commands:

$ go tool pprof --raw http://localhost:6060/debug/pprof/heap > local.raw
Read http://localhost:6060/debug/pprof/symbol
Fetching /pprof/heap profile from localhost:6060 to
  /var/folders/4s/jyvtqxm91k5bk1cyrqx8thlr0000gn/T/EiHLDyUj3i
Wrote profile to /var/folders/4s/jyvtqxm91k5bk1cyrqx8thlr0000gn/T/EiHLDyUj3i
Adjusting heap profiles for 1-in-524288 sampling rate
$ go tool pprof --text local.raw
local.raw: header size >= 2**16

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions