Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90356 - Mplayer always returns a segmentation fault due alsa issues
Summary: Mplayer always returns a segmentation fault due alsa issues
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-25 05:03 UTC by Adam Davis
Modified: 2005-08-04 10:55 UTC (History)
3 users (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 Adam Davis 2005-04-25 05:03:44 UTC
Whenever I try to run Mplayer, it always returns 'Segmentation Fault' and no other error.  This occurs immediately, and with no other error given.  It evens occurs when I try just 'Mplayer --help'.
There is a similar bug related to this regarding the Nvidida opengl driver, but this is not the same problem.  I have tried the stable, ~x86, and hard-masked versions of Mplayer, as well as the -nptl, -opengl, and -nvidia flags with no success.  I have also tried after switching the opengl interface from nvidia to xorg.  No success.

Reproducible: Always
Steps to Reproduce:
1. Run Mplayer.
2.
3.

Actual Results:  
It returns 'Segmentation Fault'.

Expected Results:  
Started Mplayer normally.

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.200
50125-r1, 2.6.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr 23 2005, 14:07:58) ]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X1
1/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/
distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 acpi alsa avi berkdb bidi bitmap-fonts crypt cups directfb dts dv
d dvdread emboss encode esd faad fam ffmpeg flac foomaticdb fortran gdbm gif gno
me gpm gstreamer gtk gtk2 i8x0 imlib ipv6 java jpeg libg++ libwww mad matroska m
ikmod mmx motif mp3 mpeg ncurses nls nptl nvidia ogg oggvorbis opengl oss pam pd
flib perl png python quicktime readline sdl spell sse sse2 ssl svga tcpd tiff tr
uetype truetype-fonts type1-fonts vorbis win32codecs wxwindows x xine xml2 xmms
xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LINGUAS, PORTDIR_OVERLAY
Comment 1 Jonathan Smith (RETIRED) gentoo-dev 2005-04-25 06:07:28 UTC
could this be related to bug 87544? does this happen when using other players like xine? (if so, it is most likely related to the above bug)
Comment 2 Jan Brinkmann (RETIRED) gentoo-dev 2005-04-25 08:07:42 UTC
i.e., which version of alsa do you use? additionally, do you use the kernel own drivers or the alsa-driver package from the portage tree?
Comment 3 Adam Davis 2005-04-25 08:21:54 UTC
Jonathan Smith--
Xine, VLC, and XMMS work normally, so I don't think it is a ALSA issue.

Jan Brinkmann--
I am using the ALSA drivers included in the Gentoo-sources-2.6.11-r6 kernel, and I am compiling them as modules.  My ALSA works fine in other applications.
Comment 4 Dead Schorsch 2005-04-29 08:11:04 UTC
My mplayer crashes too since short. I don't think, that it is related to alsa, I am aware of the broken kernel alsa drivers and use the ones of the alsa-driver package. Since mplayer was not updated recently, I think this bug is related to glibc, which makes nvidia-glx and Xorg itself crash, as soon as GLX module is loaded.
Comment 5 Luca Barbato gentoo-dev 2005-05-09 08:47:37 UTC
is the issue still a problem?
Comment 6 jonathan 2005-05-29 08:05:32 UTC
Version I am using: media-video/mplayer-1.0_pre7

$ mplayer -h
Segmentation fault
$ mplayer
Segmentation fault
$ gmplayer
Segmentation fault

# emerge info
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.5-r0,
2.6.12-rc3 i686)
=================================================================
System uname: 2.6.12-rc3 i686 Intel(R) Celeron(R) CPU 2.40GHz
Gentoo Base System version 1.6.12
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16-r1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -funroll-loops -ftracer
-ffast-math -fprefetch-loop-arrays"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -funroll-loops -ftracer
-ffast-math -fprefetch-loop-arrays"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm avi berkdb bitmap-fonts cdr crypt dvd emboss encode fam
foomaticdb fortran gdbm gif gpm gtk gtk2 imagemagick imlib ipv6 java jpeg libg++
libwww mad mikmod motif mp3 mpeg ncurses nls nvidia ogg oggvorbis opengl oss pam
pdflib perl png python qt quicktime readline sdl spell ssl svga tcpd tiff
truetype truetype-fonts type1-fonts vorbis xine xml2 xmms xv zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

Comment 7 Luca Barbato gentoo-dev 2005-05-29 10:39:43 UTC
emerge -vp mplayer alsa-driver alsa-lib

please
Comment 8 jonathan 2005-05-29 13:01:17 UTC
# emerge -vp mplayer alsa-driver alsa-lib

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] media-video/mplayer-1.0_pre7  -3dfx -3dnow -3dnowext +X -aac
-aalib +alsa (-altivec) -arts -bidi -bl -cdparanoia -cpudetection -custom-cflags
-debug -dga -directfb -divx4linux -doc -dts -dv -dvb +dvd -dvdread -edl +encode
-esd -fbcon -ggi +gif +gtk -i8x0 +ipv6 -jack -joystick +jpeg -libcaca -lirc
-live -lzo +mad -matroska -matrox -mmx -mmxext -mythtv -nas +nls +nvidia +opengl
+oss +png -real -rtc -samba +sdl -sse -sse2 +svga -tga -theora +truetype -v4l
-v4l2 +vorbis -win32codecs -xanim -xinerama +xmms +xv -xvid -xvmc 0 kB 
[ebuild  N    ] media-sound/alsa-driver-1.0.9  -debug -doc +oss 0 kB 
[ebuild   R   ] media-libs/alsa-lib-1.0.9  -doc -jack 0 kB 

Total size of downloads: 0 kB
Comment 9 Jan Brinkmann (RETIRED) gentoo-dev 2005-05-29 13:12:18 UTC
that's the problem. disable the in-kernel alsa-driver and use the one from the
portage tree. things are probably out of sync and you run into problems. follow
the Gentoo Alsa Guide:

http://www.gentoo.org/doc/en/alsa-guide.xml
Comment 10 jonathan 2005-05-29 19:46:14 UTC
compiled new kernel 2.6.12_rc5 with out alsa sound, emerged alsa-driver, added
it to /etc/make.conf, emerge alsa-utils, then started /etc/init.d/alsasound and
mplayer/gmplayer worked like a charm.
Comment 11 Luca Barbato gentoo-dev 2005-08-04 10:55:59 UTC
Closing then