From nobody Sat May 4 01:44:10 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1520466755933174.55077169104845; Wed, 7 Mar 2018 15:52:35 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A85095AFD9; Wed, 7 Mar 2018 23:52:34 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 63D667FB99; Wed, 7 Mar 2018 23:52:34 +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 1DB65181B9FC; Wed, 7 Mar 2018 23:52:34 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w27NqXei011804 for ; Wed, 7 Mar 2018 18:52:33 -0500 Received: by smtp.corp.redhat.com (Postfix) id 0D79C7C8C2; Wed, 7 Mar 2018 23:52:33 +0000 (UTC) Received: from mx1.redhat.com (ext-mx01.extmail.prod.ext.phx2.redhat.com [10.5.110.25]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 069545C20D for ; Wed, 7 Mar 2018 23:52:29 +0000 (UTC) Received: from smtp2.provo.novell.com (smtp2.provo.novell.com [137.65.250.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6A3A681DE6 for ; Wed, 7 Mar 2018 23:52:28 +0000 (UTC) Received: from [192.168.0.4] (prv-ext-foundry1int.gns.novell.com [137.65.251.240]) by smtp2.provo.novell.com with ESMTP (TLS encrypted); Wed, 07 Mar 2018 16:52:27 -0700 From: Jim Fehlig To: LibVir Message-ID: <7c128a00-5785-9f6e-906e-8be8b1c80098@suse.com> Date: Wed, 7 Mar 2018 16:52:26 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Language: en-US X-Greylist: Sender passed SPF test, Sender IP whitelisted by DNSRBL, ACL 207 matched, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Wed, 07 Mar 2018 23:52:28 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Wed, 07 Mar 2018 23:52:28 +0000 (UTC) for IP:'137.65.250.81' DOMAIN:'smtp2.provo.novell.com' HELO:'smtp2.provo.novell.com' FROM:'jfehlig@suse.com' RCPT:'' X-RedHat-Spam-Score: -2.301 (RCVD_IN_DNSWL_MED, SPF_PASS) 137.65.250.81 smtp2.provo.novell.com 137.65.250.81 smtp2.provo.novell.com X-Scanned-By: MIMEDefang 2.83 on 10.5.110.25 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com Subject: [libvirt] RFC regarding libvirtd deadlock 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: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Wed, 07 Mar 2018 23:52:35 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8"; format="flowed" Doing something foolish like # while true; do killall -HUP libvirtd; sleep 1; done # virsh create vm.xml can deadlock libvirtd. Threads of interest are Thread 4 (Thread 0x7fc13b53e700 (LWP 64084)): #0 0x00007fc13fba10bf in pthread_cond_wait@@GLIBC_2.3.2 () from=20 /lib64/libpthread.so.0 #1 0x00007fc14310213c in virCondWait (c=3D0x7fc110017fa8, m=3D0x7fc110017f= 80) at util/virthread.c:154 #2 0x00007fc1280244e9 in qemuMonitorSend (mon=3D0x7fc110017f70, msg=3D0x7f= c13b53d240) at qemu/qemu_monitor.c:1083 #3 0x00007fc12803bf5a in qemuMonitorJSONCommandWithFd (mon=3D0x7fc110017f7= 0, cmd=3D0x7fc110017700, scm_fd=3D-1, reply=3D0x7fc13b53d318) at=20 qemu/qemu_monitor_json.c:305 #4 0x00007fc12803c09c in qemuMonitorJSONCommand (mon=3D0x7fc110017f70,=20 cmd=3D0x7fc110017700, reply=3D0x7fc13b53d318) at qemu/qemu_monitor_json.c:335 ---Type to continue, or q to quit--- #5 0x00007fc12803f116 in qemuMonitorJSONSetCapabilities (mon=3D0x7fc110017= f70) at qemu/qemu_monitor_json.c:1298 #6 0x00007fc128026e14 in qemuMonitorSetCapabilities (mon=3D0x7fc110017f70) at qemu/qemu_monitor.c:1697 #7 0x00007fc127ffe250 in qemuProcessInitMonitor (driver=3D0x7fc12004e1e0, vm=3D0x7fc110003d00, asyncJob=3DQEMU_ASYNC_JOB_START) at qemu/qemu_pro= cess.c:1763 #8 0x00007fc127ffe564 in qemuConnectMonitor (driver=3D0x7fc12004e1e0,=20 vm=3D0x7fc110003d00, asyncJob=3D6, logCtxt=3D0x7fc1100089c0) at qemu/qemu_process.c:1835 #9 0x00007fc127fff386 in qemuProcessWaitForMonitor (driver=3D0x7fc12004e1e= 0, vm=3D0x7fc110003d00, asyncJob=3D6, logCtxt=3D0x7fc1100089c0) at=20 qemu/qemu_process.c:2180 #10 0x00007fc128009269 in qemuProcessLaunch (conn=3D0x7fc1100009a0,=20 driver=3D0x7fc12004e1e0, vm=3D0x7fc110003d00, asyncJob=3DQEMU_ASYNC_JOB_START, incoming=3D0x0, = snapshot=3D0x0, vmop=3DVIR_NETDEV_VPORT_PROFILE_OP_CREATE, flags=3D17) at qemu/qemu_pr= ocess.c:6111 #11 0x00007fc128009e85 in qemuProcessStart (conn=3D0x7fc1100009a0,=20 driver=3D0x7fc12004e1e0, vm=3D0x7fc110003d00, updatedCPU=3D0x0, asyncJob=3DQEMU_ASYNC_JOB_START= ,=20 migrateFrom=3D0x0, migrateFd=3D-1, migratePath=3D0x0, snapshot=3D0x0,=20 vmop=3DVIR_NETDEV_VPORT_PROFILE_OP_CREATE, flags=3D17) at qemu/qemu_process.c:6334 #12 0x00007fc1280552f1 in qemuDomainCreateXML (conn=3D0x7fc1100009a0, xml=3D0x7fc110000ed0 "