Received: from list by lists.gnu.org with archive (Exim 4.86_2) id 1hib9u-0001Il-7o for mharc-qemu-trivial@gnu.org; Wed, 03 Jul 2019 05:02:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56787) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hib9g-0001Hw-99 for qemu-trivial@nongnu.org; Wed, 03 Jul 2019 05:02:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hib9b-0002EB-LS for qemu-trivial@nongnu.org; Wed, 03 Jul 2019 05:02:18 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:41790) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hib9R-0008Tw-Ow for qemu-trivial@nongnu.org; Wed, 03 Jul 2019 05:02:08 -0400 Received: by mail-wr1-f68.google.com with SMTP id c2so1814588wrm.8 for ; Wed, 03 Jul 2019 02:01:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=SGe7susGi1OXjP+I2Z+yKcn0I9rskIm4uZtR3zrrv2U=; b=qolOIqfWTJ13a+uRGn1QMzqWySon1Lcy3KRXAgpEFXpTuDmHd5gbixYOgB9XTdvwyt gdGiK2xAYblwdomUVoW8LO7n3GR0SKG5QWEvhqPV6oNmnRpXm7mryiM7Mti4VptDyRxT KYma6Wr8m/GDvrwG7Y//tlA7chUVLS3rjuRGMMCyhvDvFwGxSgCpo2bBSUoC4IET5WHo XkHd/BsaiBFD++8F4qbpsuemBhFsB7sW7FjoocE7QF+SyAaQFNmnEdG4GRBeCC5NaSSB txKj8EdXvwrTuQawDyUDdAddFMST8uXL02uSV8uqIgOsXvO0hV4T6tMJtlKOrP6dLPxh XVzA== X-Gm-Message-State: APjAAAVY0Kg2kOG+id+FDLhyKGpnayH8knLVCis1CRo73tBWflObaGAV zG6R1mf9cHIsFk+CXy8fL/R4Qw== X-Google-Smtp-Source: APXvYqx4jee0ulTfHQIlGao0rbVo5z4V+Rwq06EltZ+H1mOF81dVyvcvAN6pWzHF8e4gcW9bopInyA== X-Received: by 2002:a5d:4843:: with SMTP id n3mr27993316wrs.77.1562144467723; Wed, 03 Jul 2019 02:01:07 -0700 (PDT) Received: from [192.168.1.38] (56.red-88-18-140.staticip.rima-tde.net. [88.18.140.56]) by smtp.gmail.com with ESMTPSA id b2sm1857433wrp.72.2019.07.03.02.01.06 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jul 2019 02:01:07 -0700 (PDT) To: Laurent Vivier , qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, mjt@tls.msk.ru, amit@kernel.org References: <156208710846.15457.11521609447031896814@c4a48874b076> <3321812b-d7c9-d69d-a0af-8bb1da04e057@vivier.eu> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Openpgp: id=89C1E78F601EE86C867495CBA2A3FD6EDEADC0DE; url=http://pgp.mit.edu/pks/lookup?op=get&search=0xA2A3FD6EDEADC0DE Message-ID: Date: Wed, 3 Jul 2019 11:01:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <3321812b-d7c9-d69d-a0af-8bb1da04e057@vivier.eu> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.221.68 Subject: Re: [Qemu-trivial] [Qemu-devel] [PULL 0/3] Trivial branch patches X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jul 2019 09:02:26 -0000 On 7/2/19 8:05 PM, Laurent Vivier wrote: > Le 02/07/2019 à 19:05, no-reply@patchew.org a écrit : >> Patchew URL: https://patchew.org/QEMU/20190702123713.14396-1-laurent@vivier.eu/ > ... >> PASS 2 qmp-test /x86_64/qmp/oob >> PASS 3 qmp-test /x86_64/qmp/preconfig >> PASS 4 qmp-test /x86_64/qmp/missing-any-arg >> --- >> PASS 5 device-introspect-test /x86_64/device/introspect/abstract-interfaces >> >> ================================================================= >> ==10595==ERROR: LeakSanitizer: detected memory leaks >> >> Direct leak of 32 byte(s) in 1 object(s) allocated from: >> #0 0x55b80fde5b1e in calloc (/tmp/qemu-test/build/x86_64-softmmu/qemu-system-x86_64+0x19f4b1e) > > I don't see how this series can introduce a memory leak... all changes > are trivial and there is no memory allocation added. > > So I guess it's a false positive. Any idea? Unrelated to your series, this commit: commit c82c7336de58876862e6b4dccbda29e9240fd388 Author: BALATON Zoltan Date: Thu Jun 20 12:55:23 2019 +0200 ati-vga: Implement DDC and EDID info from monitor added a call to bitbang_i2c_init() which has some leak. It was here since 3cd035d863 "GPIO I2C rework" introduced 'Fri Nov 20 23:37:15 2009', but since then the device-introspect test never run a machine using this device. Peter sent a fix for this earlier this morning: "hw/i2c/bitbang_i2c: Use in-place rather than malloc'd bitbang_i2c_interface struct" >> --- >> >> SUMMARY: AddressSanitizer: 64 byte(s) leaked in 2 allocation(s). >> /tmp/qemu-test/src/tests/libqtest.c:137: kill_qemu() tried to terminate QEMU process but encountered exit status 1 >> ERROR - too few tests run (expected 6, got 5) >> make: *** [/tmp/qemu-test/src/tests/Makefile.include:894: check-qtest-x86_64] Error 1 >> make: *** Waiting for unfinished jobs.... >> Traceback (most recent call last): >> >> >> The full log is available at >> http://patchew.org/logs/20190702123713.14396-1-laurent@vivier.eu/testing.asan/?type=message. >> --- >> Email generated automatically by Patchew [https://patchew.org/]. >> Please send your feedback to patchew-devel@redhat.com >> > >