Skip to content

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

@edsantiago

Description

@edsantiago

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    flakesFlakes from Continuous Integrationlocked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions