From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRSym-0000eN-GN for qemu-devel@nongnu.org; Mon, 17 Aug 2015 18:34:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRSyi-0000th-4z for qemu-devel@nongnu.org; Mon, 17 Aug 2015 18:34:08 -0400 Received: from mx2.suse.de ([195.135.220.15]:35995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRSyh-0000tY-LJ for qemu-devel@nongnu.org; Mon, 17 Aug 2015 18:34:04 -0400 References: <76f0a328e53daa4a2303fe17d3bbe157d7b40d03.1437699224.git.alistair.francis@xilinx.com> From: =?UTF-8?Q?Andreas_F=c3=a4rber?= Message-ID: <55D26157.8050502@suse.de> Date: Tue, 18 Aug 2015 00:33:59 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v1 2/3] object.c: object_class_dynamic_cast return NULL if the class has no type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alistair Francis Cc: Sai Pavan Boddu , Peter Maydell , Peter Crosthwaite , Edgar Iglesias , "qemu-devel@nongnu.org Developers" Am 18.08.2015 um 00:24 schrieb Alistair Francis: > On Sat, Aug 15, 2015 at 2:22 PM, Peter Crosthwaite > wrote: >> On Mon, Jul 27, 2015 at 11:37 AM, Alistair Francis >> wrote: >>> If the ObjectClass has no type return NULL instead of trying to compa= re >>> the type name. >>> >> >> What was the issue? >=20 > There is a seg fault in object_class_dynamic_cast() because there is > no type in the ObjectClass struct. That should never happen, ever since TYPE_OBJECT is no longer NULL. > It happens when it is trying to cast the "pci-device", which is called > from the ahci_irq_lower() function. The function is testing if the > device is a pci device, so it should return NULL if it isn't valid. It rather sounds as if some build-time dependency is wrong, which we used to run into for the Container type before Paolo macrofied this. Please try again with a clean build - if it still occurs, we'll need a reproducible test case to investigate what is going on rather than papering over a latent bug. Thanks, Andreas --=20 SUSE Linux GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Felix Imend=C3=B6rffer, Jane Smithard, Graham Norton; HRB 21284 (AG N= =C3=BCrnberg)