Bug 438012 - Potential memory leak in cman
Summary: Potential memory leak in cman
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: cman
Version: 5.2
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Christine Caulfield
QA Contact: GFS Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-18 17:38 UTC by Christine Caulfield
Modified: 2009-12-22 22:09 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-12-22 22:09:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Christine Caulfield 2008-03-18 17:38:07 UTC
Description of problem:

If cman cannot send a reply or data message to a client, it allocates memory and
queues it up internally. When the client disconnects this memory is not freed.

Comment 1 Christine Caulfield 2008-03-18 17:40:13 UTC
The fix for this is in git master (cman3) and the STABLE2 branch. git master
also has additional code to limit the number of outstanding replies on a connection.

Comment 2 Christine Caulfield 2008-03-19 10:19:56 UTC
for reference. on STABLE2 branch:

This commit fixes the potential leak:
commit ae3311d1de243236751a1d8b1970ee413e24d305

This one limits the number of connections:
commit 84349029e264e982d6b962ee81b13a9f13419115


Comment 3 Christine Caulfield 2008-04-29 14:27:45 UTC
Committed to RHEL5

commit b0b6f8fef397d7ec0099fa07475aaad5b2c81bac
Author: Christine Caulfield <ccaulfie>
Date:   Wed Mar 19 10:08:51 2008 +0000

    [CMAN] Limit outstanding replies

commit f5fee58ee9dcdbc602e0dca002a0b1520f3b866e
Author: Christine Caulfield <ccaulfie>
Date:   Tue Mar 18 15:56:45 2008 +0000

    [CMAN] Free up any queued messages when someone disconnects


Comment 4 Lon Hohberger 2009-12-22 22:09:51 UTC
This was definitely fixed in 5.4.  I did not check earlier releases.


Note You need to log in before you can comment on or make changes to this bug.