[MPlayer-dev-eng] tiny resize dumps core, debug info

Charles Henrich henrich at sigbus.com
Thu Jul 11 02:24:47 CEST 2002


Looks like enabling SSE in the kernel appears to have fixed the problem.  So
must be some SSE code in the wrong place..

> This is a FreeBSD box, no SSE in kernel.
> 
> Starting program: /usr/local/bin/mplayer -v -vo jpeg -frames 1000 -vop scale
> -zoom -xy 90 -osdlevel 0 /tmp/test.mov
> 
> MPlayer CVS-020710-17:10-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS!)
> 
> CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping:
> 3)
> CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
> Compiled for x86 CPU with extensions: MMX MMX2
> 
> Reading /lhome/henrich/.mplayer/codecs.conf: can't open
> '/lhome/henrich/.mplayer/codecs.conf': No such file or directory
> Reading /usr/local/share/mplayer/codecs.conf: 36 audio & 101 video codecs
> CommandLine: '-v' '-vo' 'jpeg' '-frames' '1000' '-vop' 'scale' '-zoom' '-xy'
> '90' '-osdlevel' '0' '/tmp/test.mov'
> get_path('font/font.desc') -> '/lhome/henrich/.mplayer/font/font.desc'
> font: can't open file: /lhome/henrich/.mplayer/font/font.desc
> font: can't open file: /usr/local/share/mplayer/font/font.desc
> Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
> Using usleep() timing
> get_path('input.conf') -> '/lhome/henrich/.mplayer/input.conf'
> Can't open input config file /lhome/henrich/.mplayer/input.conf : No such file
> or directory
> Can't open input config file /usr/local/share/mplayer/input.conf : No such
> file or directory
> Falling back on default (hardcoded) input config
> 
> Playing /tmp/test.mov
> Not an URL!
> File size is 2400725 bytes
> Checking for YUV4MPEG2
> DEMUXER: freeing demuxer at 0x83cd000  
> ASF_check: not ASF guid!
> DEMUXER: freeing demuxer at 0x83cd000  
> Checking for NuppelVideo
> DEMUXER: freeing demuxer at 0x83cd000  
> Checking for MOV
> MOV: 'WIDE' chunk found!
> MOV: Movie DATA found!
> MOV: Movie DATA found!
> MOV: Movie header found!
> Detected QuickTime/MOV file format!
> MOV: unknown chunk: mvhd 100
> --------------
> MOV: Track #0:
> MOV:  Track header!
> MOV:  Edit atom!
> MOV:   Edit list table (1 entries) (ver:0,flags:0)
> MOV:     entry#0: duration: 500  start time: 0  speed: 1.0x
> MOV:  Media stream!
> MOV:   Media header!
> MOV: unknown chunk: hdlr 50
> MOV:   Media info!
> MOV:    Video header!
> MOV: unknown chunk: hdlr 49
> MOV: unknown chunk: dinf 28
> MOV:    Sample info!
> MOV:     Description list! (cnt:1)
> MOV:      desc #0: dvc   (70 bytes)
> MOV:     Sample duration table! (1 blocks)
> MOV:     Sample->Chunk mapping table!  (2 blocks) (ver:0,flags:0)
> MOV:     Sample size table! (entries=20 ss=120000) (ver:0,flags:0)
> MOV:     Chunk offset table! (3 chunks)
> MOV track #0: 3 chunks, 0 samples
> pts=500  scale=600  time=0.833
> ==> Found video stream: 0
> Image size: 720 x 480 (24 bpp)
> Display size: 720 x 480
> Fourcc: dvc   Codec: 'DV - NTSC'
> --------------
> [V] filefmt:7  fourcc:0x20637664  size:720x480  fps:24.00  ftime:=0.0417
> get_path('sub/') -> '/lhome/henrich/.mplayer/sub/'
> Opening video filter: [scale]
> SwScale params: -1 x -1 (-1=no scaling)
> ==========================================================================
> Opening video decoder: [vfw] Win32/VfW video codecs
> VDec: vo config request - 720 x 480 (preferred csp: Packed YUY2)  
> [PP] Using codec's postprocessing, max q = 9
> scale: query(BGR 32-bit) -> 1
> scale: query(BGR 24-bit) -> 1
> scale: query(BGR 16-bit) -> 0
> scale: query(BGR 15-bit) -> 0
> scale: query(BGR 8-bit) -> 0
> scale: query(BGR 4-bit) -> 0
> scale: query(BGR 1-bit) -> 0
> scale: query(RGB 32-bit) -> 0
> scale: query(RGB 24-bit) -> 1
> scale: query(RGB 16-bit) -> 0
> scale: query(RGB 15-bit) -> 0
> scale: query(RGB 8-bit) -> 0
> scale: query(RGB 4-bit) -> 0
> scale: query(RGB 1-bit) -> 0
> scale: query(Planar YV12) -> 1
> scale: query(Planar I420) -> 1
> scale: query(Planar IYUV) -> 1
> scale: query(Planar Y800) -> 0
> scale: query(Planar Y8) -> 0
> scale: query(Planar YVU9) -> 0
> scale: query(Planar IF09) -> 0
> vo_debug: query(Packed YUY2) returned 0x441 (i=0) 
> vo_debug: query(Packed UYVY) returned 0x0 (i=1) 
> scale: query(BGR 32-bit) -> 1
> scale: query(BGR 24-bit) -> 1
> scale: query(BGR 16-bit) -> 0
> scale: query(BGR 15-bit) -> 0
> scale: query(BGR 8-bit) -> 0
> scale: query(BGR 4-bit) -> 0
> scale: query(BGR 1-bit) -> 0
> scale: query(RGB 32-bit) -> 0
> scale: query(RGB 24-bit) -> 1
> scale: query(RGB 16-bit) -> 0
> scale: query(RGB 15-bit) -> 0
> scale: query(RGB 8-bit) -> 0
> scale: query(RGB 4-bit) -> 0
> scale: query(RGB 1-bit) -> 0
> scale: query(Planar YV12) -> 1
> scale: query(Planar I420) -> 1
> scale: query(Planar IYUV) -> 1
> scale: query(Planar Y800) -> 0
> scale: query(Planar Y8) -> 0
> scale: query(Planar YVU9) -> 0
> scale: query(Planar IF09) -> 0
> vo_debug: query(BGR 32-bit) returned 0x441 (i=2) 
> scale: query(BGR 32-bit) -> 1
> scale: query(BGR 24-bit) -> 1
> scale: query(BGR 16-bit) -> 0
> scale: query(BGR 15-bit) -> 0
> scale: query(BGR 8-bit) -> 0
> scale: query(BGR 4-bit) -> 0
> scale: query(BGR 1-bit) -> 0
> scale: query(RGB 32-bit) -> 0
> scale: query(RGB 24-bit) -> 1
> scale: query(RGB 16-bit) -> 0
> scale: query(RGB 15-bit) -> 0
> scale: query(RGB 8-bit) -> 0
> scale: query(RGB 4-bit) -> 0
> scale: query(RGB 1-bit) -> 0
> scale: query(Planar YV12) -> 1
> scale: query(Planar I420) -> 1
> scale: query(Planar IYUV) -> 1
> scale: query(Planar Y800) -> 0
> scale: query(Planar Y8) -> 0
> scale: query(Planar YVU9) -> 0
> scale: query(Planar IF09) -> 0
> vo_debug: query(BGR 24-bit) returned 0x441 (i=3) 
> scale: query(BGR 32-bit) -> 1
> scale: query(BGR 24-bit) -> 1
> scale: query(BGR 16-bit) -> 0
> scale: query(BGR 15-bit) -> 0
> scale: query(BGR 8-bit) -> 0
> scale: query(BGR 4-bit) -> 0
> scale: query(BGR 1-bit) -> 0
> scale: query(RGB 32-bit) -> 0
> scale: query(RGB 24-bit) -> 1
> scale: query(RGB 16-bit) -> 0
> scale: query(RGB 15-bit) -> 0
> scale: query(RGB 8-bit) -> 0
> scale: query(RGB 4-bit) -> 0
> scale: query(RGB 1-bit) -> 0
> scale: query(Planar YV12) -> 1
> scale: query(Planar I420) -> 1
> scale: query(Planar IYUV) -> 1
> scale: query(Planar Y800) -> 0
> scale: query(Planar Y8) -> 0
> scale: query(Planar YVU9) -> 0
> scale: query(Planar IF09) -> 0
> vo_debug: query(BGR 15-bit) returned 0x441 (i=4) 
> Movie-Aspect is undefined - no prescaling applied.
> video_out->init(720x480->90x60,flags=4,'MPlayer',0x32595559)
> scale: query(BGR 32-bit) -> 1
> scale: query(BGR 24-bit) -> 1
> scale: query(BGR 16-bit) -> 0
> scale: query(BGR 15-bit) -> 0
> scale: query(BGR 8-bit) -> 0
> scale: query(BGR 4-bit) -> 0
> scale: query(BGR 1-bit) -> 0
> scale: query(RGB 32-bit) -> 0
> scale: query(RGB 24-bit) -> 1
> scale: query(RGB 16-bit) -> 0
> scale: query(RGB 15-bit) -> 0
> scale: query(RGB 8-bit) -> 0
> scale: query(RGB 4-bit) -> 0
> scale: query(RGB 1-bit) -> 0
> scale: query(Planar YV12) -> 1
> scale: query(Planar I420) -> 1
> scale: query(Planar IYUV) -> 1
> scale: query(Planar Y800) -> 0
> scale: query(Planar Y8) -> 0
> scale: query(Planar YVU9) -> 0
> scale: query(Planar IF09) -> 0
> SwScaler: reducing / aligning filtersize 33 -> 32
> SwScaler: reducing / aligning filtersize 33 -> 32
> SwScaler: reducing / aligning filtersize 33 -> 32
> SwScaler: reducing / aligning filtersize 33 -> 32
> 
> SwScaler: BICUBIC scaler, from Packed YUY2 to BGR 32-bit using MMX2
> SwScaler: using n-tap MMX scaler for horizontal luminance scaling
> SwScaler: using n-tap MMX scaler for horizontal chrominance scaling
> SwScaler: using n-tap MMX scaler for vertical scaling (BGR)
> SwScaler: using MMX YV12->BGR32 Converter
> SwScaler: 720x480 -> 90x60
> REQ: flags=0x1  req=0x0  
> VO: [jpeg] 90x60 => 11x7 BGR 32-bit  [zoom]
> VO: Description: JPEG file
> VO: Author: Zoltan Ponekker (pontscho at makacs.poliod.hu)
> ======= Win32 (VFW) VIDEO Codec init =======
> Set_LDT
> Loading DLL: 'mcdvd_32.dll'
> get_path('registry') -> '/lhome/henrich/.mplayer/registry'
> ICDecompressGetFormatSize ret: 40
> ICDecompressGetFormat OK
> Starting decompression, format:
>   biSize 40
>   biWidth 720
>   biHeight 480
>   biPlanes 0
>   biBitCount 24
>   biCompression 0x64737664 ('dvsd')
>   biSizeImage 345600
> Dest fmt:
>   biSize 40
>   biWidth 720
>   biHeight -480
>   biPlanes 0
>   biBitCount 16
>   biCompression 0x32595559 ('YUY2')
>   biSizeImage 691200
> ICDecompressQuery OK
> VIDEO CODEC Init OK!!! ;-)
> INFO: Win32 video codec init OK!
> Detected video codec: [mcdv] vfm:2 (MainConcept DV Codec)
> ==========================================================================
> Audio: no sound!!!
> Freeing 0 unused audio chunks
> Start playing...
> *** [scale] Allocating mp_image_t, 720x480x16bpp YUV packed, 691200 bytes
> *** [vo] Allocating mp_image_t, 90x60x32bpp RGB packed, 21600 bytes
> mplayer in free(): warning: junk pointer, too high to make sense.
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x2877cf74 in memset () from /usr/lib/libc_r.so.4
> (gdb) bt
> #0  0x2877cf74 in memset () from /usr/lib/libc_r.so.4
> #1  0x86d440f in ?? ()
> #2  0x80979fe in vf_get_image (vf=0x82aaa80, outfmt=1111970336, mp_imgtype=2, 
>     mp_imgflag=16, w=90, h=60) at vf.c:193
> #3  0x8099721 in put_image (vf=0x82aab00, mpi=0x82aae80) at vf_scale.c:150
> #4  0x809072d in decode_video (sh_video=0x82c7200, start=0x84f4000 "\037\a", 
>     in_size=120000, drop_frame=0) at dec_video.c:221
> #5  0x8064e86 in main (argc=14, argv=0xbfbff488, envp=0xbfbff4c4)
>     at mplayer.c:1586
> (gdb) disass $eip-32 $eip+32
> Dump of assembler code from 0x2877cf54 to 0x2877cf94:
> 0x2877cf54 <memset+12>: dec    %esp
> 0x2877cf55 <memset+13>: and    $0x14,%al
> 0x2877cf57 <memset+15>: push   %edi
> 0x2877cf58 <memset+16>: cld    
> 0x2877cf59 <memset+17>: cmp    $0xf,%ecx
> 0x2877cf5c <memset+20>: jle    0x2877cf82 <memset+58>
> 0x2877cf5e <memset+22>: mov    %al,%ah
> 0x2877cf60 <memset+24>: mov    %eax,%edx
> 0x2877cf62 <memset+26>: shl    $0x10,%eax
> 0x2877cf65 <memset+29>: or     %edx,%eax
> 0x2877cf67 <memset+31>: mov    %edi,%edx
> 0x2877cf69 <memset+33>: neg    %edx
> 0x2877cf6b <memset+35>: and    $0x3,%edx
> 0x2877cf6e <memset+38>: mov    %ecx,%ebx
> 0x2877cf70 <memset+40>: sub    %edx,%ebx
> 0x2877cf72 <memset+42>: mov    %edx,%ecx
> 0x2877cf74 <memset+44>: repz stos %al,%es:(%edi)
> 0x2877cf76 <memset+46>: mov    %ebx,%ecx
> 0x2877cf78 <memset+48>: shr    $0x2,%ecx
> 0x2877cf7b <memset+51>: repz stos %eax,%es:(%edi)
> 0x2877cf7d <memset+53>: mov    %ebx,%ecx
> 0x2877cf7f <memset+55>: and    $0x3,%ecx
> 0x2877cf82 <memset+58>: repz stos %al,%es:(%edi)
> 0x2877cf84 <memset+60>: pop    %eax
> 0x2877cf85 <memset+61>: pop    %ebx
> 0x2877cf86 <memset+62>: pop    %edi
> 0x2877cf87 <memset+63>: ret    
> 0x2877cf88 <memset+64>: and    $0x4e,%al
> 0x2877cf8a <memset+66>: gs
> 0x2877cf8b <memset+67>: je     0x2877cfcf <memcpy+15>
> 0x2877cf8d <memset+69>: push   %ebx
> 0x2877cf8e <memset+70>: inc    %esp
> 0x2877cf8f <memset+71>: cmp    (%eax),%ah
> 0x2877cf91 <memset+73>: bound  %esp,0x6f(%ebx)
> End of assembler dump.
> 
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng

       Charles Henrich         Eon Entertainment         henrich at msu.edu

                        http://www.sigbus.com/~henrich



More information about the MPlayer-dev-eng mailing list