Bug 837170

Summary: The command executed by sudo may ocasionally enter into defunct state.
Product: Red Hat Enterprise Linux 6 Reporter: Zhenyong(Jerry) Jiang <jzhenyon>
Component: sudoAssignee: Daniel Kopeček <dkopecek>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.5CC: mpoole, rrosario
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-03 16:25:30 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 Zhenyong(Jerry) Jiang 2012-07-03 03:50:37 UTC
Description of problem:

The command executed by sudo may ocasionally enter into defunct state.

Version-Release number of selected component (if applicable):

RHEL6

How reproducible:

ocasionally

Steps to Reproduce:

More information:
1. We run the sudo in multiple threads simultaneously.

2. Not only for sudo grep can result in such case. The following is another one.

[root@lcm-siteA-n15-ext ~]#  ps -ef |grep smart
root      3275     1  0 Jun26 ?        00:00:00 /usr/sbin/smartd -q never
lps       7254 16964  0 Jun26 ?        00:00:00 /bin/bash /opt/lps/current/resourcereport/check_disk_smart_status.sh
root      7263  7254  0 Jun26 ?        00:00:00 sudo /usr/sbin/smartctl -a -q silent /dev/sda3
root      7264  7263  0 Jun26 ?        00:00:00 [smartctl] <defunct>
root     16738 16585  0 14:13 pts/0    00:00:00 grep smart


Actual results:

Some of sudo child process may run into defunct stat.


Expected results:

No process should be in defunct state and sudo should return with success.

Additional info: