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

on windows, buildkitd.exe crashes when pressing Ctrl+C #4774

Closed
rgl opened this issue Mar 18, 2024 · 0 comments · Fixed by #4775
Closed

on windows, buildkitd.exe crashes when pressing Ctrl+C #4774

rgl opened this issue Mar 18, 2024 · 0 comments · Fixed by #4775

Comments

@rgl
Copy link

rgl commented Mar 18, 2024

While trying https://github.com/moby/buildkit/releases/tag/v0.13.0 on Windows Server 2022 by starting buildkitd.exe in a PowerShell 7 shell session, it crashes as:

PS C:\Users\vagrant> buildkitd.exe
time="2024-03-18T11:37:57Z" level=warning msg="using null network as the default"
time="2024-03-18T11:37:57Z" level=info msg="found worker \"rwvldvytcfw9juv3tn1y3zfeb\", labels=map[org.mobyproject.buildkit.worker.containerd.namespace:buildkit org.mobyproject.buildkit.worker.containerd.uuid:2aa69ad3-b964-4f46-a010-a5ccb72c10ae org.mobyproject.buildkit.worker.executor:containerd org.mobyproject.buildkit.worker.hostname:windows org.mobyproject.buildkit.worker.network: org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:windows], platforms=[windows/amd64]"
time="2024-03-18T11:37:57Z" level=info msg="found 1 workers, default=\"rwvldvytcfw9juv3tn1y3zfeb\""
time="2024-03-18T11:37:57Z" level=warning msg="currently, only the default worker can be used."
time="2024-03-18T11:37:57Z" level=info msg="running server on //./pipe/buildkitd"
time="2024-03-18T11:37:58Z" level=info msg="stopping server"
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x11c47ce]

goroutine 1 [running]:
github.com/moby/buildkit/executor/resources.(*Sampler[...]).Close(0xc0005a7b68?)
        /src/executor/resources/sampler.go:135 +0xe
github.com/moby/buildkit/solver/llbsolver.(*Solver).Close(0xc0004d67e0)
        /src/solver/llbsolver/solver.go:128 +0x3a
github.com/moby/buildkit/control.(*Controller).Close(0xc000498a90)
        /src/control/control.go:136 +0x10c
main.main.func3(0xc0000fb760?)
        /src/cmd/buildkitd/main.go:376 +0x14ce
github.com/urfave/cli.HandleAction({0x1581aa0?, 0x1951668?}, 0xc000025340?)
        /src/vendor/github.com/urfave/cli/app.go:524 +0x50
github.com/urfave/cli.(*App).Run(0xc000025340, {0xc00005e0a0, 0x1, 0x1})
        /src/vendor/github.com/urfave/cli/app.go:286 +0x766
main.main()
        /src/cmd/buildkitd/main.go:385 +0x1207
PS C:\Users\vagrant>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants