Skip to content

[v1.2 regression] [cgroup v1 + rootless] nerdctl run -d --name=bar --pid=container:foo ; nerdctl rm -f bar hangs #4394

@AkihiroSuda

Description

@AkihiroSuda
nerdctl run -d --name=foo busybox sleep infinity
nerdctl run -d --name=bar --pid=container:foo busybox sleep infinity
nerdctl rm -f bar
# runc v1.1.14 works, but v1.2.0-rc.3 hangs here.
# However, `nerdctl stop bar && nerdctl rm bar` still works.

The issue is reproducible with:

  • Ubuntu 20.04 (cgroup v1) + rootless

Not reproducible with:

  • Ubuntu 20.04 (cgroup v1) + rootful
  • Ubuntu 20.04 (rebooted in cgroup v2) + rootless
  • Ubuntu 20.04 (rebooted in cgroup v2) + rootful
  • Ubuntu 24.04 (cgroup v2) + rootless
  • Ubuntu 24.04 (cgroup v2) + rootful

containerd version (v1.7.16, v2.0.0-rc.4) and nerdctl version (v1.7.6, v2.0.0-rc.1) do not seem to matter.

I haven't figured out how to reproduce the issue with a plain nerd-less bats.


Regression in 9583b3d libct: move killing logic to container.Signal :

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions