-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Dockerd / buildkit in a infinite loop and burning cpu #1313
Comments
Do you have a reproducer you can share? |
Thx a lot for answering :) I did some tests by recompiling docker. What can I do to provide more information ? I added |
I can't easily see what could cause the id to repeat there so it must be something with your data. I also don't see if this is from imported or local cache without additional info. Could it be something like a duplicate copy instruction that triggers this? |
I have that:
And yes, the problem seems to be just after. |
That's not exactly what I had in mind but could be related still. Can you try if you can put together a reproducer based on similar snippets to ease the debugging of this issue? |
I did a lot of tests, I confirm the problem disappear if I remove the second copy. I'm still trying to have a simple case failing, but did not succeed to write it :( |
I think this might be same as #1336 cc @aiordache |
I’m not sure to understand. Seems you have a fix in
0010996.
It’s cool ! But is it released / build somewhere? Should I build it myself
to test it?
…On Tue 3 Mar 2020 at 03:55, Tõnis Tiigi ***@***.***> wrote:
@bpaquet <https://github.com/bpaquet> Can you check if this is the same
as #1336 <#1336> and #1386
<#1386> fixes this issue. If not
then please post a stacktrace or a reproducer for your issue so it can be
looked further.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1313?email_source=notifications&email_token=AACSJXOD5S4CYSVCNJFDPXLRFRWS3A5CNFSM4KC4W4R2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENR4IPA#issuecomment-593740860>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACSJXLRZPBF5HDPJPVZ4YLRFRWS3ANCNFSM4KC4W4RQ>
.
|
fixed with #1413, report if you still see anything like this |
….6.4-15-gdc6afa0f) full diff: moby/buildkit@a7d7b7f...dc6afa0 - solver: avoid recursive loop on cache-export - fixes moby/buildkit#1336 --export-cache option crashes buildkitd on custom frontend - fixes moby/buildkit#1313 Dockerd / buildkit in a infinite loop and burning cpu - fixes / addresses moby#41044 19.03.9 goroutine stack exceeds 1000000000-byte limit - fixes / addresses moby#40993 Multistage docker build fails with unexpected EOF Signed-off-by: Sebastiaan van Stijn <[email protected]>
….6.4-15-gdc6afa0f) full diff: moby/buildkit@a7d7b7f...dc6afa0 - solver: avoid recursive loop on cache-export - fixes moby/buildkit#1336 --export-cache option crashes buildkitd on custom frontend - fixes moby/buildkit#1313 Dockerd / buildkit in a infinite loop and burning cpu - fixes / addresses moby/moby#41044 19.03.9 goroutine stack exceeds 1000000000-byte limit - fixes / addresses moby/moby#40993 Multistage docker build fails with unexpected EOF Signed-off-by: Sebastiaan van Stijn <[email protected]> Upstream-commit: e7c2b106ec7785fcb54b1cf80258a2bea25ed020 Component: engine
Hello,
While trying to use buildkit through docker build, my dockerd daemon seems to go in a infinite loop and the docker build is hanging.
Version:
Docker version 19.03.5, build 633a0ea838
Processes (
ps axu | grep docker
):While looking into the trace, I found lot of occurence of
github.com/docker/docker/vendor/github.com/moby/buildkit/solver.(*cacheManager).filterResults:173
But I'm not a specialist of this kind of trace, so may be I'm not reading it right.
The trace is here: out.gz (remove the .gz if needed).
Trace extracted with
curl --unix-socket /var/run/docker.sock http://./debug/pprof/trace
The CPU usage does not go down when I stop the docker build process (still using 100%).
@tonistiigi I already had an issue around cache and LoadWithParents (#1250, fixed by you, thx), while building the same Dockerfile.
Let me know if you have any idea about the issue and what I can do to dig further.
The text was updated successfully, but these errors were encountered: