From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTx1u-0001Ug-Ln for qemu-devel@nongnu.org; Tue, 16 Sep 2014 13:59:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTx1n-00088n-2Z for qemu-devel@nongnu.org; Tue, 16 Sep 2014 13:59:06 -0400 Received: from averel.grnet-hq.admin.grnet.gr ([195.251.29.3]:29806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTx1m-00087e-S0 for qemu-devel@nongnu.org; Tue, 16 Sep 2014 13:58:59 -0400 Date: Tue, 16 Sep 2014 20:58:45 +0300 From: Chrysostomos Nanakos Message-ID: <20140916175656.GA10502@blackdevil> References: <1410858395-24589-1-git-send-email-cnanakos@grnet.gr> <1410858395-24589-2-git-send-email-cnanakos@grnet.gr> <20140916135316.GA19869@irqsave.net> <541841C5.8060100@redhat.com> <20140916154330.GA4631@blackdevil> <54185B0C.6090008@redhat.com> <20140916155038.GB4631@blackdevil> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20140916155038.GB4631@blackdevil> Subject: Re: [Qemu-devel] [PATCH v2] async: aio_context_new(): Handle event_notifier_init failure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Chrysostomos Nanakos Cc: =?utf-8?Q?Beno=C3=AEt?= Canet , kwolf@redhat.com, pingfank@linux.vnet.ibm.com, famz@redhat.com, kroosec@gmail.com, jan.kiszka@siemens.com, mjt@tls.msk.ru, qemu-devel@nongnu.org, stefanha@redhat.com, sw@weilnetz.de, Paolo Bonzini , afaerber@suse.de, aliguori@amazon.com On Tue, Sep 16, 2014 at 06:50:38PM +0300, Chrysostomos Nanakos wrote: > On Tue, Sep 16, 2014 at 05:45:16PM +0200, Paolo Bonzini wrote: > > Il 16/09/2014 17:43, Chrysostomos Nanakos ha scritto: > > >> > error_propagate(errp, local_error); > > >> > return; > > > Just to note that after propagating the error and returning, QEMU fails > > > silently without printing the error message. > > > > What is your testcase? > > I am starting QEMU with the options below and explicitly set iothread->ctx to > NULL. Is that ok as a testcase or should I reduce my open files limit to > produce the error? > > qemu --enable-kvm -smp 2 -m 1024 -object iothread,id=iothread0 -drive file=archipelago:fedora_stable > -vnc 0.0.0.0:0 -qmp tcp:127.0.0.1:8888,server,nowait > > No error message, at least the propagated one, fails silently. > The segfault is caused when QOM tries to object_unref() the iothread object, type->instance_finalize(obj) is called which calls the registered iothread_instance_finalize function. A check there for the iothread->ctx seems to solve the problem. I will include the fix in the next patch series. Regards, Chrysostomos.