Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GdwlB-0004CM-98 for qemu-devel@nongnu.org; Sat, 28 Oct 2006 18:34:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gdwl8-0004B3-79 for qemu-devel@nongnu.org; Sat, 28 Oct 2006 18:34:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gdwl7-0004Aw-So for qemu-devel@nongnu.org; Sat, 28 Oct 2006 18:34:33 -0400 Received: from [212.63.36.242] (helo=gwyn.kn-bremen.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Gdwl7-0000Ds-Lz for qemu-devel@nongnu.org; Sat, 28 Oct 2006 18:34:34 -0400 Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1]) by gwyn.kn-bremen.de (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id k9SMYUfO029369 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 29 Oct 2006 00:34:30 +0200 Received: from saturn.kn-bremen.de (uucp@localhost) by gwyn.kn-bremen.de (8.13.4/8.13.4/Submit) with UUCP id k9SMYU8G029367 for qemu-devel@nongnu.org; Sun, 29 Oct 2006 00:34:30 +0200 Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.6/8.13.6) with ESMTP id k9SMVI06056386 for ; Sun, 29 Oct 2006 00:31:18 +0200 (CEST) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.6/8.13.6/Submit) id k9SMVI2A056385 for qemu-devel@nongnu.org; Sun, 29 Oct 2006 00:31:18 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Sun, 29 Oct 2006 00:31:17 +0200 Message-ID: <20061028223117.GA56186@saturn.kn-bremen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] sdl-less qemu - shouldnt -nographic be default? 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 After adding a WITHOUT_SDL option to the FreeBSD qemu port (see http://docs.freebsd.org/cgi/mid.cgi?20061028183618.GA46200 , and hi joshe! :) I got a crash that looks like monitor output going to an uninitialized vty: $ gdb work/qemu-snapshot-2006-10-26_05/i386-softmmu/qemu qemu.core GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you = are welcome to change it and/or distribute copies of it under certain conditi= ons. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for detail= s. This GDB was configured as "i386-marcel-freebsd"... Core was generated by `qemu'. Program terminated with signal 11, Segmentation fault. Reading symbols from /lib/libm.so.4...done. Loaded symbols for /lib/libm.so.4 Reading symbols from /lib/libz.so.3...done. Loaded symbols for /lib/libz.so.3 Reading symbols from /lib/libutil.so.5...done. Loaded symbols for /lib/libutil.so.5 Reading symbols from /lib/libc.so.6...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0 console_puts (chr=3D0x0,=20 buf=3D0x8125f20 "QEMU 0.8.2 monitor - type 'help' for more informatio= n\r\n",=20 len=3D55) at /ad4/usr/ports/emulators/qemu/work/qemu-snapshot-2006-10-26_05/con= sole.c:790 790 c->ch =3D ch; (gdb) l 785 s->state =3D TTY_STATE_ESC; 786 break; 787 default: 788 y1 =3D (s->y_base + s->y) % s->total_height; 789 c =3D &s->cells[y1 * s->width + s->x]; 790 c->ch =3D ch; 791 c->t_attrib =3D s->t_attrib; 792 update_xy(s, s->x, s->y); 793 s->x++; 794 if (s->x >=3D s->width) { (gdb) p s $1 =3D (TextConsole *) 0x9b18100 (gdb) p *s $2 =3D {text_console =3D 1, ds =3D 0x8123740, hw_update =3D 0, hw_invalid= ate =3D 0,=20 hw_screen_dump =3D 0, hw =3D 0x0, g_width =3D 0, g_height =3D 0, width = =3D 0,=20 height =3D 0, total_height =3D 512, backscroll_height =3D 0, x =3D 0, y= =3D 0,=20 y_displayed =3D 0, y_base =3D 0, t_attrib_default =3D {fgcol =3D 7 '\a'= ,=20 bgcol =3D 0 '\0', bold =3D 0 '\0', uline =3D 0 '\0', blink =3D 0 '\0'= ,=20 invers =3D 0 '\0', unvisible =3D 0 '\0'}, t_attrib =3D {fgcol =3D 7 '= \a',=20 bgcol =3D 0 '\0', bold =3D 0 '\0', uline =3D 0 '\0', blink =3D 0 '\0'= ,=20 invers =3D 0 '\0', unvisible =3D 0 '\0'}, cells =3D 0x800,=20 state =3D TTY_STATE_NORM, esc_params =3D {0, 0, 0}, nb_esc_params =3D 0= ,=20 fd_can_read =3D 0, fd_read =3D 0, fd_opaque =3D 0x0, out_fifo =3D { buf =3D 0x9b1817c "", buf_size =3D 16, count =3D 0, wptr =3D 0, rptr = =3D 0},=20 out_fifo_buf =3D '\0' , kbd_timer =3D 0x9b10120} (gdb) bt #0 console_puts (chr=3D0x0,=20 buf=3D0x8125f20 "QEMU 0.8.2 monitor - type 'help' for more informatio= n\r\n",=20 len=3D55) at /ad4/usr/ports/emulators/qemu/work/qemu-snapshot-2006-10-26_05/con= sole.c:790 #1 0x08052d75 in term_flush () at /ad4/usr/ports/emulators/qemu/work/qemu-snapshot-2006-10-26_05/mon= itor.c:72 #2 0x08052dbb in term_puts (str=3D0xbfbfade6 "") at /ad4/usr/ports/emulators/qemu/work/qemu-snapshot-2006-10-26_05/mon= itor.c:90 #3 0x08052e01 in term_vprintf ( fmt=3D0x80ffa50 "QEMU %s monitor - type 'help' for more information\n= ",=20 ap=3D0xbfbfbde4 "UK\020\bX=E8=BF=BF\002") at /ad4/usr/ports/emulators/qemu/work/qemu-snapshot-2006-10-26_05/mon= itor.c:98 #4 0x08052e1a in term_printf ( fmt=3D0x80ffa50 "QEMU %s monitor - type 'help' for more information\n= ") at /ad4/usr/ports/emulators/qemu/work/qemu-snapshot-2006-10-26_05/mon= itor.c:105 #5 0x08055602 in monitor_init (hd=3D0x9b10100, show_banner=3D1) at /ad4/usr/ports/emulators/qemu/work/qemu-snapshot-2006-10-26_05/mon= itor.c:2382 ---Type to continue, or q to quit--- #6 0x08051244 in main (argc=3D8, argv=3D0xbfbfe8a4) at /ad4/usr/ports/emulators/qemu/work/qemu-snapshot-2006-10-26_05/vl.= c:7025 (gdb) q Is this supposed to work? Is it a bug? Should -nographic be default in this case? Curious... Juergen