Strange behaviour of mplayer (segfault) when NPTL enabled. Disabling NPTL resolve this problem. Reproducible: Always Steps to Reproduce: 1.mplayer 2. 3. Actual Results: case 1: >mplayer (without any option) produce: Segmentation fault (everytime, without any additional output, 'backtrace full' of this situation below) case 2: >env LD_ASSUME_KERNEL=2.4.1 mplayer (NTPL disabled) works fine everytime case 3: >mplayer Segmentation fault ('case 1' situation) >opengl-update xorg-x11 (X.org ver. 6.8.0-r1, with ATI graphics-card and driver from xorg - NOT binary ati driver) >mplayer (works fine!) >etc-update >mplayer Segmentation fault ('case 1' situation) After another 'opegl-update xorg-x11', mplayer works fine again... After adding NPTL flag (few weeks ago), whole system has been rebuild. ================================================== >gdb mplayer (gdb) run Starting program: /usr/bin/mplayer (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[Thread debugging using libthread_db enabled] [New Thread 1073958720 (LWP 17505)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1073958720 (LWP 17505)] 0x00000000 in ?? () --------------------- (gdb) backtrace full #0 0x00000000 in ?? () No symbol table info available. #1 0x4e19ad25 in pthread_once () from /lib/tls/libpthread.so.0 No symbol table info available. #2 0x4e95425a in glXChannelRectSyncSGIX () from /usr/lib/libGL.so.1 No symbol table info available. #3 0x4e97d198 in ?? () from /usr/lib/libGL.so.1 No symbol table info available. #4 0x4e9544d8 in glXChannelRectSyncSGIX () from /usr/lib/libGL.so.1 No symbol table info available. #5 0x00000000 in ?? () No symbol table info available. #6 0x4e972780 in ?? () from /usr/lib/libGL.so.1 No symbol table info available. #7 0x4e9544ce in glXChannelRectSyncSGIX () from /usr/lib/libGL.so.1 No symbol table info available. #8 0x40034f40 in ?? () No symbol table info available. #9 0x00004461 in ?? () No symbol table info available. #10 0x4df32fb4 in ?? () from /lib/ld-linux.so.2 No symbol table info available. #11 0x4002e128 in ?? () No symbol table info available. #12 0x4e954374 in glXChannelRectSyncSGIX () from /usr/lib/libGL.so.1 No symbol table info available. #13 0xbfffef84 in ?? () No symbol table info available. #14 0x4e038f45 in ?? () from /lib/tls/libc.so.6 No symbol table info available. #15 0x4df28496 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2 No symbol table info available. Previous frame inner to this frame (corrupt stack?) >emerge info Portage 2.0.51-r2 (default-linux/x86/2004.3, gcc-3.4.2, glibc-2.3.4.20041021-r0, 2.6.8-gentoo-r9 i686) ================================================================= System uname: 2.6.8-gentoo-r9 i686 AMD Athlon(tm) processor Gentoo Base System version 1.6.5 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-tbird -O3 -ffast-math -funroll-loops -pipe -fomit-frame-pointer -m3dnow" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /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/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-tbird -O3 -ffast-math -funroll-loops -pipe -fomit-frame-pointer -m3dnow" DISTDIR="/mnt/1st/distfiles" FEATURES="autoaddcvs ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.pl/gentoo-portage" USE="3dnow X Xaw3d acl acpi alsa apache2 apm arts avi berkdb bitmap-fonts crypt cups dba dga directfb encode evo f77 fam fbcon flac flash foomaticdb gd gif gnome gpm gtk gtk2 gtkhtml imagemagick imlib java jikes jpeg kde libg++ libwww lirc mad mikmod mmx motif mozilla mpeg mule ncurses nls nptl oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline samba sdl slang speex spell ssl svga tcltk tcpd tiff truetype usb wxwindows x86 xface xinerama xml xml2 xmms xosd xv zlib linguas_pl" ====================================== >emerge -pv mplayer These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] media-video/mplayer-1.0_pre5-r4 -3dfx +3dnow -3dnowex +X -aalib +alsa (-altivec) +arts -bidi -cdparanoia -debug +directfb -divx4linux -doc -dvb -dvd -dvdread -edl +encode -esd +fbcon -ggi +gif +gtk -i8x0 -ipv6 -jack -joystick +jpeg -libcaca +lirc -live -lzo +mad -matroska -matrox +mmx -mmx2 +mpeg -mythtv -nas -network +nls -nvidia +oggvorbis +opengl +oss +png -real -rtc +samba +sdl -sse +svga -tga -theora +truetype -v4l -v4l2 -xanim +xinerama +xmms +xv -xvid -xvmc 0 kB
Hmm... (after additional investigation) It's not an mplayer issue. Every opengl-based application (like glxgears, glxinfo, etc..) fails (segvault) when mplayer fails - above described situation. Something is wrong with libraries, after 'opengl-update xorg-x11' apps with OpenGL work fine, but they are segfault after 'ldconfig'...
You might want to try rebuilding the opengl libs EXPECIALLY after doing an NPTL update. See if that works.
I'm confuse. Which package (ebuild) should I rebuld? Whitch one provide opegl libs? Rebuilding xorg-x11 didn't help. As I said, I rebuild whole system (every one package: emerge --emptytree) after switching to NPTL.
x11 team: Ideas on this one?
glXChannelRectSyncSGIX is a noop in at least Xorg's libGL, and probably fglrx' libGL too, so that's not the issue. if i'm reading this right, the issue only occurs with fglrx' libGL, in which case this probably needs to be UPSTREAMed.
Ajax, I think you may have misread -- or I misunderstand the original report: >opengl-update xorg-x11 (X.org ver. 6.8.0-r1, with ATI graphics-card and driver from xorg - NOT binary ati driver)
case 3: >mplayer Segmentation fault ('case 1' situation) >opengl-update xorg-x11 (X.org ver. 6.8.0-r1, with ATI graphics-card and driver from xorg - NOT binary ati driver) >mplayer (works fine!) --- to me that looks like "i switched to the Xorg libGL, and then it works". regardless i'd like more info from the reporter regarding what GL driver he's using.
So.. One side tells me it's a bug... the other tells me UPSTREAM, confusion ensues :). I'd like to try and take this down, but the information I'm getting seems to be varying, so I'd like to get this manageable.
i'm still waiting for the Reporter to clarify whether he's using fglrx at all. if he's using fglrx then it's probably an fglrx problem. if he's using Xorg, the backtrace looks totally bogus, which means i'm blaming mplayer for smashing the stack unless there's some evidence to the contrary.
After upgrading xorg-x11 and opengl-config problem disappered... I cannon tell you which version of opengl-config resolve this. Kwant!