Bug 1135388 - Memory leak in testDomainGenerateIfnames
Summary: Memory leak in testDomainGenerateIfnames
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: 20
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Ján Tomko
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: TRACKER-bugs-affecting-libguestfs
TreeView+ depends on / blocked
Reported: 2014-08-29 08:08 UTC by Richard W.M. Jones
Modified: 2014-09-19 10:13 UTC (History)
10 users (show)

Fixed In Version: libvirt-
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-09-19 10:13:46 UTC
Type: Bug

Attachments (Terms of Use)

Description Richard W.M. Jones 2014-08-29 08:08:04 UTC
Description of problem:

==12033==    at 0x4C2745D: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==12033==    by 0x60C960F: __vasprintf_chk (in /usr/lib64/libc-2.18.so)
==12033==    by 0x541AF45: virVasprintfInternal (stdio2.h:210)
==12033==    by 0x541B03A: virAsprintfInternal (virstring.c:358)
==12033==    by 0x54DA65C: testDomainGenerateIfnames (test_driver.c:409)
==12033==    by 0x54DC133: testConnectOpen (test_driver.c:915)
==12033==    by 0x549D216: do_open (libvirt.c:1239)
==12033==    by 0x549FA98: virConnectOpenAuth (libvirt.c:1481)
==12033==    by 0x5267F3: v2v_dumpxml (domainxml-c.c:88)
==12033==    by 0x46A8DE: camlInput_libvirt__fun_1089 (utils.ml:29)
==12033==    by 0x4576E5: camlV2v__main_1021 (v2v.ml:43)
==12033==    by 0x4589B0: camlV2v__entry (v2v.ml:359)

Version-Release number of selected component (if applicable):


Unfortunately I was not able to test this with upstream
libvirt since it seems the ./run script is broken.  My program
is unable to connect to the session libvirtd socket.

How reproducible:

With, 100% reproducible.

Steps to Reproduce:
1. Run virt-v2v under valgrind.
2. Supply the libvirt test XML from here:


3. Something about the bridges & networks in this XML causes a
memory leak in the test driver, as shown above.

Comment 1 Ján Tomko 2014-09-02 10:39:22 UTC
Fixed upstream by:
commit 628c2255a9959b496f08dc501ae65a692ff9daa6
Author:     Ján Tomko <jtomko@redhat.com>
CommitDate: 2014-09-02 11:57:39 +0200

    Free ifname in testDomainGenerateIfnames

git describe: v1.2.8-2-g628c225 

Backported to v1.1.3-maint as: v1.1.3.5-8-ga36e39c

Comment 2 Fedora Update System 2014-09-14 19:00:29 UTC
libvirt- has been submitted as an update for Fedora 20.

Comment 3 Fedora Update System 2014-09-19 10:13:46 UTC
libvirt- has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

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