Bug 616091 - Memory leak in xenstore
Summary: Memory leak in xenstore
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: xen
Version: 5.4
Hardware: x86_64
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: Xen Maintainance List
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Keywords: ZStream
Depends On: 606919
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-19 16:06 UTC by RHEL Product and Program Management
Modified: 2013-01-11 03:08 UTC (History)
21 users (show)

(edit)
xenstore slowly but consistently leaked memory. This caused problems on systems that ran for a long time. These packages remove this leak.
Clone Of:
(edit)
Last Closed: 2010-07-29 11:47:01 UTC


Attachments (Terms of Use)
log file of valgrind without the patch (237.41 KB, text/plain)
2010-07-27 09:34 UTC, Yufang Zhang
no flags Details
log file of valgrind with the patch (237.29 KB, text/plain)
2010-07-27 09:35 UTC, Yufang Zhang
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2010:0572 normal SHIPPED_LIVE xen bug fix update 2010-07-29 11:46:58 UTC

Description RHEL Product and Program Management 2010-07-19 16:06:59 UTC
This bug has been copied from bug #606919 and has been proposed
to be backported to 5.5 z-stream (EUS).

Comment 5 Yufang Zhang 2010-07-27 09:30:12 UTC
QA verified this bug on xen-3.0.3-105.el5_5.5:

1. Start libvirtd valgrind with the following command:
#valgrind -v --leak-check=full --show-reachable=yes --log-file=logfile /usr/sbin/libvirtd

2. Remote connect to libvirtd via virsh for 10 minutes with the following command:
#count=0; while [ $count -lt 200 ]; do virsh -c xen+ssh://localhost list; sleep 3; let count=$count+1; done;


For xen package(xen-3.0.3-113.el5) without the patch, we could find memory leak from the logfile:
8,000 bytes in 200 blocks are definitely lost in loss record 291 of 294
==1063==    at 0x4A05E1C: malloc (vg_replace_malloc.c:195)
==1063==    by 0x4C289D9: read_message (xs.c:768)
==1063==    by 0x4C28B4B: read_thread (xs.c:824)
==1063==    by 0x3A61C0673C: start_thread (in /lib64/libpthread-2.5.so)
==1063==    by 0x3A610D3D1C: clone (in /lib64/libc-2.5.so)
==1063==

For xen-3.0.3-105.el5_5.5, no memory leak triggered by xenstore found.

logfiles on both xen packages will be uploaded soon.

Comment 6 Yufang Zhang 2010-07-27 09:34:29 UTC
Created attachment 434636 [details]
log file of valgrind without the patch

Comment 7 Yufang Zhang 2010-07-27 09:35:25 UTC
Created attachment 434637 [details]
log file of valgrind with the patch

Comment 9 errata-xmlrpc 2010-07-29 11:47:01 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-2010-0572.html

Comment 10 Florian Nadge 2010-08-04 13:40:46 UTC
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.

New Contents:
xenstore slowly but consistently leaked memory. This caused problems on systems that ran for a long time. These packages remove this leak.


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