From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aml7c-0006Q1-3z for qemu-devel@nongnu.org; Sun, 03 Apr 2016 12:43:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aml7b-0006NV-D0 for qemu-devel@nongnu.org; Sun, 03 Apr 2016 12:43:32 -0400 Received: from mail-vk0-x229.google.com ([2607:f8b0:400c:c05::229]:34724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aml7b-0006NQ-7u for qemu-devel@nongnu.org; Sun, 03 Apr 2016 12:43:31 -0400 Received: by mail-vk0-x229.google.com with SMTP id e185so154380869vkb.1 for ; Sun, 03 Apr 2016 09:43:31 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Peter Maydell Date: Sun, 3 Apr 2016 17:43:11 +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 16:40, Liviu Ionescu wrote: > >> On 03 Apr 2016, at 15:28, Peter Maydell wrote: > >> since hw/arm/boot.o is in obj-y it should always be built, > > not necessarily, in my build configuration I have if's that > exclude most of the files non related to Cortex-M. boot.o is in obj-y; it is (I think) impossible to build a v7M supporting QEMU without boot.o unless you've modified the makefiles for some reason. That would not be a configuration issue or a bug in QEMU, but a problem with your local modifications. > in previous versions boot.o was not needed. in 2.5.1 you > introduced a non-obvious dependency to it and the build > passed, but the program crashed. > >> but we could assert on it rather than just crashing. > > my suggestion is to assert, it is easier to debug a failed > assertion. Yes, I agree. thanks -- PMM