From nobody Tue May 7 11:08:20 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1596557586; cv=none; d=zohomail.com; s=zohoarc; b=Bt1JowQuP4sFWawb69068cVSNa+9Qy33ezFiUrBrssoTDzN5iWU4tz5u9NFI9Zk/IJVN6pRCbuO5xfbIXf1sULS4rwgp7RTY52jvlcEup1yKHWs4pKfriPjpFy1MzhRuXUEHMm3rDD2YPivvZ+2oeo4NFIGkbblzpKrJaCcJCKg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1596557586; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=gHXELdFUXv6Jidon4rXVyDbXU3N/k5jE63oULzw2Q2A=; b=jZ8PC0JhruVTNaW5EllDgxtIQFZgOjLZpwHQnfy8geKVeoRtE/gPblIKXs4W/GIR+A6gZriOhg+TR2R0J39wnpyMamnCibTE5EEnt7C5gtt6uHJ9gyvZ7gIqJkzq8G+CHUkGXhRQmOvW097xQYSwQ6mPy3ycF5kIMY5eENyJP88= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1596557586228944.0384406297812; Tue, 4 Aug 2020 09:13:06 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-448-KfUnv6nVNxKI5zvq1QKsVg-1; Tue, 04 Aug 2020 12:13:02 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B5A5D79EED; Tue, 4 Aug 2020 16:12:56 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5D4CF5D9CC; Tue, 4 Aug 2020 16:12:55 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 167BD968C2; Tue, 4 Aug 2020 16:12:53 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 074GAFFV026191 for ; Tue, 4 Aug 2020 12:10:15 -0400 Received: by smtp.corp.redhat.com (Postfix) id EFC7A7D295; Tue, 4 Aug 2020 16:10:14 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast02.extmail.prod.ext.rdu2.redhat.com [10.11.55.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EB1037D2BE for ; Tue, 4 Aug 2020 16:10:12 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C654D8007B3 for ; Tue, 4 Aug 2020 16:10:12 +0000 (UTC) Received: from mail-lf1-f67.google.com (mail-lf1-f67.google.com [209.85.167.67]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-500-BuL71dV8PryhhhJxlie5pw-1; Tue, 04 Aug 2020 12:10:10 -0400 Received: by mail-lf1-f67.google.com with SMTP id 140so22660829lfi.5 for ; Tue, 04 Aug 2020 09:10:09 -0700 (PDT) Received: from kloomba.my.domain ([31.29.247.181]) by smtp.gmail.com with ESMTPSA id t22sm6475324lfr.12.2020.08.04.09.10.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Aug 2020 09:10:07 -0700 (PDT) X-MC-Unique: KfUnv6nVNxKI5zvq1QKsVg-1 X-MC-Unique: BuL71dV8PryhhhJxlie5pw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gHXELdFUXv6Jidon4rXVyDbXU3N/k5jE63oULzw2Q2A=; b=OZgL3n+zSz7sEi2eNWEUqL4qc6BRa87vgN5Mpq5Nj4Z6MISu/MiQVOulQOHhFbo1I4 vFPbCzsVcCcjrUvumXbUvVX2U2XTIy8PEfp4MPiB6jP9XRDGMkITgWKE8NBWOqo+FQq5 fUrWEIGdjUBGC5tkTeaU6Ia7XCott1rQW+s089c8s/e6m9//1hrLJyW2dCN0q+xuB+A4 ne57LKVVErEwA1FJY+c517yNkSwriIzUb7mRcHBrpoA07C5ElFF1nerjWRFc1gVKL6Qr AwPjSDJBF2pXavyLJgmAoPqdWOkItL7arWeB6FGMJP+u4NPsRpcWN2Nw7VQdh68z9a3r 3Tww== X-Gm-Message-State: AOAM530k0L647KEbIHYgVSVBG8DozbW+B+TG0XeYnzl4IKNhlWWpNLeZ svLEJ74Mf30lmJO7WeuQ0hrkNSLYSaY= X-Google-Smtp-Source: ABdhPJwJfbL/1LPuhoD7WVtMF3/uRkSxY39+hvsA/7Qgb9n+wo9I3JQfCwSulWLQCN6rSJ5pPyHJ1g== X-Received: by 2002:a19:ec12:: with SMTP id b18mr11304304lfa.52.1596557408176; Tue, 04 Aug 2020 09:10:08 -0700 (PDT) From: Roman Bogorodskiy To: libvir-list@redhat.com Subject: [PATCH] tests: qemublocktest: fix crashing with SIGBUS Date: Tue, 4 Aug 2020 20:10:00 +0400 Message-Id: <20200804161000.76167-1-bogorodskiy@gmail.com> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false; X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-loop: libvir-list@redhat.com Cc: Roman Bogorodskiy X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Commit bcbb026993 converted qemublocktest to use g_autoptr for virQEMUCaps. To prevent it from crashing, don't explicitly call virObjectUnref() on this object. Signed-off-by: Roman Bogorodskiy Reviewed-by: Daniel P. Berrang=C3=A9 Reviewed-by: J=C3=A1n Tomko --- tests/qemublocktest.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/qemublocktest.c b/tests/qemublocktest.c index fb5319d7bd..0685b703a1 100644 --- a/tests/qemublocktest.c +++ b/tests/qemublocktest.c @@ -1394,7 +1394,6 @@ mymain(void) cleanup: qemuTestDriverFree(&driver); VIR_FREE(capslatest_x86_64); - virObjectUnref(caps_x86_64); =20 return ret =3D=3D 0 ? EXIT_SUCCESS : EXIT_FAILURE; } --=20 2.27.0