Qemu 1.2.0 crashes when using tcp serial console and GRUB boots
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Expired
|
Undecided
|
Unassigned |
Bug Description
When booting OpenWRT Attitude Adjustement ( http://
qemu-system-x86_64 -serial tcp:127.0.0.1:4444 -hda openwrt-
Qemu crashes as soon as GRUB starts, after network cards start.
*** buffer overflow detected ***: /usr/bin/
======= Backtrace: =========
/usr/lib/
/usr/lib/
/usr/lib/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/lib/
/usr/bin/
Here is a GDB backtrace:
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 <rfds>,
writefds=
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/
#9 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>)
at /usr/src/
(gdb)
Here is a more useless dump...
Changed in qemu: | |
status: | New → Incomplete |
On Wed, Nov 21, 2012 at 03:14:28AM -0000, Jérôme Poulin wrote: downloads. openwrt. org/attitude_ adjustment/ 12.09-beta2/ x86/generic/ openwrt- x86-generic- combined- ext4.img. gz ) with this command line: x86-generic- combined- ext4.img <optimized out>) aur/qemu/ src/qemu- 1.2.0/vl. c:1643 aur/qemu/ src/qemu- 1.2.0/vl. c:3755
> When booting OpenWRT Attitude Adjustement ( http://
> qemu-system-x86_64 -serial tcp:127.0.0.1:4444 -hda openwrt-
>
> 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 <rfds>,
> writefds=0xdb7e20 <wfds>, xfds=0x6, xfds@entry=0xdb7ea0 <xfds>, 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/
> #9 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>)
> at /usr/src/
Can't reproduce on qemu.git/master (1ccbc285128256 4308f790753d715 8487b6af8e2) or x86-1.2. 0-23.fc18. x86_64.
qemu-system-
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 list=x86_ 64-softmmu && make softmmu/ qemu-system- x86_64 -serial tcp:127.0.0.1:4444 -hda openwrt- x86-generic- combined- ext4.img
$ cd qemu
$ ./configure --target-
$ x86_64-
Note that if you want to connect to the serial port you should use 0.0.1:4444, server. The command-line you specified tries
-serial tcp:127.
to connect to 127.0.0.1:4444 as a client instead of listening as a
server.
Thanks,
Stefan