Red Hat Bugzilla – Bug 188694
beagle leaves lots of zombie rpmq processes
Last modified: 2007-11-30 17:11:30 EST
Description of 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):
Happened over the first 12 hours after install.
Steps to Reproduce:
1. Install beagle and start index running
$ ps -ef
jburgess 4419 4322 27 00:21 pts/0 02:12:08 beagled-helper --debug
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
No zombie processes
Created attachment 127670 [details]
Patch to fix leak
I took a quick look at the source of the RPM filter and compared it to some of
the others to develop the patch attached. I recompiled beagle and ran it for an
hour and it appears to be indexing RPMs without leaving any zombie processes
now. This is the first time that i've looked at the beagle source so be careful
that i've not broken anything.
I raised a bug upstream too and included this patch.
For some reason I just got an internal bugzilla error when I tried to add this
as an external BZ reference.
beagle-0.2.5-1.fc5.1 has been pushed for fc5, which should resolve this issue. If these problems are still present in this version, then please make note of it in this bug report.