[pkg-go] Bug#1010000: podman run panics with "assignment to entry in nil map"

Norbert Kiesel nk at iname.com
Fri Apr 22 07:14:45 BST 2022


Package: podman
Version: 3.4.7+ds1-1
Severity: important
X-Debbugs-Cc: nk at iname.com

Dear Maintainer,

I just upgraded and got "[UPGRADE] podman:amd64 3.4.6+ds1-1 -> 3.4.7+ds1-1".
Now, any "podman run" fails:
% podman run --rm debian printenv
panic: assignment to entry in nil map

goroutine 1 [running]:
github.com/opencontainers/runtime-tools/generate.(*Generator).addEnv(...)
        github.com/opencontainers/runtime-tools/generate/generate.go:525
github.com/opencontainers/runtime-
tools/generate.(*Generator).AddProcessEnv(0xc0005b5a20, {0x17edeb7, 0x8},
{0xc0008d9a40, 0xc})
        github.com/opencontainers/runtime-tools/generate/generate.go:501 +0x2ea
github.com/containers/podman/libpod.(*Container).generateSpec(0xc00056a2c0,
{0x1ad3050, 0xc000261a40})
        github.com/containers/podman/libpod/container_internal_linux.go:648
+0x2965
github.com/containers/podman/libpod.(*Container).init(0xc00056a2c0, {0x1ad3050,
0xc000261a40}, 0x0)
        github.com/containers/podman/libpod/container_internal.go:1098 +0x8e
github.com/containers/podman/libpod.(*Container).prepareToStart(0xc00056a2c0,
{0x1ad3050, 0xc000261a40}, 0xa8?)
        github.com/containers/podman/libpod/container_internal.go:875 +0x345
github.com/containers/podman/libpod.(*Container).StartAndAttach(0xc00056a2c0,
{0x1ad3050?, 0xc000261a40?}, 0xc000d32960, {0x17f5ed4, 0xd}, 0xc00004ef60,
0xb0?)
        github.com/containers/podman/libpod/container_api.go:115 +0x145
github.com/containers/podman/pkg/domain/infra/abi/terminal.StartAttachCtr({0x1ad3050,
0xc000261a40}, 0xc00056a2c0, 0xc000010018, 0xc000010020, 0x0, {0x17f5ed4, 0xd},
0x1, 0x1)
github.com/containers/podman/pkg/domain/infra/abi/terminal/terminal_linux.go:91
+0x546
github.com/containers/podman/pkg/domain/infra/abi.(*ContainerEngine).ContainerRun(0xc000010030,
{0x1ad3050, 0xc000261a40}, {{0x0, 0x0}, 0x0, {0x17f5ed4, 0xd}, 0xc000010020,
0x0, ...})
        github.com/containers/podman/pkg/domain/infra/abi/containers.go:957
+0x31e
github.com/containers/podman/cmd/podman/containers.run(0x25046a0?,
{0xc000261ad0?, 0x2, 0x3})
        github.com/containers/podman/cmd/podman/containers/run.go:194 +0x7e6
github.com/spf13/cobra.(*Command).execute(0x25046a0, {0xc00003c0c0, 0x3, 0x3})
        github.com/spf13/cobra/command.go:856 +0x67c
github.com/spf13/cobra.(*Command).ExecuteC(0x251b3a0)
        github.com/spf13/cobra/command.go:974 +0x3b4
github.com/spf13/cobra.(*Command).Execute(...)
        github.com/spf13/cobra/command.go:902
github.com/spf13/cobra.(*Command).ExecuteContext(...)
        github.com/spf13/cobra/command.go:895
main.Execute()
        github.com/containers/podman/cmd/podman/root.go:91 +0xc5
main.main()
        github.com/containers/podman/cmd/podman/main.go:39 +0x74


-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.17.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages podman depends on:
ii  conmon                           100:2.1.0-2
ii  containernetworking-plugins      100:1.0.0-1
ii  crun                             100:0.17-4
ii  golang-github-containers-common  0.44.5+ds1-1
ii  libc6                            2.33-7
ii  libdevmapper1.02.1               2:1.02.175-2.1
ii  libgpgme11                       1.16.0-1.2
ii  libseccomp2                      2.5.4-1
ii  runc                             1.1.1+ds1-1

Versions of packages podman recommends:
ii  buildah                                           1.23.1+ds1-2
ii  catatonit                                         0.1.7-1
ii  fuse-overlayfs                                    100:1.5.0-1
ii  golang-github-containernetworking-plugin-dnsname  1.3.1+ds1-2
ii  slirp4netns                                       100:1.1.8-3
ii  tini                                              0.19.0-1
ii  uidmap                                            1:4.11.1+dfsg1-2

Versions of packages podman suggests:
pn  containers-storage  <none>
ii  docker-compose      1.29.2-1
ii  iptables            1.8.7-1

-- Configuration Files:
/etc/cni/net.d/87-podman-bridge.conflist [Errno 13] Permission denied: '/etc/cni/net.d/87-podman-bridge.conflist'

-- no debconf information



More information about the Pkg-go-maintainers mailing list