Skip to content

docker exec hang if earlier docker exec left a zombie process #3286

@kkgahlot

Description

@kkgahlot

BUG REPORT INFORMATION

Description

If a process is run inside a docker container via docker exec and that process leaves a zombie process then further docker exec commands to that container will hang. I believe the issue is in containerd based on reading about other issues in this repository. Please correct me if I am wrong.

Steps to reproduce the issue:

  1. Extract the attached docker_exec_hang_issue.tar.gz
  2. cd docker_exec_hang_issue
  3. ./setup_container.sh
  4. Terminal 1: ./ping_via_exec.sh
  5. Terminal 2: ./test.sh
  6. Terminal 1's exec commands will get stuck few seconds after test.sh is executed.

Describe the results you received:
Any further docker exec command gets stuck. That is the ping_via_exec.sh script gets stuck

Describe the results you expected:
Other docker exec commands should continue to work.

Output of containerd --version:

containerd github.com/containerd/containerd 1.2.5 bb71b10fd8f58240ca47fbb579b9d1028eea7c84

Tried this test with stable and latest beta docker-ce versions.

[root@chomps1 ~]# docker version
Client:
 Version:           18.09.6
 API version:       1.39
 Go version:        go1.10.8
 Git commit:        481bc77156
 Built:             Sat May  4 02:34:58 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          18.09.6
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.10.8
  Git commit:       481bc77
  Built:            Sat May  4 02:02:43 2019
  OS/Arch:          linux/amd64
  Experimental:     false
[root@chomps1 ~]# 
[root@chomps1 19.03.0]# docker version
Client:
 Version:           19.03.0-beta3
 API version:       1.40
 Go version:        go1.12.4
 Git commit:        c55e026
 Built:             Thu Apr 25 02:58:56 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          19.03.0-beta3
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.4
  Git commit:       c55e026
  Built:            Thu Apr 25 02:57:35 2019
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.2.5
  GitCommit:        bb71b10fd8f58240ca47fbb579b9d1028eea7c84
 runc:
  Version:          1.0.0-rc6+dev
  GitCommit:        2b18fe1d885ee5083ef9f0838fee39b62d653e30
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683
[root@chomps1 19.03.0]# 

docker_exec_hang_issue.tar.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions