From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HT3aB-0005H2-J9 for qemu-devel@nongnu.org; Sun, 18 Mar 2007 18:10:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HT3a9-0005Gq-7e for qemu-devel@nongnu.org; Sun, 18 Mar 2007 18:10:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HT3a9-0005Gn-0v for qemu-devel@nongnu.org; Sun, 18 Mar 2007 17:10:29 -0500 Received: from nf-out-0910.google.com ([64.233.182.187]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from <3n4ch3@gmail.com>) id 1HT3Yk-0006Mh-OT for qemu-devel@nongnu.org; Sun, 18 Mar 2007 18:09:02 -0400 Received: by nf-out-0910.google.com with SMTP id c31so1513060nfb for ; Sun, 18 Mar 2007 15:09:01 -0700 (PDT) Date: Mon, 19 Mar 2007 00:08:58 +0200 From: Enache Adrian <3n4ch3@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Message-ID: <45fdb87c.2e06aeb5.45cb.ffffc202@mx.google.com> Subject: [Qemu-devel] crash when run with the -nographic switch 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 ahq$ ./qemu -nographic -snapshot -fda serflp.fs Segmentation fault (core dumped) [...] (gdb) bt #0 console_putchar (s=0x8ae43000, ch=112) at /scrap/ahq/build/qemu/console.c:809 #1 0x1c01258a in console_puts (chr=0x0, buf=0xcfbd1e20 "parallel0 console\r\n", len=19) at /scrap/ahq/build/qemu/console.c:1014 [...] Obviously, since it's running -nographic, the graphic console (vc) where it's trying to write that stuff is not initialized. Adi --- /home/src/qemu/vl.c Sun Mar 18 02:51:54 2007 +++ ./vl.c Sun Mar 18 23:27:34 2007 @@ -7073,6 +7075,7 @@ int main(int argc, char **argv) break; case QEMU_OPTION_nographic: pstrcpy(serial_devices[0], sizeof(serial_devices[0]), "stdio"); + pstrcpy(parallel_devices[0], sizeof(parallel_devices[0]), "null"); pstrcpy(monitor_device, sizeof(monitor_device), "stdio"); nographic = 1; break;