Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 149750

Summary: quake2-icculus-0.16.1 produces alsa buffer underrun or seg fault
Product: Gentoo Linux Reporter: Andrew Stimpson <mrvx7fj02>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED DUPLICATE    
Severity: normal CC: brebs, J.Nicolaisen, m.langer798
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: GDB backtrace of seg fault
Output of emerge --info

Description Andrew Stimpson 2006-10-01 10:17:26 UTC
If I run quake2 with no .quake2 directory, it will run with no working sound (or rather, the sound of a buffer underrun: a split second sample repeated over and over).  If I try to run it again without first deleting the .quake2 directory, it seg faults.

I've tried with and without the qmax and sdl USE flags, and I even compiled with the more conservative CFLAGS="-O2 -march=athlon-xp -msse2 -pipe".  With this last setting, I ran it in gdb, and produced the atttached backtrace.
Comment 1 Andrew Stimpson 2006-10-01 10:19:28 UTC
Created attachment 98532 [details]
GDB backtrace of seg fault
Comment 2 Andrew Stimpson 2006-10-01 10:20:33 UTC
Created attachment 98533 [details]
Output of emerge --info
Comment 3 Paul Bredbury 2006-10-09 03:39:01 UTC
See bug #110374. Or just use qudos or kmquake2 (bug #140121).

The alsa USE flag for quake2-icculus should probably be removed - does it ever work for anybody?
Comment 4 Matthias Langer 2007-05-08 01:44:33 UTC
> The alsa USE flag for quake2-icculus should probably be removed - does it ever
> work for anybody?

it doesn't work for me; quake2-icculus-0.16.1 is affected by buffer underruns and just makes a horrible noise, and

quake2-icculus-0.16.1-r1  USE="X alsa demo ipv6 opengl qmax rogue sdl xatrix -aalib -arts -cdinstall -dedicated -joystick -svga"

just has no sound at all, but writes things like

"
------- sound initialization -------
Cmd_AddCommand: play already defined
Cmd_AddCommand: stopsound already defined
Cmd_AddCommand: soundlist already defined
Cmd_AddCommand: soundinfo already defined
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM /dev/dsp
ALSA snd error, cannot open device /dev/dsp (No such file or directory)
"

to the console. With "-alsa" it seems to work very well, so i think that the flag should indeed be dropped.

Portage 2.1.2.2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r2, 2.6.20-gentoo-r7 i686)
=================================================================
System uname: 2.6.20-gentoo-r7 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 06 May 2007 09:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/var/portage/distfiles"
FEATURES="collision-protect distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.ynet.sk/pub"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LINGUAS="en de"
MAKEOPTS="-j2"
PKGDIR="/var/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.0.1/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi aiglx alsa audiofile avahi beagle berkdb bitmap-fonts bzip2 cairo caps cdr cli cracklib crypt css cups dbus dlloader dri dvd dvdr dvdread eds emboss encode evo exif fam fbcon ffmpeg firefox flac fortran gdbm gif ginac gmp gnome gnutls gphoto2 gpm gstreamer gtk gtk2 hal iconv icq ipod ipv6 isdnlog java javascript jpeg jpeg2k lcms ldap libg++ mad midi mikmod mime mmx mmxext mono mozsvg mp3 mpeg msn nautilus ncurses nfs nls nptl nptlonly nsplugin nvidia offensive ogg oggvorbis opengl pam pcre pdf perl plotutils png posix ppds pppd python qt3 qt4 quicktime readline real reflection ruby sdl session sockets spell spl sqlite3 sse ssl subtitles svg tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts unicode usb vcd vorbis win32codecs wma x86 xattr xine xml xorg xv xvid zlib" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Jonas Nicolaisen 2008-03-30 20:17:52 UTC
please see bug 110374 for patch.

probably duplicate.
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2009-12-07 21:20:16 UTC

*** This bug has been marked as a duplicate of bug 110374 ***