GNOME Bugzilla – Bug 338266
rpm filter has many zombie rpm processes
Last modified: 2006-04-13 18:51:29 UTC
Please describe the problem: Installed the FC5 updates-testing version of beagle about 12 hours ago. Now I look at the process listing I see there are 94 zombie rpmq child processes with beagled-helper as parent. Version-Release number of selected component (if applicable): beagle-0.2.4-1.fc5.1 Steps to reproduce: 1. Installed new version of beagle 2. Started indexing 3. Left it machine running for 12 hours 4. "ps -ef" showed many zombie rpmq processes, with beagled-helper as the parent. Actual results: $ ps -ef ... jburgess 4419 4322 27 00:21 pts/0 02:12:08 beagled-helper --debug /usr/lib64/beagle/In jburgess 6281 4419 0 00:36 pts/0 00:00:00 [rpmq] <defunct> jburgess 6283 4419 0 00:36 pts/0 00:00:00 [rpmq] <defunct> jburgess 6284 4419 0 00:36 pts/0 00:00:00 [rpmq] <defunct> jburgess 6285 4419 0 00:36 pts/0 00:00:00 [rpmq] <defunct> jburgess 6286 4419 0 00:36 pts/0 00:00:00 [rpmq] <defunct> jburgess 6287 4419 0 00:36 pts/0 00:00:00 [rpmq] <defunct> ... $ ps -ef | grep -c rpmq 94 Expected results: No zombie processes Does this happen every time? Has happened once so far, but the number of zombie processes slowly increased over time (according to the process start times). Other information: I've taken a look at the source and the fix looks fairly easy, i'll attach a patch which seems to work to me in a moment.
Created attachment 63336 [details] [review] Patch to fix leak The problem seemed to go away after applying the patch and rebuilding. I'm new to beagle so you might want to look over the code yourself too in case there are any problems.
Oops ... I forgot to close pout :( Sorry. I will commit the patch. Thanks.
I'll take care of it, because I have to rework the way we spawn processes anyhow.
Checked into CVS.