From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LjMEJ-0005m7-3x for qemu-devel@nongnu.org; Mon, 16 Mar 2009 19:28:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LjMEE-0005ln-N7 for qemu-devel@nongnu.org; Mon, 16 Mar 2009 19:28:22 -0400 Received: from [199.232.76.173] (port=54684 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjMEE-0005lk-FL for qemu-devel@nongnu.org; Mon, 16 Mar 2009 19:28:18 -0400 Received: from an-out-0708.google.com ([209.85.132.246]:15106) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LjMEE-0000IM-4v for qemu-devel@nongnu.org; Mon, 16 Mar 2009 19:28:18 -0400 Received: by an-out-0708.google.com with SMTP id b6so201937ana.37 for ; Mon, 16 Mar 2009 16:28:12 -0700 (PDT) MIME-Version: 1.0 Date: Tue, 17 Mar 2009 08:28:11 +0900 Message-ID: From: b a Content-Type: multipart/alternative; boundary=0016e644d6aecb5b90046544cdf7 Subject: [Qemu-devel] segmentation fault with display mode 04h, 05h, or 0dh Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --0016e644d6aecb5b90046544cdf7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, current svn version of qemu crashes with a segmentation fault when changing the display mode to 04h, 05h, or 0dh (these are 320x200 modes). This can be fixed tentatively by adding if (width == 320 && height == 400) width = 640; to line 95 of sdl.c (the top of do_sdl_resize()). I'm new to qemu, and I don't know which code sets width and height to 320 and 400. Any idea? Thanks, Masashi Kiyomi --0016e644d6aecb5b90046544cdf7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,
current svn version of qemu crashes with a segmentation fault
whe= n changing the display mode to 04h, 05h, or 0dh (these
are 320x200 modes= ). This can be fixed tentatively by adding

=A0 if (width =3D=3D 320 = && height =3D=3D 400) width =3D 640;

to line 95 of sdl.c (the top of do_sdl_resize()).
I'm new to qem= u, and I don't know which code sets width
=A0and height to 320 and 4= 00. Any idea?

Thanks,
Masashi Kiyomi
--0016e644d6aecb5b90046544cdf7--