Patch for defunct processes under Solaris 2.4?

Patch for defunct processes under Solaris 2.4?

Post by Joe Pico » Thu, 29 Jun 1995 04:00:00



We are having a problem with defunct processes* around
under Solaris 2.4 on Sparc 5's and Sparc 10's:

Quote:> ps aux |grep defunct:
>  kornman   5778  0.3  1.4  648  420 pts/1    S 13:59:38  0:00 grep defunct
>  root      5389  0.0  0.0    0    0          Z           0:00  <defunct>
>  root      5390  0.0  0.0    0    0          Z           0:00  <defunct>
>  kornman   5391  0.0  0.0    0    0          Z           0:06  <defunct>
>  picone    5593  0.0  0.0    0    0          Z           0:02  <defunct>

There was a patch published for Solaris 2.3 to fix this problem:

Quote:> 5.23) I have a lot of <defunct> processes. How do I get rid of them?

> In Solaris 2.3 (and presumably earlier) there is a bug in the
> pseudo tty modules that makes them hang in close.  This causes
> processes to hang forever while exiting.

> Fix: Apply patch 101415-02 (for 2.3).

There doesn't seem to be an equivalent patch for 2.4.

Does anyone know of a patch for this problem under Solaris 2.4?

-Joe

 
 
 

Patch for defunct processes under Solaris 2.4?

Post by Joe Pico » Thu, 29 Jun 1995 04:00:00


Here is more info. The processes can be traced to xdm (MIT X version).
We are running X compiled under 2.4. Does this mean there is a bug with xdm?

-Joe

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

/usr/bin/ps -ael:
 F S   UID   PID  PPID  C PRI NI     ADDR     SZ    WCHAN TTY      TIME COMD
19 T     0     0     0 70   0 SY f0186ca8      0          ?        0:01 sched
 8 S     0     1     0 80  41 20 fc0b8018    185 fc0b81e8 ?        0:19 init
...
 8 Z     0   280   274  1   0                                      0:00 <defunct>
 8 R     0   274     1 80  99 20 fc332330    752          ?       519:30 xdm
 8 Z     0   294   274  5   0                                      0:00 <defunct>
 8 Z     0   327   274 34   0                                      0:01 <defunct>

 
 
 

Patch for defunct processes under Solaris 2.4?

Post by Casper H.S. Dik - Network Security Engine » Thu, 29 Jun 1995 04:00:00



>We are having a problem with defunct processes* around
>under Solaris 2.4 on Sparc 5's and Sparc 10's:
>> ps aux |grep defunct:
>>  kornman   5778  0.3  1.4  648  420 pts/1    S 13:59:38  0:00 grep defunct
>>  root      5389  0.0  0.0    0    0          Z           0:00  <defunct>
>>  root      5390  0.0  0.0    0    0          Z           0:00  <defunct>
>>  kornman   5391  0.0  0.0    0    0          Z           0:06  <defunct>
>>  picone    5593  0.0  0.0    0    0          Z           0:02  <defunct>
>There was a patch published for Solaris 2.3 to fix this problem:

The patch for 2.3 fixed "seemingly defunct processes".  The processes
weren't defunct on close inspection with lsof.  They still had open
files associated with them whereas true defunct processes have only
some kernel state (usage statistics and exit status) associated with them.

It is unclear what precisely is your problem as your process listing
doesn't include parent pids.

If the parent pids are 1 and the processes are true zombies (check with lsof),
the there might be a bug in init *or* init is still executing a "wait"
type service.

If the parent process is not 1, then that particular parent process has a bug.

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.

 
 
 

1. solaris 2.4, X11R6, xdm = <defunct> processes ?

I'm running Solaris 2.4, X11R6 and xdm. After I started running
the xterms (with Xkernel on 3/50 - 3/60 's), I started getting
a LOT of defunct processes, and no login accounting from the xterms.
I started using the OW sessreg for login accounting, and it's
better, but the processes are still there.

Any suggestions would be appreciated !

Tony Carroll
Fla. Tech.

2. cant seem to get cde filemanger to work

3. Procmail, Solaris 2.4, and defunct processes...

4. Sparc threads?

5. subshells become <defunct> under Solaris 2.4

6. limiting pop user logins

7. Defunct Process on Solaris!!!!

8. Unix - Frequently Asked Questions (Contents) [Frequent posting]

9. defunct processes on Solaris 1.0

10. Removing "defunct" processes in solaris 5.5.1

11. Solaris 2.6: sshd leaves hundreds of defunct processes

12. Solaris: fork()-ed child process becomes <defunct> and not terminate.

13. Solaris, defunct processes after wait