Received: from eggs.gnu.org ([2001:4830:134:3::10]:35611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLpoQ-0000s7-Sp for qemu-devel@nongnu.org; Thu, 12 Feb 2015 04:11:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLpoN-0008Ji-Nk for qemu-devel@nongnu.org; Thu, 12 Feb 2015 04:11:54 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLpoN-0008Hf-Fy for qemu-devel@nongnu.org; Thu, 12 Feb 2015 04:11:51 -0500 From: Markus Armbruster References: <1423153463-26494-1-git-send-email-armbru@redhat.com> <54DA30FE.9040309@redhat.com> <87386cik2b.fsf@blackfin.pond.sub.org> <54DB9F6E.90700@redhat.com> Date: Thu, 12 Feb 2015 10:11:45 +0100 In-Reply-To: <54DB9F6E.90700@redhat.com> (Paolo Bonzini's message of "Wed, 11 Feb 2015 19:29:02 +0100") Message-ID: <87egpvbijy.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PULL 0/4] coverity: Improve and extend model List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Peter Maydell , QEMU Developers Paolo Bonzini writes: > \>> It seems like Coverity Scan doesn't like the new model. Possibly the >>> fault of the third patch. >> >> Works for me with a local 7.0.3 installation. Which I just realized is >> outdated. I'll recheck with 7.6.0. >> >>> Will check (for now I'm still running scans >>> with the old model). >> >> Appreciated. > > Yes, the last patch seems to be the culprit. It failed immediately with > the __coverity_mark_as_afm_freed__(ptr, "g_free") model; Any diagnostics? Works for me locally with 7.6.0, and matches the reference manual's examples for the ALLOC_FREE_MISMATCH checker. > it's been > running for a while without it even though it's not done yet. > > Perhaps we can do something like this: > > /* Some helpful comment here. */ > #if 1 > #define AFM_g_free AFM_free > #else > #define AFM_g_free "g_free" > #endif Yes. If you want me to write the helpful comment, I need to know what exactly goes wrong. The alternative is to revert the patch for now. Aside: would be nice if Coverity pre-defined a symbol when ALLOC_FREE_MISMATCH is enabled, it would let me enable support for the checker exactly when it's wanted.