From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ampbM-0005M3-4V for qemu-devel@nongnu.org; Sun, 03 Apr 2016 17:30:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ampbK-0005n1-WB for qemu-devel@nongnu.org; Sun, 03 Apr 2016 17:30:31 -0400 Received: from mail-vk0-x229.google.com ([2607:f8b0:400c:c05::229]:34160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ampbK-0005mx-Mt for qemu-devel@nongnu.org; Sun, 03 Apr 2016 17:30:30 -0400 Received: by mail-vk0-x229.google.com with SMTP id e185so158431413vkb.1 for ; Sun, 03 Apr 2016 14:30:30 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <63AEB8A6-929B-48B2-B6D1-13FC80F8888F@livius.net> References: <0F59BEF3-8BDD-434B-9EC4-3DECF9465A44@livius.net> <63AEB8A6-929B-48B2-B6D1-13FC80F8888F@livius.net> From: Peter Maydell Date: Sun, 3 Apr 2016 22:30:10 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] segmentation fault in object.c:type_initialize_interface() if interface not defined List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liviu Ionescu Cc: QEMU Developers On 3 April 2016 at 18:56, Liviu Ionescu wrote: > well, to summarise, I notified you that in certain conditions, > due to an non-obvious dependency that does not break the build > when not met, the existing code crashes at run time with a > segmentation fault, and I suggested that an assert might help > developers to save some debugging time. Which I completely agree with. If you want to send a patch to add the assert I'm happy to review it. thanks -- PMM