Bug 767488
Summary: | [libvirt]memleak when "run virsh console guest". | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | zhpeng | ||||
Component: | libvirt | Assignee: | Alex Jia <ajia> | ||||
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 6.3 | CC: | acathrow, ajia, cwei, dallan, eblake, mshao, mzhan, rwu, veillard | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | libvirt-0.9.9-1.el6 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-06-20 06:39:05 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
zhpeng
2011-12-14 07:52:16 UTC
It exists a quite big leaks on virConsoleEventOnStdin and virConsoleEventOnStdout. Created attachment 547113 [details]
valgrind full log
(In reply to comment #2) > It exists a quite big leaks on virConsoleEventOnStdin and > virConsoleEventOnStdout. Do you know where the leak is? (In reply to comment #4) > (In reply to comment #2) > > It exists a quite big leaks on virConsoleEventOnStdin and > > virConsoleEventOnStdout. > > Do you know where the leak is? I tried to avoid memory leaks on functions virConsoleEventOnStdin, virConsoleEventOnStdout and virConsoleEventOnStream, but my change has effect on actual 'virsh console' function, it must be my mistake, so I need to check my modification again. Patch for upstream: http://www.redhat.com/archives/libvir-list/2011-December/msg00872.html commit 2b603dcb6c2b8d07044241c9feaf0dfafecad09d Author: Alex Jia <ajia> Date: Tue Dec 20 17:40:13 2011 +0800 console: plug memory leaks Using 'virReallocN' to allocate memory on virConsoleEventOnStdin, virConsoleEventOnStdout and virConsoleEventOnStream, however, the cleanup function virConsoleShutdown hasn't released these memory. * tools/console.c: fix memory leaks on virConsoleShutdown. Reproduce it with libvirt-0.9.8-1.el6.x86_64. Verify it with libvirt-0.9.9-1.el6 and it passed. 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. http://rhn.redhat.com/errata/RHSA-2012-0748.html |