[MPlayer-users] Re: [bug] mplayer crashes when playing to framebuffer

Jaroslav Tulach jtulach at netbeans.org
Thu Jan 9 19:53:04 CET 2003


Surprisingly if I add debug message (see the diff) everything works. 
I'll leave the printf there for now, but any help would be very approciated.

-jst


Index: libvo/aclib_template.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/aclib_template.c,v
retrieving revision 1.9
diff -u -3 -p -u -r1.9 aclib_template.c
--- libvo/aclib_template.c      22 Aug 2002 23:28:33 -0000      1.9
+++ libvo/aclib_template.c      9 Jan 2003 18:53:00 -0000
@@ -170,6 +170,7 @@ static void * RENAME(fast_memcpy)(void *
           {
             delta=MMREG_SIZE-delta;
             len -= delta;
+           printf ("to: %d  from: %d delta: %d\n", (int)to, (int)from, 
delta);
             small_memcpy(to, from, delta);
           }
           i = len >> 6; /* len/64 */



Jaroslav Tulach wrote:
> Hello.
> 
> This used to work, but does not right now. I have sources from CVS from 
> 8. 1. 2003. Here is the full info. Hope that will be enough.
> 
> -jst
> 
> 
> Mandrake 9.0 kernel 2.4.19-16mdkcustom
> 
> # ls -l /lib/libc[.-]*
> /lib/libc.so.6 -> libc-2.2.5.so*
> /lib/libc-2.2.5.so*
> 
> ~$ X -version
> 
> XFree86 Version 4.2.1 / X Window System
> (protocol Version 11, revision 0, vendor release 6600)
> Release Date: 3 September 2002
>         If the server is older than 6-12 months, or if your card is
>         newer than the above date, look for a newer version before
>         reporting problems.  (See http://www.XFree86.Org/)
> Build Operating System: Linux 2.4.18-23mdkenterprise i686 [ELF]
> Module Loader present
> 
> 
> ~$ gcc -v
> Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/specs
> Configured with: ../configure --prefix=/usr --libdir=/usr/lib 
> --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info 
> --enable-shared --enable-threads=posix --disable-checking 
> --enable-long-long --enable-__cxa_atexit 
> --enable-languages=c,c++,ada,f77,objc,java 
> --host=i586-mandrake-linux-gnu --with-system-zlib
> Thread model: posix
> gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk)
> 
> ~$ ld -v
> GNU ld version 2.12.90.0.15 20020717
> 
> 
> ~$ as --version
> GNU assembler 2.12.90.0.15 20020717
> Copyright 2002 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms of
> the GNU General Public License.  This program has absolutely no warranty.
> This assembler was configured for a target of `i586-mandrake-linux-gnu'.
> 
> 
> ~$ cat /proc/cpuinfo
> processor       : 0
> vendor_id       : AuthenticAMD
> cpu family      : 6
> model           : 6
> model name      : AMD Athlon(tm) XP 1900+
> stepping        : 2
> cpu MHz         : 1648.529
> cache size      : 256 KB
> fdiv_bug        : no
> hlt_bug         : no
> f00f_bug        : no
> coma_bug        : no
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 1
> wp              : yes
> flags           : fpu vme de tsc msr pae mce cx8 apic sep mtrr pge mca 
> cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow
> bogomips        : 3289.90
> 
> Video: Matrox Dual Head G550:
> 01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G550 AGP 
> (rev 01)
> 
> ~$ gdb mplayer
> GNU gdb 5.2.1-2mdk (Mandrake Linux)
> 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 "i586-mandrake-linux-gnu"...
> (gdb) run run Hokej-CZE-SWE.avi -ao null -vo fbdev -fb /dev/fb1
> Starting program: /usr/local/bin/mplayer run Hokej-CZE-SWE.avi -ao null 
> -vo fbdev -fb /dev/fb1
> Using GNU internationalization
> Original domain: messages
> Original dirname: /usr/share/locale
> Current domain: mplayer
> Current dirname: /usr/local/share/locale
> 
> 
> MPlayer CVS-030108-19:33-3.2 (C) 2000-2002 Arpad Gereoffy (see DOCS)
> 
> CPU: Advanced Micro Devices Athlon 4 PM Palomino/Athlon MP 
> Multiprocessor/Athlon XP eXtreme Performance (Family: 6, Stepping: 2)
> CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
> Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
> 
> Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or 
> directory
> Reading config file /home/jarda/.mplayer/config
> Reading /home/jarda/.mplayer/codecs.conf: can't open 
> '/home/jarda/.mplayer/codecs.conf': No such file or directory
> Reading /usr/local/etc/mplayer/codecs.conf: 49 audio & 130 video codecs
> font: can't open file: /home/jarda/.mplayer/font/font.desc
> Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 
> chars)
> Failed to open /dev/rtc: Device or resource busy (mplayer should be 
> setuid root or /dev/rtc should be readable by the user.)
> Using usleep() timing
> Can't open input config file /home/jarda/.mplayer/input.conf : No such 
> file or directory
> Can't open input config file /usr/local/etc/mplayer/input.conf : No such 
> file or directory
> Falling back on default (hardcoded) input config
> 
> Playing Hokej-CZE-SWE.avi
> AVI file format detected.
> VIDEO:  [DIVX]  384x288  24bpp  25,00 fps  904,0 kbps (110,3 kbyte/s)
> Clip info:
>  Software: MEncoder CVS-021207-15:23-3.2
> ==========================================================================
> Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
> MP3lib: init layer2&3 finished, tables done
> AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 4000->176400 (32,0 kbit)
> Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
> ==========================================================================
> ==========================================================================
> Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
> Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
> ==========================================================================
> AO: [null] 44100Hz 2ch Signed 16-bit (Little-Endian)
> Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
> Start playing...
> This file was encoded with libavcodec build 4643
> VDec: vo config request - 384 x 288 (preferred csp: Planar YV12)
> VDec: using Planar YV12 as output csp (no 0)
> Movie-Aspect is 1,33:1 - prescaling to correct movie aspect.
> VO: [fbdev] 384x288 => 384x288 Planar YV12
> Using MMX2 for colorspace transform
> 
> Program received signal SIGSEGV, Segmentation fault.
> fast_memcpy_MMX2 (to=0xf992c460, from=0x41130008, len=1504) at 
> aclib_template.c:173
> 173                 small_memcpy(to, from, delta);
> (gdb) bt
> #0  fast_memcpy_MMX2 (to=0xf992c460, from=0x41130008, len=1504) at 
> aclib_template.c:173
> #1  0xf992c460 in ?? ()
> Cannot access memory at address 0x5e0
> (gdb)
> 
> 


-- 
/**
* @author Jaroslav Tulach
* @see http://www.netbeans.org
*/



More information about the MPlayer-users mailing list