You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When go tool pprof encounters an error, it writes to STDERR but still exits with a 0 status code. This means that Go's own exec package does not detect errors from the "go tool pprof" command.
bradfitz
changed the title
go tool pprof (cmd/pprof) should exit with nonzero status codes on errors
cmd/pprof: should exit with nonzero status codes on errors
Jul 2, 2015
When go tool pprof encounters an error, it writes to STDERR but still exits with a 0 status code. This means that Go's own exec package does not detect errors from the "go tool pprof" command.
Here is some code that produces the issue.
For now, I am checking if anything is written to STDERR as a workaround.
The text was updated successfully, but these errors were encountered: