Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232038 - app-emulation/kvm-71-r2: crash with sound support
Summary: app-emulation/kvm-71-r2: crash with sound support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-17 02:42 UTC by scwang
Modified: 2008-07-19 13:48 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 scwang 2008-07-17 02:42:55 UTC
After updating to kvm-71-r2 today, I found my windowxp guset kvm crashed with the following message:
      kvm: pcm_params.c:2351: sndrv_pcm_hw_params: Assertion `err >= 0' failed.

My windowxp launching script is listed in the following:
      export QEMU_AUDIO_DRV=alsa
      export QEMU_ALSA_DAC_DEV=dmix
      export QEMU_ALSA_ADC_DEV=null

      kvm -hda winxp-sys.img.ov2 \
          -hdb data.img \
          -m 512 \
          -name winXP \
          -usb -usbdevice tablet \
          -localtime \
          -soundhw es1370

As you see, I use ALSA sound system with mixer.

The kvm was compiled with the flags: alsa esd gnutls kernel_linux ncurses sdl

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-17 19:52:45 UTC
Please post your `emerge --info' too. It would also be interesting to know what caused this `err' variable to be set greater than zero - if there was any more output before that fatal notice, please post that as well.
Comment 2 scwang 2008-07-18 07:10:02 UTC
(In reply to comment #1)
> Please post your `emerge --info' too. It would also be interesting to know what
> caused this `err' variable to be set greater than zero - if there was any more
> output before that fatal notice, please post that as well.
> 

No output before that fatal notice! And the emerge --info is as following:

Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r3 x86_64 Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz
Timestamp of tree: Fri, 18 Jul 2008 01:36:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=nocona -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="C"
LINGUAS="en en_US zh_CN"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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/portage/local/layman/sunrise /usr/portage/local/layman/berkano /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi adns alsa amd64 apache2 avahi avi bash-completion berkdb cairo cdr cjk cli cracklib crypt cscope cups dbus divx4linux doc dri dv dvd dvdr dvdread eds emacs emboss encode esd evo expat fam fame ffmpeg firefox flac gdbm geoip gif gnome gnutls gpm gstreamer gtk gtk2 hal iconv ipod ipv6 isdnlog java jpeg kerberos ldap leim libnotify lm_sensors logrotate mad mailwrapper mbox midi mikmod mmx mmxext mono mp3 mpeg mplayer mudflap mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl php png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sasl sdl session slp snmp socks5 spell spl sse sse2 ssl subtitles svg tcl tcpd tetex threads tiff tk truetype unicode vcd vhosts vim-syntax vorbis wxwindows x264 xattr xinetd xml xorg xosd xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US zh_CN" USERLAND="GNU" VIDEO_CARDS="i128 i810 vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Daniel Gryniewicz (RETIRED) gentoo-dev 2008-07-18 16:53:22 UTC
It's the QEMU_ALSA_ADC_DEV=null part.  Try it without that.  (You don't need dmix; alsa has used dmix by default for a long time now)
Comment 4 scwang 2008-07-19 11:28:29 UTC
(In reply to comment #3)
> It's the QEMU_ALSA_ADC_DEV=null part.  Try it without that.  (You don't need
> dmix; alsa has used dmix by default for a long time now)
> 

Yes, you are right! After comment QEMU_ALSA_DEV=null, everything works well. 

By the way, in app-emulation/kvm-70* you must use QEMU_ALSA_ADC_DEV=null, otherwise you will get the following message:
alsa: Could not initialize DAC
alsa: Failed to set period size 256
alsa: Reason: Invalid argument
alsa: Could not initialize DAC
alsa: Failed to set period size 256
alsa: Reason: Invalid argument
audio: Failed to create voice `es1370.dac2'
alsa: Could not initialize ADC
alsa: Failed to set period size 1024
alsa: Reason: Invalid argument
alsa: Could not initialize ADC
alsa: Failed to set period size 1024
alsa: Reason: Invalid argument
audio: Failed to create voice `es1370.adc'
alsa: Could not initialize DAC
alsa: Failed to set period size 256
alsa: Reason: Invalid argument
alsa: Could not initialize DAC
alsa: Failed to set period size 256
alsa: Reason: Invalid argument
audio: Failed to create voice `es1370.dac1'
alsa: Could not initialize DAC
alsa: Failed to set period size 256
alsa: Reason: Invalid argument
alsa: Could not initialize DAC
alsa: Failed to set period size 256
alsa: Reason: Invalid argument
audio: Failed to create voice `es1370.dac1'
alsa: Could not initialize DAC
alsa: Failed to set period size 256
alsa: Reason: Invalid argument
alsa: Could not initialize DAC
alsa: Failed to set period size 256
alsa: Reason: Invalid argument
audio: Failed to create voice `es1370.dac2'
alsa: Could not initialize ADC
alsa: Failed to set period size 1024
alsa: Reason: Invalid argument
alsa: Could not initialize ADC
alsa: Failed to set period size 1024
alsa: Reason: Invalid argument
audio: Failed to create voice `es1370.adc'
alsa: Could not initialize DAC
alsa: Failed to set period size 256
alsa: Reason: Invalid argument
alsa: Could not initialize DAC
alsa: Failed to set period size 256
alsa: Reason: Invalid argument
audio: Failed to create voice `es1370.dac1'
alsa: Could not initialize DAC
alsa: Failed to set period size 256
alsa: Reason: Invalid argument
alsa: Could not initialize DAC
alsa: Failed to set period size 256
alsa: Reason: Invalid argument
audio: Failed to create voice `es1370.dac1'
alsa: Could not initialize DAC
alsa: Failed to set period size 256
alsa: Reason: Invalid argument
alsa: Could not initialize DAC
alsa: Failed to set period size 256
alsa: Reason: Invalid argument
audio: Failed to create voice `es1370.dac1'
alsa: Could not initialize DAC
alsa: Failed to set period size 256
alsa: Reason: Invalid argument
alsa: Could not initialize DAC
alsa: Failed to set period size 256
alsa: Reason: Invalid argument
audio: Failed to create voice `es1370.dac1'
alsa: Could not initialize DAC
alsa: Failed to set period size 256
alsa: Reason: Invalid argument
alsa: Could not initialize DAC
alsa: Failed to set period size 256
alsa: Reason: Invalid argument
audio: Failed to create voice `es1370.dac1'

And the windows virtual has no sound working.

Anyway, for kvm-71*, you are totally right! Thank you!
Comment 5 Daniel Gryniewicz (RETIRED) gentoo-dev 2008-07-19 13:48:11 UTC
Thanks for verifying.  I'd never actually gotten around to testing sound in 70, but now I'll test in every release.