After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 338266 - rpm filter has many zombie rpm processes
rpm filter has many zombie rpm processes
Status: RESOLVED FIXED
Product: beagle
Classification: Other
Component: General
0.2.4
Other All
: Normal normal
: ---
Assigned To: Joe Shaw
Beagle Bugs
Depends on:
Blocks:
 
 
Reported: 2006-04-12 21:01 UTC by Jon Burgess
Modified: 2006-04-13 18:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix leak (348 bytes, patch)
2006-04-12 21:03 UTC, Jon Burgess
none Details | Review

Description Jon Burgess 2006-04-12 21:01:52 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.
Comment 1 Jon Burgess 2006-04-12 21:03:28 UTC
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.
Comment 2 Debajyoti Bera 2006-04-12 21:30:14 UTC
Oops ... I forgot to close pout :( Sorry.
I will commit the patch. Thanks.
Comment 3 Joe Shaw 2006-04-12 22:19:18 UTC
I'll take care of it, because I have to rework the way we spawn processes anyhow.
Comment 4 Joe Shaw 2006-04-13 18:51:29 UTC
Checked into CVS.