-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Open
Labels
compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.
Milestone
Description
In invokeVisualizer, we defer deleting the temporary file when invoking the visualizer until the end of the pprof program. However, the invokeVisualizer does not wait for the viewer to finish when not running in interactive mode.
Thus, the following race occurs in non-interactive mode:
pprofgenerates some reportpprofinvokes the browser to show report; Chrome starts running- Without waiting for browser to end, we return from
invokeVisualizerand thepprofprogram begins terminations. - The
DeferDeleteis run, deleting the report file - Chrome has finished starting up, but cannot find the file. Oops.
The fix is probably to wait for the visualizer to end regardless of "interactivity".
Metadata
Metadata
Assignees
Labels
compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.