Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1101976

Summary: gnome-shell keeps defunct (zombie) processes of terminated applications
Product: Red Hat Enterprise Linux 7 Reporter: David Jaša <djasa>
Component: glib2Assignee: Colin Walters <walters>
Status: CLOSED WONTFIX QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.0CC: cozzyd, djasa, elliot.li.tech, kahing, mclasen, mdomonko
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-08 14:20:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Jaša 2014-05-28 09:35:49 UTC
Description of problem:
when user quits application (ctrl-q or similar), gnome-shell sometimes doesn't allow the process to properly terminate so defunct (zombie) processes start appearing in process list. This may harm operation of some apps so gnome-shell shouldn't do it.


Version-Release number of selected component (if applicable):
gnome-shell-3.8.4-31.el7.x86_64

How reproducible:
not sure

Steps to Reproduce:
1. use gnome for extended period of time, start apps, quit apps
2.
3.

Actual results:
zombie processes start appearing:
0 S djasa     8675 15067  0  80   0 - 28160 pipe_w 11:31 pts/2    00:00:00 grep defunct
0 Z djasa    14182 17530  0  80   0 -     0 exit   kvě26 ?       00:00:37 [hexchat] <defunct>
0 Z djasa    19736 17530  0  80   0 -     0 exit   kvě26 ?       00:08:57 [evolution] <defunct>
0 Z djasa    27050 26953  0  80   0 -     0 exit   kvě27 ?       00:00:00 [gnome-shell-ext] <defunct>
F S UID        PID  PPID  C PRI  NI ADDR SZ WCHAN  STIME TTY        TIME CMD
0 S djasa    17530 17292  1  80   0 - 506061 poll_s kvě20 ?      149:44 /usr/bin/gnome-shell


Expected results:
no zombie processes with gnome-shell parent should be around

Additional info:

Comment 1 Cosmin Deaconu 2014-09-29 20:00:39 UTC
This is just a workaround, but using 

killall -HUP gnome-shell 

seems to kill zombies (while preserving running programs).

Comment 6 Ka-Hing cheung 2016-04-29 18:43:33 UTC
The workaround is not ideal because it kills gnome-shell and often messes up multi-monitor setups.