Bug 1329046
Summary: | "virsh perf $guest --enable '' " has memory leak. | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Fangge Jin <fjin> |
Component: | libvirt | Assignee: | Peter Krempa <pkrempa> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.3 | CC: | dyuan, mzhan, pkrempa, rbalakri, yafu, zpeng |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.3.4-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-03 18:43:38 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Fangge Jin
2016-04-21 02:49:11 UTC
Fixed upstream: commit f4f916a9e35d50fe423443e95ca02b28fb2d0e0b Author: Peter Krempa <pkrempa> Date: Thu Apr 21 09:51:08 2016 +0200 virsh: perf: Don't leak domain After failing to parse the perf event list, the code would return failure without freeing the previously acquired object. Rearrange the code to avoid the problem. Verify the bug with libvirt-1.3.4-1.el7.x86_64. Steps: 1.# valgrind --leak-check=full virsh perf rhel7.1 --enable '' ==25443== Memcheck, a memory error detector ==25443== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==25443== Using Valgrind-3.10.0 and LibVEX; rerun with -h for copyright info ==25443== Command: virsh perf rhel7.1 --enable ==25443== error: Failed to get option 'enable': Option argument is empty ==25443== ==25443== HEAP SUMMARY: ==25443== in use at exit: 102,877 bytes in 1,067 blocks ==25443== total heap usage: 1,965 allocs, 898 frees, 818,846 bytes allocated ==25443== ==25443== LEAK SUMMARY: ==25443== definitely lost: 0 bytes in 0 blocks ==25443== indirectly lost: 0 bytes in 0 blocks ==25443== possibly lost: 0 bytes in 0 blocks ==25443== still reachable: 102,877 bytes in 1,067 blocks ==25443== suppressed: 0 bytes in 0 blocks ==25443== Reachable blocks (those to which a pointer was found) are not shown. ==25443== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==25443== ==25443== For counts of detected and suppressed errors, rerun with: -v ==25443== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 1 from 1) No memory leak. So mark this bug verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2016-2577.html |