Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131349 - mplayer keeps segfault ing
Summary: mplayer keeps segfault ing
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-26 08:26 UTC by Phillip Berndt
Modified: 2006-05-10 13:58 UTC (History)
0 users

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 Phillip Berndt 2006-04-26 08:26:01 UTC
Whatever I do, the newest stable ~x86 version of mplayer keeps segfaulting.
The one I used before (1.0_pre7-r1) worked perfectly.

[I wonder, if it's correct that the 1.0.<date> versions aren't masked for me anyway? At least mplayer does not occur in package.keywords or package.unmask]

Emerge info:
-----------------------
Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.4.6, glibc-2.4-r1, 2.6.16.10 i686)
=================================================================
System uname: 2.6.16.10 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System version 1.12.0_pre18
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=pentium-m -fomit-frame-pointer -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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 /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/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -march=pentium-m -fomit-frame-pointer -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.wh2.uni-dresden.de/pub/mirrors/gentoo http://gentoo.inode.at/ ftp://ftp.uni-erlangen.de/mirrors/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acpi alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 cdb cdr cli crypt cups curl directfb divx4linux dri dts dvd dvdr eds emboss encode esd ethereal exif expat fam ffmpeg flac foomaticdb fortran gd gdbm ggi gif glut gphoto2 gpm gstreamer gtk gtk2 idn imagemagick imlib ipv6 isdnlog jabber jack java jpeg junit lcms libcaca libg++ libwww lua mad matroska mhash mikmod mng motif mozilla mp3 mpeg mysql nas ncurses nls nptl nptlonly ogg oggvorbis openal opengl oss pam pcre pdflib perl php plotutils png posix postgres pppd python qt quicktime readline reflection samba sdl session speex spell spl sqlite ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev usb vorbis xinerama xml2 xorg xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS
------------------------------------------------

strace mplayer:
-------------------
[...]
open("/lib/libgpm.so.1", O_RDONLY)      = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\27\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=19356, ...}) = 0
mmap2(NULL, 22584, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ccd000
mmap2(0xb7cd2000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4) = 0xb7cd2000
close(3)                                = 0
open("/usr/lib/libcdio.so.5", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240?\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=99980, ...}) = 0
mmap2(NULL, 111460, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7cb1000
mmap2(0xb7cc8000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17) = 0xb7cc8000
mmap2(0xb7cc9000, 13156, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7cc9000
close(3)                                = 0
open("/usr/lib/libwine.so", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\f\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=122487, ...}) = 0
mmap2(NULL, 87776, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7c9b000
mmap2(0xb7c9e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb7c9e000
mmap2(0xb7c9f000, 71392, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7c9f000
close(3)                                = 0
open("/usr/lib/libwine_port.so", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\10"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=49156, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7c9a000
mmap2(NULL, 4432, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7c98000
mmap2(0xb7c99000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7c99000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7c97000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7c976b0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7cd3000, 356352, PROT_READ|PROT_WRITE) = 0
mprotect(0xb7cd3000, 356352, PROT_READ|PROT_EXEC) = 0
mprotect(0xb7e47000, 8192, PROT_READ)   = 0
mprotect(0xb7e87000, 4096, PROT_READ)   = 0
mprotect(0xb7f25000, 339968, PROT_READ|PROT_WRITE) = 0
mprotect(0xb7f25000, 339968, PROT_READ|PROT_EXEC) = 0
mprotect(0xb7fc5000, 4096, PROT_READ)   = 0
munmap(0xb7f8a000, 128948)              = 0
set_tid_address(0xb7c976f8)             = 13896
rt_sigaction(SIGRTMIN, {0xb7e7c620, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0xb7e7c6a0, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbfcc121c, 41, (nil), 0}) = 0
brk(0)                                  = 0x84fc000
brk(0x851d000)                          = 0x851d000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 13896 detached
--------------------------------------------------

GDB traceback:
-------------------
(gdb) run
Starting program: /usr/bin/mplayer
[Thread debugging using libthread_db enabled]
[New Thread -1211332944 (LWP 13911)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1211332944 (LWP 13911)]
0xb7d33d20 in dllname () from /usr/lib/libwinmm.so
(gdb) bt
#0  0xb7d33d20 in dllname () from /usr/lib/libwinmm.so
#1  0xb7ff6fbc in ?? () from /lib/ld-linux.so.2
#2  0xbfbf5208 in ?? ()
#3  0xb7d0e366 in _init () from /usr/lib/libwinmm.so
#4  0xb7d0e366 in _init () from /usr/lib/libwinmm.so
#5  0xb7fe9737 in call_init () from /lib/ld-linux.so.2
#6  0xb7fe97d6 in _dl_init_internal () from /lib/ld-linux.so.2
#7  0xb7fdc8ff in _dl_start_user () from /lib/ld-linux.so.2
------------------------------------------------------------

mplayer was compiled with 'USE="-* debug" emerge mplayer', version is media-video/mplayer-1.0.20060415.

I just tried media-video/mplayer-1.0.20060302 (again -* debug), same error.
Renaming the configuration files did not help either.

Any ideas?
Comment 1 Luca Barbato gentoo-dev 2006-04-26 11:04:36 UTC
I wonder what's with wine or a derivative and how did you install it.

equery b /usr/lib/libwinmm.so

or qfile /usr/lib/libwinmm.so

Maybe CFLAGS="-O2 -pipe -march=pentium-m -fomit-frame-pointer -mfpmath=sse"
                                                                   ^
this is a cause of the problems.
Comment 2 Phillip Berndt 2006-04-27 08:04:56 UTC
> I wonder what's with wine or a derivative and how did you install it.
Just plain and simple "emerge wine":
 app-emulation/wine-0.9.8-r1  +X +alsa +arts +cups -debug +esd +gif +glut +jack +jpeg +lcms -ldap +nas +ncurses +opengl +oss -scanner +truetype -xml

> equery b /usr/lib/libwinmm.so
Funny. Seems not to belong to any packet.
But I'm quite sure that I never installed wine manually..

> Maybe CFLAGS="-O2 -pipe -march=pentium-m -fomit-frame-pointer -mfpmath=sse"                                                            
> this is a cause of the problems.
I just tried to remerge both wine and mplayer without sse, didn't help.

I just noticed that vlc seems to have a very similar problem, they both might have the same orign:
STRACE VLC
------------
open("/usr/lib/libwinmm.so", O_RDONLY)  = 5
read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\260\0"..., 512) = 512
fstat64(5, {st_mode=S_IFREG|0755, st_size=1227169, ...}) = 0
mmap2(NULL, 374576, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0xb6dba000
mmap2(0xb6e11000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x57) = 0xb6e11000
close(5)                                = 0
open("/usr/lib/libwine.so", O_RDONLY)   = 5
read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\f\0"..., 512) = 512
fstat64(5, {st_mode=S_IFREG|0755, st_size=122487, ...}) = 0
brk(0x819a000)                          = 0x819a000
mmap2(NULL, 87776, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0xb6da4000
mmap2(0xb6da7000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x2) = 0xb6da7000
mmap2(0xb6da8000, 71392, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb6da8000
close(5)                                = 0
open("/usr/lib/libwine_port.so", O_RDONLY) = 5
read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\10"..., 512) = 512
fstat64(5, {st_mode=S_IFREG|0755, st_size=49156, ...}) = 0
mmap2(NULL, 4432, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0xb6ee7000
mmap2(0xb6ee8000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x1) = 0xb6ee8000
close(5)                                = 0
mprotect(0xb6dba000, 356352, PROT_READ|PROT_WRITE) = 0
mprotect(0xb6dba000, 356352, PROT_READ|PROT_EXEC) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
--------------------------------------
Comment 3 Luca Barbato gentoo-dev 2006-04-28 07:07:19 UTC
remove that file.
Comment 4 Phillip Berndt 2006-04-29 15:44:26 UTC
./mplayer: error while loading shared libraries: libwinmm.so: cannot open shared object file: No such file or directory

Nice try :) :/
Comment 5 Luca Barbato gentoo-dev 2006-04-29 15:54:44 UTC
emerge again mplayer
Comment 6 Phillip Berndt 2006-04-30 08:05:42 UTC
Compiles, but again same error when trying to run mplayer.
Comment 7 Luca Barbato gentoo-dev 2006-04-30 08:23:20 UTC
the very same issue?

emerge -vp mplayer what says?

Comment 8 Phillip Berndt 2006-05-03 13:44:30 UTC
[ebuild     U ] media-video/mplayer-1.0.20060415 [1.0_pre7-r1] -3dfx -3dnow -3dnowext -X* -aac* -aalib* -alsa* (-altivec) -arts* -bidi -bindist -bl -cdparanoia* -cpudetection -custom-cflags -debug -dga* -directfb* -doc -dts* -dv* -dvb* -dvd* -dvdread* -edl -encode* -esd* -fbcon* -ggi* -gif* -gtk* -i8x0* -ipv6* -jack* -joystick -jpeg* -libcaca* -lirc -live* -livecd -lzo* -mad* -matroska* -matrox -mmx -mmxext -musepack -nas* -nvidia -openal* -opengl* -oss* -png* -real* -rtc -samba* -sdl* -sse -sse2 -svga* -tga* -theora* -truetype* -unicode -v4l* -v4l2* -vorbis* -win32codecs* -x264 -xanim* -xinerama* -xmms -xv* -xvid* -xvmc* 0 kB

(I've currently got the 1.0_pre7 installed as this version works)
Comment 9 Phillip Berndt 2006-05-10 13:58:39 UTC
Fixed. It seems that as long as wine is installed, wine links the libwine_port.so (whether it actually exists or nor) for any reason.

However, if anyone runs into the same problem:
1) emerge -C wine
2) rm -i /usr/lib/wine*; emerge -ir /usr/lib/wine [Delete everything related to wine, -i is for safety only]
3) emerge mplayer [mplayer-1.0.20060415 works for me now]
4) remerge wine

I don't know yet whether mplayer would remerge fine by now, but assume yes if I don't post another comment.