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

Bug 36689

Summary: mplayer segfaults with glibc-2.3.3_pre20031222
Product: Gentoo Linux Reporter: Andrei Ivanov <andrei.ivanov>
Component: [OLD] Core systemAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED DUPLICATE    
Severity: normal CC: suka
Priority: High    
Version: 1.4   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andrei Ivanov 2003-12-28 16:02:47 UTC
set_thread_area({entry_number:-1 -> 6, base_addr:0x411ce1f0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0x401e9000, 74165)               = 0
set_tid_address(0x411ce238)             = 9223
rt_sigaction(SIGRTMIN, {0x408db470, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
futex(0x406f4fc4, FUTEX_WAKE, 2147483647) = 0
brk(0)                                  = 0x85df000
brk(0x8600000)                          = 0x8600000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

qlibc compiled with nls, pic and nptl.

I've recompiled mplayer after upgrading glibc, but it still segfaults (mplayer VERSION "dev-CVS-031206-12:38-3.3.2").
Comment 1 SpanKY gentoo-dev 2003-12-28 18:37:49 UTC
first i'll just throw out the ever-so-useful 'it works over here with same setup' ...

then i'll point out that you forgot `emerge info` ;)
Comment 2 Jon Wagoner 2003-12-28 22:38:20 UTC
I am seeing the same thing.  I've tried downgrading glibc, but still have the problem.  Also, it is not limited to just mplayer.  wine, kde-config, kdevelop, and others are also segfaulting now.

emerge info returns:

Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.0-mm1)
=================================================================
System uname: 2.6.0-mm1 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.3.12
distcc 2.12 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib acl alsa apache2 apm arts avi berkdb bonobo cap cdr clisp crypt cups curl doc dvd encode esd evms2 fbcon flash foomaticdb gd gd-external gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imap imlib innodb java javascript joystick jpeg kde ldap libg++ libgda lirc mad maildir mcal mdb mikmod mmx motif mozcalendar mozilla mozp3p mozsvg mozxmlterm mpeg mysql ncurses nls nptl nvidia oav odbc offensive oggvorbis opengl oss pam pdflib perl pg-hier pic png ppds python qt quicktime readline samba sasl sdl slang slp spell sse ssl svga tcltk tcpd tetex tiff truetype usb v4l vim-with-x wmf x86 xinerama xml xml2 xmms xv xvid zlib"
Comment 3 Andrei Ivanov 2003-12-29 01:09:45 UTC
Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.6.0-mm1)
=================================================================
System uname: 2.6.0-mm1 i686 Celeron (Mendocino)
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer -ffast-math -fforce-addr -falign-functions=4"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer -ffast-math -fforce-addr -falign-functions=4"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.uninett.no/pub/linux/Gentoo http://gentoo.oregonstate.edu "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aalib acl acpi adns alsa apache2 arts avi berkdb bonobo caps cdr crypt cups curl dga dvd dvdr encode esd faad foomaticdb gd gdbm gif gnomedb gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml imap imlib innodb java javascript jpeg lcms ldap libg++ libgda libwww mad maildir memlimit mikmod mmx mozilla mozsvg mpeg ncurses nls nptl odbc oggvorbis opengl oss pam pg-hier pic png python qt quicktime readline samba sdl slang slp ssl tcpd tiff truetype usb wxwindows x86 xml xml2 xv zlib"

I've just compiled mplayer snapshot 20031228 and still segfaults.

I will reboot in other kernels to see if it's not a kernel problem.
Comment 4 Andrei Ivanov 2003-12-29 02:38:30 UTC
I've rebooted to 2.6.0-test10-mm1, in which I know mplayer worked, but now it segfaults... so it doesn't seem to be a kernel problem.
Comment 5 Andreas Proschofsky (RETIRED) gentoo-dev 2003-12-29 03:02:51 UTC
I can confirm this problem, and I might add this is a major one. I also can't use any KDE or Wine-Applications. Downgrading glibc didn't help. So I think this bug should really be marked as critical.

Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031212-r0, 2.6.0-gentoo)
=================================================================
System uname: 2.6.0-gentoo i686 AMD Athlon(TM) XP 2000+
Gentoo Base System version 1.4.3.12
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.inode.at http://gentoo.oregonstate.edu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aalib alsa apm arts avi berkdb bonobo cdr composite crypt cups dvd dvdr encode esd foomaticdb gdbm gif gnome gphoto2 gpm gtk gtk2 guile imlib java jpeg kde kerberos krb4 ldap libg++ libwww mad mikmod motif mozilla moznocompose moznoirc moznomail mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba scanner sdl slang spell ssl svga tcltk tcpd tiff truetype x86 xfs xml2 xmms xv zlib"
Comment 6 Jon Wagoner 2003-12-29 23:36:11 UTC
I recompiled glibc without NTPL, then recompiled gcc and mplayer, and mplayer works now, as well as wine, kde, etc.  So it looks like something with the NPTL patches is a bit off now.
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2003-12-30 16:34:28 UTC
Same setup (nptl, etc), mplayer works fine.  Anybody with issue have a
nVidia card, and installed the latest drivers?
Comment 8 Andreas Proschofsky (RETIRED) gentoo-dev 2003-12-30 16:46:47 UTC
yes me, will try with older drivers and report later
Comment 9 Andreas Proschofsky (RETIRED) gentoo-dev 2003-12-30 17:17:06 UTC
Thanks Martin, reverting to 4496-drivers solved the problems!
Comment 10 Andrei Ivanov 2003-12-31 01:34:44 UTC
Indeed, reverting to 4496-drivers solved the problem...
Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2003-12-31 16:35:11 UTC
Ok, marking as dup.


*** This bug has been marked as a duplicate of 36742 ***
Comment 12 Martin Schlemmer (RETIRED) gentoo-dev 2003-12-31 16:36:54 UTC
Err, wrong bug.
Comment 13 Martin Schlemmer (RETIRED) gentoo-dev 2003-12-31 16:37:15 UTC
Ok, this is the right one.


*** This bug has been marked as a duplicate of 36551 ***
Comment 14 Roman Gaufman 2004-06-16 17:44:57 UTC
I also compiled glibc with nptl, but I dont think thats the problem, atleast not with mplayer. Possibly a gcc bug as this worked before the gcc update. As soon as I added -opengl to useflags and recompiled mplayer, it worked.