Skip to content

cmd/pprof: runtime panic index out of range if given empty cpu.prof #9207

@gopherbot

Description

@gopherbot

by jgardner@izeni.com:

go version go1.4rc2 linux/amd64

Here's the output: 

go tool pprof -svg ./chatads-keyword-extraction /tmp/profile223797702/cpu.pprof
panic: runtime error: index out of range
 
goroutine 1 [running]:
cmd/pprof/internal/driver.sampleFormat(0xc20808a000, 0xc208092000, 0xc2080c8240, 0x0,
0x0, 0x0, 0x0)
        /usr/src/go/src/cmd/pprof/internal/driver/driver.go:975 +0x21c
cmd/pprof/internal/driver.generate(0xc20808a000, 0xc20808a000, 0x7f0b01303ff0,
0xc20802afc0, 0x7f0b01303fa8, 0xc20804e060, 0xc208092000, 0x0, 0x0)
        /usr/src/go/src/cmd/pprof/internal/driver/driver.go:1012 +0x11f
cmd/pprof/internal/driver.PProf(0x7f0b01304030, 0xae7048, 0x96fb50, 0x970118,
0x7f0b01303ff0, 0xc20802afc0, 0x7f0b01303fa8, 0xc20804e060, 0x0, 0x0, ...)
        /usr/src/go/src/cmd/pprof/internal/driver/driver.go:115 +0xc8d
main.main()
        /usr/src/go/src/cmd/pprof/pprof.go:28 +0x129

Attachments:

  1. chatads-keyword-extraction (8560645 bytes)
  2. cpu.pprof (0 bytes)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions