Received: from eggs.gnu.org ([2001:4830:134:3::10]:48174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffAiJ-0002iz-LP for qemu-devel@nongnu.org; Mon, 16 Jul 2018 17:07:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ffAiI-0005Yq-Nb for qemu-devel@nongnu.org; Mon, 16 Jul 2018 17:07:23 -0400 Date: Mon, 16 Jul 2018 18:07:15 -0300 From: Eduardo Habkost Message-ID: <20180716210715.GT31657@localhost.localdomain> References: <1531745974-17187-1-git-send-email-thuth@redhat.com> <1531745974-17187-16-git-send-email-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1531745974-17187-16-git-send-email-thuth@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 15/17] hw/arm/stm32f205_soc: Fix introspection problem with 'stm32f205-soc' 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 Mon, Jul 16, 2018 at 02:59:32PM +0200, Thomas Huth wrote: > Valgrind complains: > > echo "{'execute':'qmp_capabilities'} {'execute':'device-list-properties'," \ > "'arguments':{'typename':'stm32f205-soc'}}" \ > "{'execute': 'human-monitor-command', " \ > "'arguments': {'command-line': 'info qtree'}}" | \ > valgrind -q aarch64-softmmu/qemu-system-aarch64 -M none,accel=qtest -qmp stdio > [...] > ==28531== Invalid read of size 8 > ==28531== at 0x6185BA: qdev_print (qdev-monitor.c:686) > ==28531== by 0x6185BA: qbus_print (qdev-monitor.c:719) > ==28531== by 0x452B38: handle_hmp_command (monitor.c:3446) > [...] > > Fix it with the new sysbus_init_child_obj() function. > > Signed-off-by: Thomas Huth Reviewed-by: Eduardo Habkost -- Eduardo