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

podman build --jobs 4(?) : panic: runtime error: invalid memory address or nil pointer dereference #10535

Closed
edsantiago opened this issue Jun 2, 2021 · 0 comments · Fixed by containers/storage#932
Labels
flakes Flakes from Continuous Integration locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@edsantiago
Copy link
Member

This is a one-off. Only one instance, no reproducer, am filing as a placeholder in case I see it again:

 # $ podman build --no-cache --jobs 4 -t derived-mt -f /tmp/podman_bats.JKqL7z/build-test/Containerfile2 /tmp/podman_bats.JKqL7z/build-test
# STEP 1: FROM quay.io/libpod/alpine AS final
# STEP 2: FROM quay.io/libpod/testimage:20210427 AS test
# panic: runtime error: invalid memory address or nil pointer dereference
# [signal SIGSEGV: segmentation violation code=0x1 addr=0xa0 pc=0xd663d4]
# 
# goroutine 60 [running]:
# github.com/containers/storage.(*store).canUseShifting(0xc000342160, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc0006c8e48)
# 	vendor/github.com/containers/storage/store.go:940 +0x34
# github.com/containers/storage.(*store).Mount(0xc000342160, 0xc0002a9d40, 0x40, 0xc00069e060, 0x2f, 0x0, 0x0, 0xc0006a7510, 0x0)
# 	vendor/github.com/containers/storage/store.go:2711 +0x265
# github.com/containers/buildah.(*Builder).Mount(0xc0004e6600, 0xc00069e060, 0x2f, 0x0, 0x0, 0xc0006a7510, 0x0)
# 	vendor/github.com/containers/buildah/mount.go:10 +0x6f
# github.com/containers/buildah/imagebuildah.(*StageExecutor).prepare(0xc000416000, 0x1eb0320, 0xc000266240, 0xc000049b90, 0x21, 0xd00101, 0x0, 0x0, 0x0, 0x0)
# 	vendor/github.com/containers/buildah/imagebuildah/stage_executor.go:622 +0xc65
# github.com/containers/buildah/imagebuildah.(*StageExecutor).Execute(0xc000416000, 0x1eb0320, 0xc000266240, 0xc000049b90, 0x21, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
# 	vendor/github.com/containers/buildah/imagebuildah/stage_executor.go:725 +0x465
# github.com/containers/buildah/imagebuildah.(*Executor).buildStage(0xc0005de000, 0x1eb0320, 0xc000266240, 0xc0005d0ff0, 0xc0000a9590, 0x2, 0x2, 0x0, 0x0, 0x0, ...)
# 	vendor/github.com/containers/buildah/imagebuildah/executor.go:443 +0x2ac
# github.com/containers/buildah/imagebuildah.(*Executor).Build.func3.1(0xc0005de000, 0xc0005b7940, 0x1eb0320, 0xc000266240, 0xc000010868, 0xc0000a9590, 0x2, 0x2, 0x0, 0xc000052d20)
# 	vendor/github.com/containers/buildah/imagebuildah/executor.go:612 +0x106
# created by github.com/containers/buildah/imagebuildah.(*Executor).Build.func3
# 	vendor/github.com/containers/buildah/imagebuildah/executor.go:609 +0xbc
# [ rc=2 (** EXPECTED 0 **) ]

sys: build with copy-from referencing the base image

@edsantiago edsantiago added the flakes Flakes from Continuous Integration label Jun 2, 2021
rhatdan added a commit to rhatdan/storage that referenced this issue Jun 8, 2021
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
flakes Flakes from Continuous Integration locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant