-
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
Panic when building multi-platform FROM scratch
image (nil pointer dereference in buildkit/frontend/gateway/grpcclient.convertRef
)
#5379
Comments
cc @AkihiroSuda |
Is this issue really specific to Lima? |
FROM scratch
image on limaFROM scratch
image on lima (nil panic in buildkit/frontend/gateway/grpcclient.convertRef
)
FROM scratch
image on lima (nil panic in buildkit/frontend/gateway/grpcclient.convertRef
)FROM scratch
image on lima (nil pointer dereference in buildkit/frontend/gateway/grpcclient.convertRef
)
I do not think so. |
FROM scratch
image on lima (nil pointer dereference in buildkit/frontend/gateway/grpcclient.convertRef
)FROM scratch
image (nil pointer dereference in buildkit/frontend/gateway/grpcclient.convertRef
)
The issue seems to be related to Go's The linked PR above should fix it. Thanks for finding this. I think this likely affected multi-platform because the following code path was wrong: for k, v := range pbRes.Refs.Refs {
var ref *reference
if v.Id != "" {
ref, err = newReference(c, v)
if err != nil {
return nil, err
}
}
res.AddRef(k, ref) // incorrect usage of ref when v.Id is blank
} I also cleaned it up a bit while I was in there since |
@jsternberg really appreciate the fast fix. Thanks a lot! |
First seen as part of nerdctl containerd/nerdctl#3481
Reproducer:
Dockerfile:
Results in:
System:
This is also true for 1.15.3
The text was updated successfully, but these errors were encountered: