-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependency is causing 100% CPU use and preventing program startup #205
Comments
Hi @mholt, I've never seen this happening to me, neither in Go 1.14 nor 1.13. That dependency was automatically added by packages in I'm not sure if you want to add kms support at this moment, but a workaround, that might fix your issue would be to import directly Let me know if it works. |
Hmm, very odd. Is it just me? (Are you on a Mac?)
I can confirm that. For the record:
Thanks for the workaround idea! But, I don't import the kms package directly. As you can see, it's For now I've been testing by eliminating the smallstep stuff completely, on a branch. As far as I can tell (after many many trials), it does work when smallstep & opencensus is not imported. |
Are there any package-level |
I'm on a Mac too. And I haven't heard anything from other people running mac or linux.
I missed that.
I'm not sure at the moment, we have some init too, but I'm not sure how that is relevant. As long as |
Yeah, that's a good point. I did try importing just that package but wasn't able to reproduce the bug, but maybe it needs more trials in that configuration. Or, I wonder if it's some combination of imports? I dunno. I'm gonna try for another day or through this week... and will just close this issue if I haven't been able to pin it down more. |
Someone much smarter than me was able to reproduce the bug, and it appears fairly certain to be an issue with the Go 1.14 scheduler or, at least, the Go 1.14 runtime. Sorry for the noise! |
Sorry for abandoning the issue template here, it's mostly an "FYI" and a request for more information.
I have reasons to believe -- but I can't prove -- that one of the dependencies of this repo is causing all importers of it and thus all importers of these certificates packages to spin the CPU and hang at startup, sometimes. I filed an issue here with the relevant data: census-instrumentation/opencensus-go#1200
Have you experienced any issues with your CLI hanging at startup at all?
I ask, because when I eliminate the smallstep and opencensus dependencies, the CPU no longer spins, after many many trials.
I am not saying the bug is for sure in opencensus (or in smallstep for that matter) nor am I saying what is causing it, I'm just going from the limited data provided to me in the stack trace...
The text was updated successfully, but these errors were encountered: