[MPlayer-users] Segfault on Startup

pl p_l at gmx.fr
Thu Apr 4 12:43:01 CEST 2002


On Wed, Apr 03, 2002 at 08:35:59PM -0600, Ryan Hayle wrote:

> I'm attempting to compile mplayer from CVS (as a debian package),
> however each time I try to run it, even without any parameters, it
> segfaults.  I experienced this same behavior the last time I tried to
> compile it (about 2-3 weeks ago).  The last version I compiled which
> works correctly (and still very nicely) is 0.60-1 (actually, this was
> >from CVS compiled sometime before 0.60-2 came out).  I've attached the
> relevant files, including mplayer.strace.  I had no configure.log after
> compiling the debian package, and the second config.mak is from the
> libvo directory.  Please let me know if any further information could be
> useful.

It looks like linking problems if you cannot even do a mplayer -v.

A few ideas:
 Without using wine in your ld path ?
 Without XviD ?
 What happens without GUI ?
 What happens if you compile with "the standard way" (make clean &&
 ./configure <opts> && make ) ?
 etc...

Please try and narrow the bug.


> System Information:
> Debian 3.0 (unstable)
> linux 2.4.18
> libc 2.2.5-4
> gcc 2.95.4-14
> ld/binutils 2.12.90.0.1 20020307
> CPU: K6-2/400
> Video: NVidia TNT (Diamond V550)
> Driver: NVidia 1.0.2802
> Sound: AWE64 Gold w/ALSA
> 
> GDB Output:
> $ gdb mplayer
> GNU gdb 5.1.1
> Copyright 2002 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i386-linux"...(no debugging symbols found)...
> (gdb) run -v
> Starting program: /usr/bin/mplayer -v
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x400082d3 in ?? ()
> (gdb) bt
> #0  0x400082d3 in ?? ()
> #1  0x40002a38 in ?? ()
> #2  0x4000bce9 in ?? ()
> #3  0x4000181a in ?? ()
> #4  0x4000178b in ?? ()
> (gdb) disass $eip-32 $eip+32
> Dump of assembler code from 0x400082b3 to 0x400082f3:
> 0x400082b3:     (bad)
> 0x400082b4:     add    %eax,(%eax)
> 0x400082b6:     add    %cl,0xffe89783(%ebp)
> 0x400082bc:     call   *0xffffff8d(%eax)
> 0x400082bf:     xorl   $0x46,0xe850ffff(%eax,%ebp,8)
> 0x400082c7:     dec    %ecx
> 0x400082c8:     add    %al,(%eax)
> 0x400082ca:     lea    0x0(%esi),%esi
> 0x400082d0:     mov    0xffffff94(%ebp),%esi
> 0x400082d3:     add    %esi,(%eax)
> 0x400082d5:     add    $0x8,%edx
> 0x400082d8:     cmp    %ecx,%edx
> 0x400082da:     jb     0x400082a0
> 0x400082dc:     mov    0xffffffa4(%ebp),%edx
> 0x400082df:     mov    0xdc(%edx),%eax
> 0x400082e5:     test   %eax,%eax
> 0x400082e7:     je     0x400085c5
> 0x400082ed:     mov    0x4(%eax),%eax
> 0x400082f0:     mov    %eax,0xffffff8c(%ebp)
> End of assembler dump.
> 
> I compiled with --enable-debug=3, so I'm not really sure why this isn't
> showing more?
> 
> 

> execve("/usr/bin/mplayer", ["mplayer", "-v"], [/* 26 vars */]) = 0
> uname({sys="Linux", node="hackel", ...}) = 0
> brk(0)                                  = 0x82d28bc
> open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
> open("/usr/lib/wine/i586/mmx/libaudio.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
Hmmm            ~~~~~~ ?

> stat64("/usr/lib/wine/i586/mmx", 0xbfffedf4) = -1 ENOENT (No such file or directory)
> open("/usr/lib/wine/i586/libaudio.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
> stat64("/usr/lib/wine/i586", 0xbfffedf4) = -1 ENOENT (No such file or directory)
> open("/usr/lib/wine/mmx/libaudio.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
> stat64("/usr/lib/wine/mmx", 0xbfffedf4) = -1 ENOENT (No such file or directory)
> open("/usr/lib/wine/libaudio.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
> stat64("/usr/lib/wine", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
> open("/etc/ld.so.cache", O_RDONLY)      = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=48051, ...}) = 0
> old_mmap(NULL, 48051, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
> close(3)                                = 0
> open("/usr/lib/libaudio.so.2", O_RDONLY) = 3
...
> open("/usr/lib/wine/libartsc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/libartsc.so.0", 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 \23\0\000"..., 1024) = 1024
> fstat64(3, {st_mode=S_IFREG|0644, st_size=21496, ...}) = 0
> old_mmap(NULL, 24620, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x408d5000
> mprotect(0x408da000, 4140, PROT_NONE)   = 0
> old_mmap(0x408da000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x4000) = 0x408da000
> close(3)                                = 0
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x408dc000
> mprotect(0x405b8000, 3059712, PROT_READ|PROT_WRITE) = 0
> mprotect(0x405b8000, 3059712, PROT_READ|PROT_EXEC) = 0
> mprotect(0x403ca000, 270336, PROT_READ|PROT_WRITE) = 0
> mprotect(0x403ca000, 270336, PROT_READ|PROT_EXEC) = 0
> --- SIGSEGV (Segmentation fault) ---
> +++ killed by SIGSEGV +++


> # -------- Generated by configure -----------
> 
> LANG = C
> TARGET_OS = Linux
> prefix = /usr
> DATADIR = /usr/share/mplayer
> CONFDIR = /etc/mplayer
> LIBDIR = /usr/lib/mplayer
> AR = ar
> CC = gcc
> AWK = mawk
> # OPTFLAGS = -O4  -g3 -march=i486 -mcpu=i686 -pipe -fomit-frame-pointer -ffast-math
> OPTFLAGS = -W -Wall -O2 -march=i486 -mcpu=i686 -g3  -D_REENTRANT
> EXTRA_INC =  -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
> WIN32_PATH = -DWIN32_PATH=\"/usr/lib/win32\"
> 
> STREAMING = yes
> STREAMING_LIB = -lnsl
> VIDIX = yes
> 
> OPENDIVX = no
> 
> VO2 = no
> 
> PNG = yes
> JPEG = yes
> 
> EXTRA_LIB = 
> Z_LIB =   -lz
> HAVE_MLIB = no
> STATIC_LIB = 
> 
> X11_INC = 
> X11DIR = -L/usr/X11R6/lib -lX11 -lXext -lnsl
> 
> # video output
> X_LIB = -L/usr/X11R6/lib -lX11 -lXext -lnsl -lGL -lXxf86dga -lXv -lXxf86vm -lXinerama  -lnsl
> GGI_LIB = 
> MLIB_LIB =  
> MLIB_INC = 
> PNG_LIB = -lpng -lz
> JPEG_LIB = -ljpeg
> SDL_LIB = -L/usr/lib -lSDL -lpthread
> SVGA_LIB = 
> AA_LIB = 
> 
> # audio output
> ALSA_LIB = 
> NAS_LIB = -laudio  -L/usr/X11R6/lib -lX11 -lXext -lnsl -lXt
> MAD_LIB = 
> VORBIS_LIB = 
> FAAD_LIB = 
> SGIAUDIO_LIB = 
> 
> # input
> TERMCAP_LIB = 
> LIRC_LIB = 
> CSS_USE = no
> CSS_LIB = 
> SDL_INC = -I/usr/include/SDL -D_REENTRANT
> W32_DEP = loader/libloader.a
> W32_LIB = -Lloader -lloader
> DS_DEP = loader/dshow/libDS_Filter.a
> DS_LIB = -Lloader/dshow -lDS_Filter
> AV_DEP = libavcodec/libavcodec.a
> AV_LIB = -Llibavcodec -lavcodec
> MP1E_DEP = 
> MP1E_LIB = 
> ARCH_LIB =   -lpthread -ldl -rdynamic 
> DIVX4LINUX = no
> XVID = yes
> DECORE_LIB = -lxvidcore
> MENCODER = yes
> ENCORE_LIB =  -lm -lxvidcore 
> DIRECTFB_LIB = 
> NEW_INPUT_LIB = -Linput -linput
> 
> # --- Some stuff for autoconfigure ----
> TARGET_ARCH_X86 = yes
> TARGET_CYGWIN = no
> TARGET_CPU=586
> TARGET_MMX = yes
> TARGET_MMX2 = yes
> TARGET_3DNOW = yes
> TARGET_3DNOWEX = yes
> TARGET_SSE = yes
> 
> BINUTILS = yes
> 
> # --- GUI stuff ---
> GTKLIB =  -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm
> GLIBLIB =   -L/usr/lib -lglib
> GTK_LIBS =   $(GTKLIB) $(GLIBLIB)
> GUI = yes
> DEBUG = -DDEBUG
> 
> # --- HAZARDOUS STUFF
> 
> ENABLE_XP=no
> 

> include ../config.mak
> OPTIONAL_SRCS =  vo_x11.c vo_xv.c vo_dga.c vo_gl.c vo_gl2.c vo_fbdev.c vo_png.c vo_vesa.c vesa_lvo.c vo_sdl.c vo_xvidix.c
> OPTIONAL_OBJS = vo_x11.o vo_xv.o vo_dga.o vo_gl.o vo_gl2.o vo_fbdev.o vo_png.o vo_vesa.o vesa_lvo.o vo_sdl.o vo_xvidix.o


-- 
Best regards,
  pl




More information about the MPlayer-users mailing list