Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
valgrind reports the use of uninitialized memory affecting libvirtd execution, as well as several leaks directly attributable to libvirt
Version-Release number of selected component (if applicable):
libvirt-0.8.7-7.el6
How reproducible:
100%
Steps to Reproduce:
1. service libvirtd stop
2. valgrind --leak-check=full /usr/sbin/libvirtd&
3. sleep 30 && kill $!
Actual results:
Output includes:
==29158== Conditional jump or move depends on uninitialised value(s)
==29158== at 0x3297C43DF5: _itoa_word (in /lib64/libc-2.12.so)
==29158== by 0x3297C44EB4: vfprintf (in /lib64/libc-2.12.so)
==29158== by 0x3297C6EFF1: vsnprintf (in /lib64/libc-2.12.so)
==29158== by 0x3297C4F062: snprintf (in /lib64/libc-2.12.so)
==29158== by 0x3297D099E5: getnameinfo (in /lib64/libc-2.12.so)
==29158== by 0x3C9AE3D975: virSocketFormatAddrFull (network.c:194)
fixed by upstream:
commit 243b7814c778e555e63d105dac049291475221dc
Author: Eric Blake <eblake>
Date: Mon Jan 10 15:08:56 2011 -0700
network: plug unininitialized read found by valgrind
* src/util/network.c (virSocketAddrMask): Zero out port, so that
iptables can initialize just the netmask then call
virSocketFormatAddr without an uninitialized read in getnameinfo.
It also includes:
==29158== 8 bytes in 1 blocks are definitely lost in loss record 53 of 413
==29158== at 0x4A04A28: calloc (vg_replace_malloc.c:467)
==29158== by 0x3C9AE3983B: virAllocN (memory.c:130)
==29158== by 0x3C9AE467B6: virXPathNodeSet (xml.c:614)
==29158== by 0x3C9AE630C7: virNetworkDefParseNode (network_conf.c:631)
fixed by upstream:
commit 6e2bab80c8899cee33d2958ee50e6f6fa304591f
Author: Eric Blake <eblake>
Date: Mon Jan 10 15:35:37 2011 -0700
network: plug memory leak
* src/conf/network_conf.c (virNetworkDefParseXML): Release ipNodes.
It also includes:
==29158== 352 bytes in 11 blocks are definitely lost in loss record 374 of 413
==29158== at 0x4A04A28: calloc (vg_replace_malloc.c:467)
==29158== by 0x3C9AE3985D: virAlloc (memory.c:102)
==29158== by 0x3C9AE751E1: x86ModelNew (cpu_x86.c:744)
==29158== by 0x3C9AE75AA4: x86MapLoadCallback (cpu_x86.c:943)
fixed by upstream:
commit fae1b8aac47ea5009b11f5d562e1eaa0ec925c6a
Author: Eric Blake <eblake>
Date: Mon Jan 10 16:56:36 2011 -0700
cpu: plug memory leak
* src/cpu/cpu_x86.c (x86ModelLoad): Free data before overwriting.
Expected results:
The problems mentioned above should not appear in output (valgrind might detect other problems; for example, bug 620345 covers leaks related to libnl)
Additional info:
Verified
No memory leaks now. Also without possibly lost problems with libnl-1.1-13.
Packages:
libvirt-0.8.7-8.el6.x86_64
valgrind-3.6.0-3.el6.x86_64
qemu-kvm-0.12.1.2-2.143.el6.x86_64
kernel-2.6.32-118.el6.x86_64
libnl-1.1-13.el6.x86_64
Steps:
1. service libvirtd stop
2. valgrind --leak-check=full /usr/sbin/libvirtd&
3. sleep 30 && kill $!
Actual results:
==9370== HEAP SUMMARY:
==9370== in use at exit: 485,193 bytes in 7,167 blocks
==9370== total heap usage: 82,835 allocs, 75,668 frees, 364,022,509 bytes allocated
==9370==
==9370== LEAK SUMMARY:
==9370== definitely lost: 0 bytes in 0 blocks
==9370== indirectly lost: 0 bytes in 0 blocks
==9370== possibly lost: 0 bytes in 0 blocks
==9370== still reachable: 485,193 bytes in 7,167 blocks
==9370== suppressed: 0 bytes in 0 blocks
==9370== Reachable blocks (those to which a pointer was found) are not shown.
==9370== To see them, rerun with: --leak-check=full --show-reachable=yes
==9370==
==9370== For counts of detected and suppressed errors, rerun with: -v
==9370== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 30 from 9)
[1]+ Done valgrind --leak-check=full /usr/sbin/libvirtd
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-2011-0596.html
Description of problem: valgrind reports the use of uninitialized memory affecting libvirtd execution, as well as several leaks directly attributable to libvirt Version-Release number of selected component (if applicable): libvirt-0.8.7-7.el6 How reproducible: 100% Steps to Reproduce: 1. service libvirtd stop 2. valgrind --leak-check=full /usr/sbin/libvirtd& 3. sleep 30 && kill $! Actual results: Output includes: ==29158== Conditional jump or move depends on uninitialised value(s) ==29158== at 0x3297C43DF5: _itoa_word (in /lib64/libc-2.12.so) ==29158== by 0x3297C44EB4: vfprintf (in /lib64/libc-2.12.so) ==29158== by 0x3297C6EFF1: vsnprintf (in /lib64/libc-2.12.so) ==29158== by 0x3297C4F062: snprintf (in /lib64/libc-2.12.so) ==29158== by 0x3297D099E5: getnameinfo (in /lib64/libc-2.12.so) ==29158== by 0x3C9AE3D975: virSocketFormatAddrFull (network.c:194) fixed by upstream: commit 243b7814c778e555e63d105dac049291475221dc Author: Eric Blake <eblake> Date: Mon Jan 10 15:08:56 2011 -0700 network: plug unininitialized read found by valgrind * src/util/network.c (virSocketAddrMask): Zero out port, so that iptables can initialize just the netmask then call virSocketFormatAddr without an uninitialized read in getnameinfo. It also includes: ==29158== 8 bytes in 1 blocks are definitely lost in loss record 53 of 413 ==29158== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==29158== by 0x3C9AE3983B: virAllocN (memory.c:130) ==29158== by 0x3C9AE467B6: virXPathNodeSet (xml.c:614) ==29158== by 0x3C9AE630C7: virNetworkDefParseNode (network_conf.c:631) fixed by upstream: commit 6e2bab80c8899cee33d2958ee50e6f6fa304591f Author: Eric Blake <eblake> Date: Mon Jan 10 15:35:37 2011 -0700 network: plug memory leak * src/conf/network_conf.c (virNetworkDefParseXML): Release ipNodes. It also includes: ==29158== 352 bytes in 11 blocks are definitely lost in loss record 374 of 413 ==29158== at 0x4A04A28: calloc (vg_replace_malloc.c:467) ==29158== by 0x3C9AE3985D: virAlloc (memory.c:102) ==29158== by 0x3C9AE751E1: x86ModelNew (cpu_x86.c:744) ==29158== by 0x3C9AE75AA4: x86MapLoadCallback (cpu_x86.c:943) fixed by upstream: commit fae1b8aac47ea5009b11f5d562e1eaa0ec925c6a Author: Eric Blake <eblake> Date: Mon Jan 10 16:56:36 2011 -0700 cpu: plug memory leak * src/cpu/cpu_x86.c (x86ModelLoad): Free data before overwriting. Expected results: The problems mentioned above should not appear in output (valgrind might detect other problems; for example, bug 620345 covers leaks related to libnl) Additional info: