Bug 490158

Summary: libxenstore.so leaks memory on every @domainIntroduced event
Product: Red Hat Enterprise Linux 5 Reporter: Daniel Berrangé <berrange>
Component: xenAssignee: Michal Novotny <minovotn>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 5.4CC: areis, llim, mshao, xen-maint
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-02 10:11:49 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
Bug fix none

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