Re: KVM segfaults with 3.5 while installing ubuntu 12.04

From: Stefan Priebe
Date: Tue Jul 31 2012 - 13:30:38 EST


Am 31.07.2012 16:54, schrieb Avi Kivity:
On 07/31/2012 02:59 PM, Stefan Priebe - Profihost AG wrote:
Hello list,

i hope it is correct to list the maintainers of kvm. While trying to
install ubuntu 12.04 amd64 on a kvm based vm the KVM process segfaults
while ubuntu tries to detect the HW:
kvm[2978]: segfault at 7fb90d9035e0 ip 00007fb90d9035e0
sp00007fff652e4ed8 error 15

This does not happen with a rhel6 based 2.6.32 kernel so i thought this
must be a bug in vanilla 3.5.0 kernel.

Is this known? What information do you need?

Please build qemu with debug information, generate a core, and post a
backtrace.

mhm tried that but i can't get it to work:

gdb /usr/bin/qemu-system-x86_64 /core

GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...

warning: The current binary is a PIE (Position Independent Executable), which
GDB does NOT currently support. Most debugger features will fail if used
in this session.

Reading symbols from /usr/bin/qemu-system-x86_64...done.

warning: core file may not match specified executable file.
[New Thread 2222]
[New Thread 1809]
[New Thread 1811]
[New Thread 1807]
[New Thread 1812]
[New Thread 1810]
[New Thread 1813]
[New Thread 1806]
[New Thread 1808]
Core was generated by `/usr/bin/qemu-system-x86_64 -id 103 -chardev socket,id=qmp,path=/var/run/qemu-s'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007f6ca10faed8 in ?? ()
(gdb) where
#0 0x00007f6ca10faed8 in ?? ()
#1 0x00007f6ca54e0098 in ?? ()
#2 0x00007f6ca10faf18 in ?? ()
#3 0x00007f6ca10fae98 in ?? ()
#4 0x00007fffc18a5330 in ?? ()
#5 0x40620711c948c800 in ?? ()
#6 0x00007fffc18a51f0 in ?? ()
#7 0x00007f6ca54e0e25 in ?? ()
#8 0x00007f6ca10faf18 in ?? ()
#9 0x00007f6ca10fae98 in ?? ()
#10 0x0000000000000000 in ?? ()

Greets,
Stefan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/