Bug 205616

Summary: bonobo-activation-server hang
Product: [Fedora] Fedora Reporter: Volker Braun <vbraun.name>
Component: libbonoboAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: libbonobo-2.14.0-1.fc5.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-08 22:00:42 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
Fix file descriptor leak
none
Updated libbonobo spec file. none

Description Volker Braun 2006-09-07 16:59:47 UTC
Description of problem:

Sometimes (especially in combination with the mail-notification applet from
fedora extras), I cannot open any new windows on the gnome desktop. "top" shows
bonobo-activation-server using 100% cpu. 

Further investigation shows that bonobo-activation-server ran out of file
descriptors. If spawning fails, it does not clean up open file descriptors.

Version-Release number of selected component (if applicable):

libbonobo-2.14.0-1.i386.rpm

How reproducible:

Always.

Steps to Reproduce:
1. Install mail-notification 3.0 and configure it to watch your evolution inbox.
2. Close evolution.
3. Watch /proc/<pid of bonobo-activation-server>/fd/ fill up.
  
Actual results:

bonobo-activation-server runs out of file descriptors

Expected results:

No leak.

Additional info:

Fix is in the following comment. This might be the cause for bug 189475, too.

Comment 1 Volker Braun 2006-09-07 17:08:53 UTC
Created attachment 135785 [details]
Fix file descriptor leak

FreeBSD has a patch addressing memory/file descriptor leaks:

http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/ports/devel/libbonobo/files/patch-bonobo-activation_bonobo-activation-fork-server.c


Taking their patch directly did not work for me, though. It also addresses
memory leaks and these parts lead to a double free error. I isolated the file
descriptor leak part of this patch, it is in the attachment.

Comment 2 Volker Braun 2006-09-07 17:10:42 UTC
Created attachment 135786 [details]
Updated libbonobo spec file.

Comment 3 Volker Braun 2006-09-08 22:00:42 UTC
Apparently this has been fixed in the updates today,
libbonobo-2.14.0-1.fc5.1.rpm works. Marking as resolved.