From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45588) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbT4e-0001DZ-4M for qemu-devel@nongnu.org; Thu, 22 Nov 2012 04:27:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TbT4S-0001Mj-LI for qemu-devel@nongnu.org; Thu, 22 Nov 2012 04:27:56 -0500 Received: from mail-ee0-f45.google.com ([74.125.83.45]:51013) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbT4S-0001MZ-Ex for qemu-devel@nongnu.org; Thu, 22 Nov 2012 04:27:44 -0500 Received: by mail-ee0-f45.google.com with SMTP id d49so4735861eek.4 for ; Thu, 22 Nov 2012 01:27:42 -0800 (PST) Date: Thu, 22 Nov 2012 10:27:40 +0100 From: Stefan Hajnoczi Message-ID: <20121122092740.GE7598@stefanha-thinkpad.redhat.com> References: <20121121031428.20160.15867.malonedeb@wampee.canonical.com> <20121121031428.20160.15867.malonedeb@wampee.canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20121121031428.20160.15867.malonedeb@wampee.canonical.com> Subject: Re: [Qemu-devel] [Bug 1081416] [NEW] Qemu 1.2.0 crashes when using tcp serial console and GRUB boots List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bug 1081416 <1081416@bugs.launchpad.net> Cc: qemu-devel@nongnu.org On Wed, Nov 21, 2012 at 03:14:28AM -0000, Jérôme Poulin wrote: > When booting OpenWRT Attitude Adjustement ( http://downloads.openwrt.org/attitude_adjustment/12.09-beta2/x86/generic/openwrt-x86-generic-combined-ext4.img.gz ) with this command line: > qemu-system-x86_64 -serial tcp:127.0.0.1:4444 -hda openwrt-x86-generic-combined-ext4.img > > Qemu crashes as soon as GRUB starts, after network cards start. [...] > Program received signal SIGABRT, Aborted. > 0x00007ffff452bfa5 in raise () from /usr/lib/libc.so.6 > (gdb) bt > #0 0x00007ffff452bfa5 in raise () from /usr/lib/libc.so.6 > #1 0x00007ffff452d428 in abort () from /usr/lib/libc.so.6 > #2 0x00007ffff456acfb in __libc_message () from /usr/lib/libc.so.6 > #3 0x00007ffff45f2ad7 in __fortify_fail () from /usr/lib/libc.so.6 > #4 0x00007ffff45f0bb0 in __chk_fail () from /usr/lib/libc.so.6 > #5 0x00007ffff45f2a47 in __fdelt_warn () from /usr/lib/libc.so.6 > #6 0x000000000046a628 in qemu_iohandler_poll (readfds=0xdb7da0 , > writefds=0xdb7e20 , xfds=0x6, xfds@entry=0xdb7ea0 , ret=-1, > ret@entry=1) at iohandler.c:121 > #7 0x00000000004e8a14 in main_loop_wait (nonblocking=) > at main-loop.c:497 > #8 0x00000000004e802b in main_loop () > at /usr/src/aur/qemu/src/qemu-1.2.0/vl.c:1643 > #9 main (argc=, argv=, envp=) > at /usr/src/aur/qemu/src/qemu-1.2.0/vl.c:3755 Can't reproduce on qemu.git/master (1ccbc2851282564308f790753d7158487b6af8e2) or qemu-system-x86-1.2.0-23.fc18.x86_64. I get to the OpenWRT root prompt. Please build qemu.git/master from source to verify whether this issue still exists: $ git clone git://git.qemu-project.org/qemu.git $ cd qemu $ ./configure --target-list=x86_64-softmmu && make $ x86_64-softmmu/qemu-system-x86_64 -serial tcp:127.0.0.1:4444 -hda openwrt-x86-generic-combined-ext4.img Note that if you want to connect to the serial port you should use -serial tcp:127.0.0.1:4444,server. The command-line you specified tries to connect to 127.0.0.1:4444 as a client instead of listening as a server. Thanks, Stefan