From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7zo9-00049C-J7 for qemu-devel@nongnu.org; Wed, 01 Jun 2016 02:39:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7zo5-0007co-FC for qemu-devel@nongnu.org; Wed, 01 Jun 2016 02:39:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51489) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7zo5-0007ck-9Q for qemu-devel@nongnu.org; Wed, 01 Jun 2016 02:39:09 -0400 Message-ID: <1464763147.8823.14.camel@redhat.com> From: Gerd Hoffmann Date: Wed, 01 Jun 2016 08:39:07 +0200 In-Reply-To: References: <2e555d67b7e53a86bef98f774a2706f2b0ec4ea0.1464728215.git.crobinso@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] ui: sdl2: Fix crash with -nodefaults -sdl List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Cole Robinson , QEMU Developers On Di, 2016-05-31 at 22:49 +0100, Peter Maydell wrote: > On 31 May 2016 at 21:56, Cole Robinson wrote: > > $ ./x86_64-softmmu/qemu-system-x86_64 -nodefaults -sdl > > Segmentation fault (core dumped) > > > > 0 0x00005555559631af in sdl_display_init (ds=3D, full_s= creen=3D0, no_frame=3D) at ui/sdl2.c:822 > > 1 0x00005555556c8a9a in main (argc=3D, argv=3D, envp=3D) at vl.c:4527 > > > > Setting the window icon assumes there's always an SDL output window > > available, which isn't the case with when there's no video device, > > like via -nodefaults. So don't try to set a window icon when we don't > > have any outputs. >=20 > Presumably we also crash for boards like the arm 'virt' > which just don't have a display device at all... There are still the vc's for monitor and serial. cheers, Gerd