Qemu 1.2.0 crashes when using tcp serial console and GRUB boots
Public bug reported:
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.
*** buffer overflow detected ***: /usr/bin/qemu-system-x86_64 terminated ======= Backtrace: ========= /usr/lib/libc.so.6(__fortify_fail+0x37)[0x7ffff45f2ad7] /usr/lib/libc.so.6(+0xf9bb0)[0x7ffff45f0bb0] /usr/lib/libc.so.6(+0xfba47)[0x7ffff45f2a47] /usr/bin/qemu-system-x86_64[0x46a628] /usr/bin/qemu-system-x86_64[0x4e8a14] /usr/bin/qemu-system-x86_64[0x4e802b] /usr/lib/libc.so.6(__libc_start_main+0xf5)[0x7ffff4518725] /usr/bin/qemu-system-x86_64[0x40d949]
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=0xdb7e20 <wfds>, xfds=0x6, xfds@entry=0xdb7ea0 <xfds>, ret=-1,
ret@entry=1) at iohandler.c:121
#7 0x00000000004e8a14 in main_loop_wait (nonblocking=<optimized out>)
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=<optimized out>, argv=<optimized out>, envp=<optimized out>)
at /usr/src/aur/qemu/src/qemu-1.2.0/vl.c:3755(gdb)
Here is a more useless dump...
** Affects: qemu
Importance: Undecided
Status: New
Signature · 54 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1081416
Title:
Qemu 1.2.0 crashes when using tcp serial console and GRUB boots
Status in QEMU:
New
Bug description:
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.
*** buffer overflow detected ***: /usr/bin/qemu-system-x86_64 terminated
======= Backtrace: =========
/usr/lib/libc.so.6(__fortify_fail+0x37)[0x7ffff45f2ad7]
/usr/lib/libc.so.6(+0xf9bb0)[0x7ffff45f0bb0]
/usr/lib/libc.so.6(+0xfba47)[0x7ffff45f2a47]
/usr/bin/qemu-system-x86_64[0x46a628]
/usr/bin/qemu-system-x86_64[0x4e8a14]
/usr/bin/qemu-system-x86_64[0x4e802b]
/usr/lib/libc.so.6(__libc_start_main+0xf5)[0x7ffff4518725]
/usr/bin/qemu-system-x86_64[0x40d949]
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=0xdb7e20 <wfds>, xfds=0x6, xfds@entry=0xdb7ea0 <xfds>, ret=-1,
ret@entry=1) at iohandler.c:121
#7 0x00000000004e8a14 in main_loop_wait (nonblocking=<optimized out>)
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=<optimized out>, argv=<optimized out>, envp=<optimized out>)
at /usr/src/aur/qemu/src/qemu-1.2.0/vl.c:3755
(gdb)
Here is a more useless dump...
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1081416/+subscriptionsQuoted 4 lines · Jérôme Poulin
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.imgQemu crashes as soon as GRUB starts, after network cards start.
[...]
Quoted 18 lines
Program received signal SIGABRT, Aborted.
0x00007ffff452bfa5in 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=<optimized out>) 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=<optimized out>, argv=<optimized out>, envp=<optimized out>) 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
I'm seeing this too. If someone cares to tell me how I get a core file from qemu-under-libvirt I will do that and report back on debugging.
Signature · 54 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1081416
Title:
Qemu 1.2.0 crashes when using tcp serial console and GRUB boots
Status in QEMU:
New
Bug description:
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.
*** buffer overflow detected ***: /usr/bin/qemu-system-x86_64 terminated
======= Backtrace: =========
/usr/lib/libc.so.6(__fortify_fail+0x37)[0x7ffff45f2ad7]
/usr/lib/libc.so.6(+0xf9bb0)[0x7ffff45f0bb0]
/usr/lib/libc.so.6(+0xfba47)[0x7ffff45f2a47]
/usr/bin/qemu-system-x86_64[0x46a628]
/usr/bin/qemu-system-x86_64[0x4e8a14]
/usr/bin/qemu-system-x86_64[0x4e802b]
/usr/lib/libc.so.6(__libc_start_main+0xf5)[0x7ffff4518725]
/usr/bin/qemu-system-x86_64[0x40d949]
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=0xdb7e20 <wfds>, xfds=0x6, xfds@entry=0xdb7ea0 <xfds>, ret=-1,
ret@entry=1) at iohandler.c:121
#7 0x00000000004e8a14 in main_loop_wait (nonblocking=<optimized out>)
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=<optimized out>, argv=<optimized out>, envp=<optimized out>)
at /usr/src/aur/qemu/src/qemu-1.2.0/vl.c:3755
(gdb)
Here is a more useless dump...
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1081416/+subscriptions(fairly sure it's in the iohandler based on a manual check of the symbols, though)
Signature · 54 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1081416
Title:
Qemu 1.2.0 crashes when using tcp serial console and GRUB boots
Status in QEMU:
New
Bug description:
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.
*** buffer overflow detected ***: /usr/bin/qemu-system-x86_64 terminated
======= Backtrace: =========
/usr/lib/libc.so.6(__fortify_fail+0x37)[0x7ffff45f2ad7]
/usr/lib/libc.so.6(+0xf9bb0)[0x7ffff45f0bb0]
/usr/lib/libc.so.6(+0xfba47)[0x7ffff45f2a47]
/usr/bin/qemu-system-x86_64[0x46a628]
/usr/bin/qemu-system-x86_64[0x4e8a14]
/usr/bin/qemu-system-x86_64[0x4e802b]
/usr/lib/libc.so.6(__libc_start_main+0xf5)[0x7ffff4518725]
/usr/bin/qemu-system-x86_64[0x40d949]
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=0xdb7e20 <wfds>, xfds=0x6, xfds@entry=0xdb7ea0 <xfds>, ret=-1,
ret@entry=1) at iohandler.c:121
#7 0x00000000004e8a14 in main_loop_wait (nonblocking=<optimized out>)
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=<optimized out>, argv=<optimized out>, envp=<optimized out>)
at /usr/src/aur/qemu/src/qemu-1.2.0/vl.c:3755
(gdb)
Here is a more useless dump...
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1081416/+subscriptionsCan you still reproduce this issue somehow with the latest version of QEMU (currently v2.9.0)? Otherwise, I think we can close this ticket nowadays...
Signature · 54 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1081416
Title:
Qemu 1.2.0 crashes when using tcp serial console and GRUB boots
Status in QEMU:
New
Bug description:
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.
*** buffer overflow detected ***: /usr/bin/qemu-system-x86_64 terminated
======= Backtrace: =========
/usr/lib/libc.so.6(__fortify_fail+0x37)[0x7ffff45f2ad7]
/usr/lib/libc.so.6(+0xf9bb0)[0x7ffff45f0bb0]
/usr/lib/libc.so.6(+0xfba47)[0x7ffff45f2a47]
/usr/bin/qemu-system-x86_64[0x46a628]
/usr/bin/qemu-system-x86_64[0x4e8a14]
/usr/bin/qemu-system-x86_64[0x4e802b]
/usr/lib/libc.so.6(__libc_start_main+0xf5)[0x7ffff4518725]
/usr/bin/qemu-system-x86_64[0x40d949]
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=0xdb7e20 <wfds>, xfds=0x6, xfds@entry=0xdb7ea0 <xfds>, ret=-1,
ret@entry=1) at iohandler.c:121
#7 0x00000000004e8a14 in main_loop_wait (nonblocking=<optimized out>)
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=<optimized out>, argv=<optimized out>, envp=<optimized out>)
at /usr/src/aur/qemu/src/qemu-1.2.0/vl.c:3755
(gdb)
Here is a more useless dump...
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1081416/+subscriptions** Changed in: qemu
Status: New => Incomplete
Signature · 54 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1081416
Title:
Qemu 1.2.0 crashes when using tcp serial console and GRUB boots
Status in QEMU:
Incomplete
Bug description:
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.
*** buffer overflow detected ***: /usr/bin/qemu-system-x86_64 terminated
======= Backtrace: =========
/usr/lib/libc.so.6(__fortify_fail+0x37)[0x7ffff45f2ad7]
/usr/lib/libc.so.6(+0xf9bb0)[0x7ffff45f0bb0]
/usr/lib/libc.so.6(+0xfba47)[0x7ffff45f2a47]
/usr/bin/qemu-system-x86_64[0x46a628]
/usr/bin/qemu-system-x86_64[0x4e8a14]
/usr/bin/qemu-system-x86_64[0x4e802b]
/usr/lib/libc.so.6(__libc_start_main+0xf5)[0x7ffff4518725]
/usr/bin/qemu-system-x86_64[0x40d949]
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=0xdb7e20 <wfds>, xfds=0x6, xfds@entry=0xdb7ea0 <xfds>, ret=-1,
ret@entry=1) at iohandler.c:121
#7 0x00000000004e8a14 in main_loop_wait (nonblocking=<optimized out>)
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=<optimized out>, argv=<optimized out>, envp=<optimized out>)
at /usr/src/aur/qemu/src/qemu-1.2.0/vl.c:3755
(gdb)
Here is a more useless dump...
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1081416/+subscriptions[Expired for QEMU because there has been no activity for 60 days.]
** Changed in: qemu
Status: Incomplete => Expired
Signature · 54 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1081416
Title:
Qemu 1.2.0 crashes when using tcp serial console and GRUB boots
Status in QEMU:
Expired
Bug description:
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.
*** buffer overflow detected ***: /usr/bin/qemu-system-x86_64 terminated
======= Backtrace: =========
/usr/lib/libc.so.6(__fortify_fail+0x37)[0x7ffff45f2ad7]
/usr/lib/libc.so.6(+0xf9bb0)[0x7ffff45f0bb0]
/usr/lib/libc.so.6(+0xfba47)[0x7ffff45f2a47]
/usr/bin/qemu-system-x86_64[0x46a628]
/usr/bin/qemu-system-x86_64[0x4e8a14]
/usr/bin/qemu-system-x86_64[0x4e802b]
/usr/lib/libc.so.6(__libc_start_main+0xf5)[0x7ffff4518725]
/usr/bin/qemu-system-x86_64[0x40d949]
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=0xdb7e20 <wfds>, xfds=0x6, xfds@entry=0xdb7ea0 <xfds>, ret=-1,
ret@entry=1) at iohandler.c:121
#7 0x00000000004e8a14 in main_loop_wait (nonblocking=<optimized out>)
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=<optimized out>, argv=<optimized out>, envp=<optimized out>)
at /usr/src/aur/qemu/src/qemu-1.2.0/vl.c:3755
(gdb)
Here is a more useless dump...
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1081416/+subscriptions