Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 299211 - app-emulation/qemu-kvm-0.12.1.2 crashes on boot when using "-vga std"
Summary: app-emulation/qemu-kvm-0.12.1.2 crashes on boot when using "-vga std"
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo QEMU Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-01 16:11 UTC by Timothy Miller
Modified: 2010-04-18 13:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Miller 2010-01-01 16:11:34 UTC
When I boot an Ubuntu image (that worked fine with earlier versions of qemu-kvm), with this command line:

qemu-system-x86_64 -vga std -drive cache=writeback,index=0,media=disk,file=ubuntu.img -k en-us -m 2048 -smp 2 -vnc :3102 -usbdevice tablet -enable-kvm &

I get this error:

 KVM internal error. Suberror: 1
rax 00007f789177e000 rbx 0000000000000000 rcx 0000000000000000 rdx 0000000000000000
rsi 0000000000000000 rdi 00007f789177e000 rsp 00007fff361775e8 rbp 00007fff36177600
r8  000000000000ff80 r9  0000000000200000 r10 0000000000000000 r11 00007f789100a3f0
r12 00000000004017c0 r13 00007fff36178cf0 r14 0000000000000000 r15 0000000000000000
rip 00007f789100aa7b rflags 00013206
cs 0033 (00000000/ffffffff p 1 dpl 3 db 0 s 1 type b l 1 g 1 avl 0)
ds 0000 (00000000/ffffffff p 0 dpl 0 db 0 s 0 type 0 l 0 g 0 avl 0)
es 0000 (00000000/ffffffff p 0 dpl 0 db 0 s 0 type 0 l 0 g 0 avl 0)
ss 002b (00000000/ffffffff p 1 dpl 3 db 1 s 1 type 3 l 0 g 1 avl 0)
fs 0000 (7f78917906f0/ffffffff p 0 dpl 0 db 0 s 0 type 0 l 0 g 0 avl 0)
gs 0000 (00000000/ffffffff p 0 dpl 0 db 0 s 0 type 0 l 0 g 0 avl 0)
tr 0040 (ffff880001a09440/00002087 p 1 dpl 0 db 0 s 0 type b l 0 g 0 avl 0)
ldt 0000 (00000000/ffffffff p 0 dpl 0 db 0 s 0 type 0 l 0 g 0 avl 0)
gdt ffff8800019fa000/7f
idt ffffffff818fd000/fff
cr0 80050033 cr2 2408000 cr3 379d4000 cr4 6f0 cr8 0 efer d01
emulation failure, check dmesg for details

I'm running kernel 2.6.32, and I have the kvm stuff compiled directly into the kernel.  There's nothing in dmesg about kvm at all.

Note that in the VM grub comes up, but the VM dies when I boot the kernel.

This command line works:

qemu-system-x86_64 -drive cache=writeback,index=0,media=disk,file=ubuntu.img -k en-us -m 2048 -smp 2 -vnc :3102 -usbdevice tablet -enable-kvm &

Which is to say that there's a regression with regard to "-vga std".

Reproducible: Always




