Skip to content

"cannot start a container that has stopped" in F-43 #5151

Closed

Description

@jankaluza

Description

After the upgrade to Fedora-43, I see a weird runc behavior. We also see it in the https://github.com/containers/conmon CI.

The container is created and the runc status shows it is in a created state. Next call of runc start fails with cannot start a container that has stopped and next calls of runc status shows the container is in the stopped state despite the fact nothing else started it.

The very same CI tests worked well before. You can see the issue with more debugging logs in the containers/conmon#643 - check the Build CI job in cirrus-ci.

Steps to reproduce the issue

  1. Clone the https://github.com/containers/conmon.git
  2. Build it using make and run the tests using make test on Fedora-43.
  3. The tests fail.

Describe the results you received and expected

Previously, the containers were started without any issues in this situation. Now the runc start fails with cannot start a container that has stopped.

What version of runc are you using?

runc-1.4.0-1.fc43.x86_64

Host OS information

NAME="Fedora Linux"
VERSION="43 (Workstation Edition)"
RELEASE_TYPE=stable
ID=fedora
VERSION_ID=43
VERSION_CODENAME=""
PRETTY_NAME="Fedora Linux 43 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:43"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f43/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=43
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=43
SUPPORT_END=2026-12-02
VARIANT="Workstation Edition"
VARIANT_ID=workstation

Host kernel information

Linux fedora 6.18.8-200.fc43.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jan 30 20:23:28 UTC 2026 x86_64 GNU/Linux

Activity

  1. changed the title [-]"cannot start a container that has stopped" in F43[/-] [+]"cannot start a container that has stopped" in F-43[/+] on Mar 5, 2026
  2. kolyshkin commented on Mar 6, 2026

    @kolyshkin
    Contributor

    Looking at runc git log, one possible change that can theoretically result in a bug like this is d9f2a24a but it's there since 1.2.0.

    It is fixed by running runc state.

    Looking into what runc state does -- it just reads a few files and reports, not changing anything at all; so I don't understand how it may help.

    There may be potentially some issues in (*Container).hasInit, I guess the way to debug this is to amend it with some printfs and see what's going on.

    Let me try to repro locally.

  3. added this to the 1.4.1 milestone on Mar 6, 2026
  4. kolyshkin commented on Mar 6, 2026

    @kolyshkin
    Contributor

    Reproduced, bisected to commit 1b39997. Opened a revert (#5153).

  5. HirazawaUi commented on Mar 6, 2026

    @HirazawaUi
    Contributor

    This surprises me. I thought this kind of error only occurs when runc start is called again after the first attempt fails.

  6. HirazawaUi commented on Mar 6, 2026

    @HirazawaUi
    Contributor

    I will investigate this issue when I have time. @jankaluza May I ask if this error has only been seen in the CI of https://github.com/containers/conmon, or has it been encountered in a real environment?

  7. kolyshkin commented on Mar 12, 2026

    @kolyshkin
    Contributor

    The issue is going to be fixed in the upcoming runc 1.4.1.

  8. kolyshkin commented on Mar 12, 2026

    @kolyshkin
    Contributor

    As well as in runc 1.5.0-rc.1 (to be released soon) and runc 1.3.5 (if/when we will release another 1.3.x)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions