Bug 490158 - libxenstore.so leaks memory on every @domainIntroduced event
Summary: libxenstore.so leaks memory on every @domainIntroduced event
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: xen
Version: 5.4
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Michal Novotny
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-13 15:53 UTC by Daniel Berrangé
Modified: 2014-02-02 22:37 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-02 10:11:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Bug fix (644 bytes, patch)
2009-03-16 08:55 UTC, Michal Novotny
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:1328 0 normal SHIPPED_LIVE xen bug fix and enhancement update 2009-09-01 10:32:30 UTC

Description Daniel Berrangé 2009-03-13 15:53:20 UTC
Description of problem:
There is a bug in libxenstore.so which causes memory to leak on every @domainIntroduced event. Latest libvirt uses xenstore events for monitoring, so this will cause a leak in libvirtd daemon

Trivial fix is upstream

changeset:   18469:346c073ed6a4
user:        Keir Fraser <keir.fraser>
date:        Thu Sep 11 18:00:06 2008 +0100
files:       tools/xenstore/xs.c
description:
xenstore: Fix a memory leak in 'xs_is_domain_introduced'.

Signed-off-by: Konrad Rzeszutek <konrad>



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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Michal Novotny 2009-03-16 08:55:31 UTC
Created attachment 335322 [details]
Bug fix

Here is just a simple bug fix for this issue not to memory leak here. It's working fine. There was just a memory allocation issue like described both here and in the upstream.

Comment 2 Jiri Denemark 2009-03-20 13:52:11 UTC
Fix built into xen-3.0.3-83.el5

Comment 4 Yewei Shao 2009-07-24 10:57:40 UTC
I want to verify this bug because of the errata testing, but I need more steps or need some advice for this bug verification since this bug do not contains any steps, thanks.

Comment 6 Yewei Shao 2009-07-29 07:00:12 UTC
Verified in xen-3.0.3-91.el5

Comment 8 errata-xmlrpc 2009-09-02 10:11:49 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-1328.html


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