Portage 2.1.7.16 (default/linux/amd64/10.0, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9450_@_2.66GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 01 Jan 2010 08:00:01 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4, 3.1.1-r1
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -ggdb -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -ggdb -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=5"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.netnitco.net http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://mirror.datapipe.net/gentoo ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.mirrors.easynews.com/linux/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://gentoo.imj.fr/pub/gentoo/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="--jobs=5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 apache2 aspell autotrace bash-completion berkdb bidi bonjour bzip2 cairo cdda cdio cdr cli composite cracklib crypt ctype cups curl cxx dbus dri dts dvd dvdr encode exif fbcon ffmpeg fftw filter flac fontconfig fortran freetype gcj gd gdbm gmm gnutls gpm gs hal httpd iconv imagemagick ipp ipv6 jadetex java jpeg jpeg2k kde kde4 kerberos kvm lame lapack latex lcms ldap live lm_sensors lzma mad matroska mjpeg mkl mmx mng modules mp3 mpeg mudflap multilib mysql mysqli ncurses nls nptl nptlonly ogg oggvorbis openexr opengl openmp openssl pam pcre pdf perl php plasma plotutils png ppds pppd python qemu qt3support qt4 quicktime readline reflection rss ruby samba sasl semantic-desktop session smp spl sql sse sse2 sse3 ssl stream svg sysfs tcl tcpd theora threads thumbnail tiff tk truetype unicode utempter vcd vlm vnc vorbis webkit wxwindows x264 xcomposite xml xorg xv xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Timothy Miller 2010-01-01 16:47:57 UTC
Just a minor note.  I use "-vga std" for my Windows XP VM.  That still works.  Windows had no problem handling it when I changed the emulated video card on it.  So Ubuntu itself should have no problem either.
Comment 2 Timothy Miller 2010-01-01 16:54:34 UTC
I have reported this bug directly with qemu:  https://bugs.launchpad.net/qemu/+bug/502107
Comment 3 kfm 2010-01-21 06:15:36 UTC
Timothy, would you please confirm as to whether the bug still exists in qemu-kvm-0.12.2 and re-open in the event that it does?
Comment 4 Timothy Miller 2010-01-22 04:06:04 UTC
I tried running version 0.12.2.  I got this:

BUG: kvm_dirty_pages_log_enable_slot: invalid parameters
BUG: kvm_dirty_pages_log_disable_slot: invalid parameters
KVM internal error. Suberror: 1
rax 00007feed0770000 rbx 0000000000000000 rcx 0000000000000000 rdx 0000000000000000
rsi 0000000000000000 rdi 00007feed0770000 rsp 00007fffaacd6148 rbp 00007fffaacd6160
r8  000000000000ff80 r9  0000000000200000 r10 0000000000000000 r11 00007feecfffc3f0
r12 00000000004017c0 r13 00007fffaacd7850 r14 0000000000000000 r15 0000000000000000
rip 00007feecfffca7b rflags 00013206
cs 0033 (00000000/ffffffff p 1 dpl 3 db 0 s 1 type b l 1 g 1 avl 0)
ds 0000 (00000000/ffffffff p 0 dpl 0 db 0 s 0 type 0 l 0 g 0 avl 0)
es 0000 (00000000/ffffffff p 0 dpl 0 db 0 s 0 type 0 l 0 g 0 avl 0)
ss 002b (00000000/ffffffff p 1 dpl 3 db 1 s 1 type 3 l 0 g 1 avl 0)
fs 0000 (7feed07826f0/ffffffff p 0 dpl 0 db 0 s 0 type 0 l 0 g 0 avl 0)
gs 0000 (00000000/ffffffff p 0 dpl 0 db 0 s 0 type 0 l 0 g 0 avl 0)
tr 0040 (ffff880001a27440/00002087 p 1 dpl 0 db 0 s 0 type b l 0 g 0 avl 0)
ldt 0000 (00000000/ffffffff p 0 dpl 0 db 0 s 0 type 0 l 0 g 0 avl 0)
gdt ffff880001a18000/7f
idt ffffffff818fd000/fff
cr0 80050033 cr2 15fb000 cr3 7b028000 cr4 6e0 cr8 0 efer d01
emulation failure, check dmesg for details

dmesg gave me nothing, but I found this in /var/log/messages:

Jan 21 21:58:47 compute0 qemu-system-x86_64: auxpropfunc error invalid parameter supplied
Jan 21 21:58:47 compute0 qemu-system-x86_64: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb
Jan 21 21:58:47 compute0 qemu-system-x86_64: sql_select option missing
Jan 21 21:58:47 compute0 qemu-system-x86_64: auxpropfunc error no mechanism available
Jan 21 21:58:47 compute0 qemu-system-x86_64: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sql

BTW, I get the BIOS screen, then grub comes up.  Then it crashes like this at some point after grub loads the kernel.
Comment 5 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2010-01-22 13:02:32 UTC
Did you update ldap from 2.3 to 2.4 recently and did you follow the update instructions?
Comment 6 Timothy Miller 2010-01-23 14:02:24 UTC
I don't see how ldap is relevant.  I don't have it configured.  It's installed with defaults.  It didn't update very recently, but this is the version I have installed:

[ebuild   R   ] net-nds/openldap-2.4.19-r1  USE="berkdb crypt gnutls ipv6 kerberos perl samba sasl ssl tcpd -cxx -debug -experimental -icu -iodbc -minimal -odbc -overlays (-selinux) -slp -smbkrb5passwd -syslog" 0 kB

IIRC, neither openldap nor qemu-kvm ebuilds emitted any special instructions after they were emerged.  

Also, note that this qemu crash only happens when I boot Ubuntu.  It works fine with Windows XP.
Comment 7 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2010-01-23 16:15:31 UTC
I misread your previous paste. However, from the following:

Jan 21 21:58:47 compute0 qemu-system-x86_64: auxpropfunc error invalid
parameter supplied
Jan 21 21:58:47 compute0 qemu-system-x86_64: _sasl_plugin_load failed on
sasl_auxprop_plug_init for plugin: ldapdb
Jan 21 21:58:47 compute0 qemu-system-x86_64: sql_select option missing
Jan 21 21:58:47 compute0 qemu-system-x86_64: auxpropfunc error no mechanism
available
Jan 21 21:58:47 compute0 qemu-system-x86_64: _sasl_plugin_load failed on
sasl_auxprop_plug_init for plugin: sql

it seems your sasl config needs reviewing.
Comment 8 Timothy Miller 2010-01-26 14:50:51 UTC
I'm also not sure how sasl is relevant, because it too is set up with only defaults.  Maybe the defaults are bad.  :)  Anyhow, I looked for what SASL Gentoo docs I could find (http://www.gentoo.org/doc/en/virt-mail-howto.xml), and here are the relevant parts of my config:

/etc/sasl2/smtpd.conf
---
pwcheck_method:pam
---

/etc/conf.d/saslauthd
---
SASLAUTHD_OPTS=""
SASLAUTHD_OPTS="${SASLAUTHD_OPTS} -a pam"
---

Comment 9 Arsen Shnurkov 2010-03-02 10:53:21 UTC
> Timothy, would you please confirm as to whether the bug still exists in
> qemu-kvm-0.12.2 and re-open in the event that it does?

I have the same bug with qemu-kvm-0.12.2.

I am able to boot with command
qemu-system-x86_64 -boot d -cdrom ubuntu-9.10-desktop-amd64.iso -hda disk.qcow2  --usb --usbdevice tablet -m 2048 -smp 3 -cpu qemu64 -vga std
and select language

But qemu crashes when I choose "Install Ubuntu" or "Try Ubuntu without any change to your computer".

Both options works without -vga std key.
Comment 10 Arsen Shnurkov 2010-03-02 10:54:55 UTC
The same error with -vga vmware
Comment 11 Thomas Sachau gentoo-dev 2010-04-02 17:45:22 UTC
(In reply to comment #9)
> > Timothy, would you please confirm as to whether the bug still exists in
> > qemu-kvm-0.12.2 and re-open in the event that it does?
> 
> I have the same bug with qemu-kvm-0.12.2.
> 
> I am able to boot with command
> qemu-system-x86_64 -boot d -cdrom ubuntu-9.10-desktop-amd64.iso -hda disk.qcow2
>  --usb --usbdevice tablet -m 2048 -smp 3 -cpu qemu64 -vga std
> and select language
> 
> But qemu crashes when I choose "Install Ubuntu" or "Try Ubuntu without any
> change to your computer".
> 
> Both options works without -vga std key.
> 

Does this still happen with 0.12.3? And can you also reproduce it with a minimal set of args (qemu-system-x86_64 -boot d -cdrom ubuntu-9.10-desktop-amd64.iso -hda disk.qcow2 -m 2048 -cpu qemu64 -vga std)?