From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54410) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fe60k-0005hV-RU for qemu-devel@nongnu.org; Fri, 13 Jul 2018 17:53:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fe60k-0002aZ-1U for qemu-devel@nongnu.org; Fri, 13 Jul 2018 17:53:58 -0400 Date: Fri, 13 Jul 2018 18:53:51 -0300 From: Eduardo Habkost Message-ID: <20180713215351.GA31657@localhost.localdomain> References: <1531470464-21522-1-git-send-email-thuth@redhat.com> <1531470464-21522-10-git-send-email-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1531470464-21522-10-git-send-email-thuth@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 09/16] hw/cpu/a9mpcore: Fix introspection problems with the "a9mpcore_priv" device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth Cc: qemu-devel@nongnu.org, Peter Maydell , Paolo Bonzini , qemu-arm@nongnu.org, Markus Armbruster , Beniamino Galvani , Subbaraya Sundeep , Alistair Francis , "Edgar E. Iglesias" , Andreas =?iso-8859-1?Q?F=E4rber?= On Fri, Jul 13, 2018 at 10:27:37AM +0200, Thomas Huth wrote: > Running QEMU with valgrind indicates a problem here: > > echo "{'execute':'qmp_capabilities'} {'execute':'device-list-properties'," \ > "'arguments':{'typename':'a9mpcore_priv'}}" \ > "{'execute': 'human-monitor-command', " \ > "'arguments': {'command-line': 'info qtree'}}" | \ > valgrind -q aarch64-softmmu/qemu-system-aarch64 -M none,accel=qtest -qmp stdio > [...] > ==30996== Invalid read of size 8 > ==30996== at 0x6185DA: qdev_print (qdev-monitor.c:686) > ==30996== by 0x6185DA: qbus_print (qdev-monitor.c:719) > ==30996== by 0x452B38: handle_hmp_command (monitor.c:3446) > [...] > > Use the new sysbus_init_child_obj() function to make sure that the objects > are cleaned up correctly when the parent gets destroyed. > > Signed-off-by: Thomas Huth Reviewed-by: Eduardo Habkost -- Eduardo