Skip to content
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

buildkitd panic around dep.req.Request().(*edgeRequest).desiredState #3714

Closed
imeoer opened this issue Mar 14, 2023 · 3 comments
Closed

buildkitd panic around dep.req.Request().(*edgeRequest).desiredState #3714

imeoer opened this issue Mar 14, 2023 · 3 comments

Comments

@imeoer
Copy link
Contributor

imeoer commented Mar 14, 2023

panic: interface conversion: interface {} is nil, not *solver.edgeRequest

goroutine 28 [running]:
github.com/moby/buildkit/solver.(*edge).createInputRequests(0xc051a11680, 0x1, 0x1, 0x0)
        /go/src/github.com/moby/buildkit/solver/edge.go:812 +0xbd4
github.com/moby/buildkit/solver.(*edge).unpark(0xc051a11680, {0xc05e9f5200, 0x1, 0x1}, {0xc05e9f5210, 0xc059c2fe50, 0x1}, {0xc031c312f0, 0x3, 0x3}, ...)
        /go/src/github.com/moby/buildkit/solver/edge.go:362 +0x1dd
github.com/moby/buildkit/solver.(*scheduler).dispatch(0xc000024850, 0xc051a11680)
        /go/src/github.com/moby/buildkit/solver/scheduler.go:136 +0x2e5
github.com/moby/buildkit/solver.(*scheduler).loop(0xc000024850)
        /go/src/github.com/moby/buildkit/solver/scheduler.go:104 +0x1da
created by github.com/moby/buildkit/solver.newScheduler
        /go/src/github.com/moby/buildkit/solver/scheduler.go:35 +0x207

Version: v0.10.3

Very small probability of occurrence, currently not sure about the reproduction steps yet.

@alekitto
Copy link

Same error, doesn't always fail, it seems that occur randomly.
Currently using buildx bake to build 4 images concurrently and push them to GCP registry, using cache-from in all four images, but no cache-to.

panic: interface conversion: interface {} is nil, not *solver.edgeRequest

goroutine 23 [running]:
github.com/moby/buildkit/solver.(*edge).createInputRequests(0xc002016780, 0x3, 0x4?, 0x0)
        /src/solver/edge.go:814 +0xb14
github.com/moby/buildkit/solver.(*edge).unpark(0xc002016780, {0xc000ecf640, 0x4, 0x4}, {0xc0006dddb0?, 0x0, 0x0}, {0xc003844670, 0x1, 0x1}, ...)
        /src/solver/edge.go:363 +0x1da
github.com/moby/buildkit/solver.(*scheduler).dispatch(0xc00019cbd0, 0xc002016780)
        /src/solver/scheduler.go:136 +0x2e5
github.com/moby/buildkit/solver.(*scheduler).loop(0xc00019cbd0)
        /src/solver/scheduler.go:104 +0x1e8
created by github.com/moby/buildkit/solver.newScheduler
        /src/solver/scheduler.go:35 +0x218

Version: v0.11.3

@alexcb
Copy link
Collaborator

alexcb commented Jun 8, 2023

This is still occurring in master (40c5efa); however there's no easy replication case for it.

@coryb
Copy link
Collaborator

coryb commented Jun 21, 2023

closing this issue, it should be resolved by #3953

@coryb coryb closed this as completed Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants