Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/cmd/goimports: infinite loop scanning standard library #31579
Twice today I've seen a recently-compiled goimports spin off into using 1000+% CPU for minutes.
The first time I did kill -ABRT and found it was doing lots of file system scans,
You can see all the file descriptors ≥ 7 are getting recycled quickly.
Then I sent it an ABRT and got this dump:
I am not sure why it is scanning the standard library repeatedly in addExternalCandidates (as opposed to say addStdlibCandidates) but bugs are bugs.