[Bug 13191] New: zcat multiple gz files will generate zombie processes

bugzilla at busybox.net bugzilla at busybox.net
Wed Sep 9 13:29:06 UTC 2020


https://bugs.busybox.net/show_bug.cgi?id=13191

            Bug ID: 13191
           Summary: zcat multiple gz files will generate zombie processes
           Product: Busybox
           Version: 1.31.x
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at busybox.net
          Reporter: xiechengliang1 at huawei.com
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

Created attachment 8581
  --> https://bugs.busybox.net/attachment.cgi?id=8581&action=edit
zcat multiple gz files will generate zombie processes

When I use zcat to view the contents of several compressed packages, these come
from the community,some zombie processes will be generated before the zcat task
is completed。
For example:
  $ zcat attr-2.4.48.tar.gz iproute2-5.5.0.tar.gz libffi-3.3.tar.gz

 I use the ps command to view the process status, the result is as follows:
  $ ps -ef | grep zcat
  root       12583    9689  0 20:50 pts/5    00:00:00 zcat attr-2.4.48.tar.gz
iproute2-5.5.0.tar.gz libffi-3.3.tar.gz
  root       12584   12583  0 20:50 pts/5    00:00:00 [zcat] <defunct>
  root       12587   12583  0 20:50 pts/5    00:00:00 [zcat] <defunct>

  When the zcat task ends, the zombie process is recycled, when the compressed
package is relatively large, the zombie process will exist for a period of
time.

  When viewing each compressed package, will fork a child, but the parent
process does not reclaim resources after the child ends. 
  Should the resource be reclaimed when the child process exits?The attachment
provides a repair plan for reference.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list