-
Notifications
You must be signed in to change notification settings - Fork 495
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: runtime error: invalid memory address or nil pointer dereference in BuildWithResultHandler #1497
Comments
I got the expected behavior with latest v0.10.0-rc3 and 0.9.1 on WSL:
And same on Windows:
What's the output of |
The logic in If this happens in the wrong order, I think we skip over the https://github.com/docker/buildx/blob/v0.9.1/build/build.go#L890-L894 check to see if the context is errored, because the error hasn't been returned yet (even though the WaitGroup is terminated). That means that Not quite sure the best way to do that - one idea would be to create a single error group for each provided opt, that way we don't need to have wait groups. |
@crazy-max sorry I should have also said that it seems intermittent -- I've seen 2 nightly test failures -- and it might also depend on enabling ECI (the sysbox runtime). Perhaps the different runtime alters the timing and makes the race manifest more frequently. |
In a Docker Desktop test on Windows I saw a Dockerfile
and a build log
The test expected the error "network.host is not allowed" to be printed.
This is with
The text was updated successfully, but these errors were encountered: