Skip to contentSkip to conversation

Process segfault causing sys resource block

DISCUSSION Gianluca Alberici 1 participant 1 message Mar 8, 2008

lore
Share & tools
lore
#0 lore raw

Hello,

I want to submit this case which in my understanding is quite abnormal. I have found on a production server (2.6.20) three segfaulted apache child that are marked as 'D'efunct.
Stopping apache caused init to adopt them. But they dont respond (i think because being segfaulted they're probably not in a good mood) and they (one of them) keep locked:

- TCP port 80 (Got open/freezed socket)
- The nfs mount over which they read files

Result: i have three 'defunct' processes that are basically locking main system resources. Cant restart apache, cant restart NFS. Only solution (for me): rebooting (and thats what i did).

Is there any other way to wipe these processes and/or freeing sys resources without rebooting ? If not, wouldnt it be a good thing to avoid userspace crashes like this to cause deadlocks/DOS ?

Thanks for any help/opinion,

Gianluca