uec-component-listener leaves defunct child processes in the process table

Bug #531899 reported by Thierry Carrez on 2010-03-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eucalyptus (Ubuntu)
Low
Thierry Carrez

Bug Description

uec-component-listener does not check its child processes and therefore they are left in the process table as defunct:
106 10533 1 0 13:57 ? 00:00:00 /usr/sbin/uec_component_listener
106 10534 10533 0 13:57 ? 00:00:00 [node] <defunct>
106 10535 10533 0 13:57 ? 00:00:00 [uec_component_l] <defunct>
106 10536 10533 0 13:57 ? 00:00:00 [uec_component_l] <defunct>
106 10537 10533 0 13:57 ? 00:00:00 [uec_component_l] <defunct>
106 10538 10533 0 13:57 ? 00:00:00 [uec_component_l] <defunct>
106 10539 10533 0 13:57 ? 00:00:00 [node] <defunct>

The process table is clean when uec_component_listener is stopped.

Two issues here:
 * uec_component_listener creates unnecessary child processes for calls to scripts that are not even available locally
 * uec_component_listener does not wait() on its child processes so when they complete they are left as defunct in the process table

Thierry Carrez (ttx) on 2010-03-04
Changed in eucalyptus (Ubuntu):
assignee: nobody → Thierry Carrez (ttx)
importance: Undecided → Low
status: New → Triaged
Thierry Carrez (ttx) wrote :

Proposed fix in linked branch... I wonder if there would be a less resource-intensive solution, like creating subprocesses that would not result in defunct entries when they terminate...

Changed in eucalyptus (Ubuntu):
status: Triaged → In Progress
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package eucalyptus - 1.6.2-0ubuntu9

---------------
eucalyptus (1.6.2-0ubuntu9) lucid; urgency=low

  * debian/registration/uec_component_listener.c:
    - Register a SIGCHLD handler to take care of dead children (LP: #531899)
    - Do not create unnecessary child processes to call non-existent scripts
 -- Thierry Carrez <email address hidden> Fri, 05 Mar 2010 12:13:19 +0100

Changed in eucalyptus (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers