Bug 188694

Summary: beagle leaves lots of zombie rpmq processes
Product: [Fedora] Fedora Reporter: Jon Burgess <jburgess777>
Component: beagleAssignee: Alexander Larsson <alexl>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-06-21 09:44:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch to fix leak none

Description Jon Burgess 2006-04-12 08:08:45 UTC
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):
beagle-0.2.4-1.fc5.1

How reproducible:
Happened over the first 12 hours after install.

Steps to Reproduce:
1. Install beagle and start index running
2.
3.
  
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

Additional info:

Comment 1 Jon Burgess 2006-04-12 20:03:19 UTC
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.

Comment 2 Jon Burgess 2006-04-12 20:59:34 UTC
I raised a bug upstream too and included this patch.

Comment 3 Jon Burgess 2006-04-12 21:13:53 UTC
http://bugzilla.gnome.org/show_bug.cgi?id=338266

For some reason I just got an internal bugzilla error when I tried to add this
as an external BZ reference.

Comment 4 Fedora Update System 2006-04-21 14:42:50 UTC
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.