Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
1.10.3
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOOS="darwin"
What did you do?
Running a simple profiler with the following two lines of code:
pprof.StartCPUProfile(os.Stdout)
defer pprof.StopCPUProfile()
Create a file with output such as cpu.prof and run pprof cpu.prof
In the CLI, run web to open up a webpage
or run weblist <function-name>
What did you expect to see?
A web page with the profile svg or html correctly displayed.
What did you see instead?
FATAL[0000] couldn't read file: /Users/xxx/go/src/github.com/marwan-at-work/xxx/var/folders/n4/35bgdnkd6vlgqrdzbyl0x1ycmhcndx/T/pprof002.svg error=open /Users/xxx/go/src/github.com/marwan-at-work/xxx/var/folders/n4/35bgdnkd6vlgqrdzbyl0x1ycmhcndx/T/pprof002.svg: no such file or directory
pprof: exit status 1
Noting that the file (pprof002.svg) actually does exist under /var/folders/n4/35bgdnkd6vlgqrdzbyl0x1ycmhcndx/T/pprof002.svg but not /Users/xxx/go/src/github.com/marwan-at-work/xxx/var/folders/n4/35bgdnkd6vlgqrdzbyl0x1ycmhcndx/T/pprof002.svg