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

Xavier G. xavier at kindwolf.org
Sat Apr 23 22:21:39 BST 2022


Package: podman
Version: 3.4.7+ds1-2
Followup-For: Bug #1010000

Dear Maintainer,

Unfortunately, it seems upgrading from 3.4.7+ds1-1 to 3.4.7+ds1-2 does not
solve the issue reported by Norbert.

I tested as root user to avoid potential rootless-induced issues:

# dpkg -l podman
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-==========================================
ii  podman         3.4.7+ds1-2  amd64        engine to run OCI-based containers in Pods

# podman run alpine date
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:532
github.com/opencontainers/runtime-tools/generate.(*Generator).AddProcessEnv(0xc00053da20, {0x17edeb7, 0x8}, {0xc0004022c0, 0xc})
        github.com/opencontainers/runtime-tools/generate/generate.go:508 +0x2ea
github.com/containers/podman/libpod.(*Container).generateSpec(0xc00031e790, {0x1ad3150, 0xc000228d20})
        github.com/containers/podman/libpod/container_internal_linux.go:648 +0x2965
github.com/containers/podman/libpod.(*Container).init(0xc00031e790, {0x1ad3150, 0xc000228d20}, 0x0)
        github.com/containers/podman/libpod/container_internal.go:1098 +0x8e
github.com/containers/podman/libpod.(*Container).prepareToStart(0xc00031e790, {0x1ad3150, 0xc000228d20}, 0xa8?)
        github.com/containers/podman/libpod/container_internal.go:875 +0x345
github.com/containers/podman/libpod.(*Container).StartAndAttach(0xc00031e790, {0x1ad3150?, 0xc000228d20?}, 0xc0006300c0, {0x17f5ed4, 0xd}, 0xc0000949c0, 0xb0?)
        github.com/containers/podman/libpod/container_api.go:115 +0x145
github.com/containers/podman/pkg/domain/infra/abi/terminal.StartAttachCtr({0x1ad3150, 0xc000228d20}, 0xc00031e790, 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(0xc0001249f8, {0x1ad3150, 0xc000228d20}, {{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?, {0xc00004ae60?, 0x2, 0x2})
        github.com/containers/podman/cmd/podman/containers/run.go:194 +0x7e6
github.com/spf13/cobra.(*Command).execute(0x25046a0, {0xc00003c0a0, 0x2, 0x2})
        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

Let me know if there is anything I can do to help on this matter.
Thanks for your work.

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

Kernel: Linux 5.16.0-6-amd64 (SMP w/4 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)

Versions of packages podman depends on:
ii  conmon                           2.0.25+ds1-1.1
ii  containernetworking-plugins      1.1.0+ds1-1
ii  crun                             0.17+dfsg-1.1
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
pn  catatonit | tini | dumb-init                      <none>
ii  fuse-overlayfs                                    1.8.2-1
pn  golang-github-containernetworking-plugin-dnsname  <none>
ii  slirp4netns                                       1.0.1-2
ii  uidmap                                            1:4.11.1+dfsg1-2

Versions of packages podman suggests:
ii  containers-storage  1.37.2+ds1-1
ii  docker-compose      1.29.2-1
ii  iptables            1.8.7-1

-- no debconf information



More information about the Pkg-go-maintainers mailing list