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

Charles Henrich henrich at sigbus.com
Thu Jul 11 23:55:16 CEST 2002


Okay, the core dump probably has nothing to do with the resize.  If I compile 
with debug, it will properly make the single thumbnail size frames if the full 
path to the quicktime is short.  If its rather long (69 characters or so), 
then mplayer dumps core with the following backtrace.  

If I compile without debugging, the same file causes a core dump no matter the 
filelength.

crh# gdb ./mplayer

Starting program: /usr/local/src/mplayer/main/./mplayer -v -vop scale -zoom -xy 90 -frames 1000 -vo jpeg -jpeg outdir=/tmp/tmp:quality=90 /thisisaveryveryveryveryveryveryveryveryveryveryveryveryverylongpath/thisiareallyreallyreallylongfilename.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 /root/.mplayer/codecs.conf: this codecs.conf is too old, incompatible with this mplayer release! at line 13
Reading /usr/local/share/mplayer/codecs.conf: 36 audio & 101 video codecs
CommandLine: '-v' '-vop' 'scale' '-zoom' '-xy' '90' '-frames' '1000' '-vo' 'jpeg' '-jpeg' 'outdir=/tmp/tmp:quality=90' '/thisisaveryveryveryveryveryveryveryveryveryveryveryveryverylongpath/thisiareallyreallyreallylongfilename.mov'
get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
font: can't open file: /root/.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') -> '/root/.mplayer/input.conf'
Can't open input config file /root/.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 /thisisaveryveryveryveryveryveryveryveryveryveryveryveryverylongpath/thisiareallyreallyreallylongfilename.mov
Not an URL!
File size is 2760777 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: 23  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!  (1 blocks) (ver:0,flags:0)
MOV:     Sample size table! (entries=23 ss=120000) (ver:0,flags:0)
MOV:     Chunk offset table! (23 chunks)
MOV track #0: 23 chunks, 0 samples
pts=23  scale=24  time=0.958
==> Found video stream: 0
Image size: 720 x 480 (24 bpp)
Display size: 720 x 547
Fourcc: dvc   Codec: 'DV - NTSC'
--------------
[V] filefmt:7  fourcc:0x20637664  size:720x480  fps:24.00  ftime:=0.0417
get_path('sub/') -> '/root/.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') -> '/root/.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.
0x80974a0 in vf_mpi_clear (mpi=0x844a000, x0=0, y0=0, w=720, h=480) at vf.c:101
101                     for(i=0;i<size;i+=4) p[i]=p[i+1]=p[i+2]=p[i+3]=0x80008000;
(gdb) bt
#0  0x80974a0 in vf_mpi_clear (mpi=0x844a000, x0=0, y0=0, w=720, h=480) at vf.c:101
#1  0x80979fe in vf_get_image (vf=0x82aac80, outfmt=844715353, mp_imgtype=2, mp_imgflag=32, w=720, h=480) at vf.c:193
#2  0x8090c6c in mpcodecs_get_image (sh=0x82c7200, mp_imgtype=2, mp_imgflag=32, w=720, h=480) at vd.c:269
#3  0x80917bd in decode (sh=0x82c7200, data=0x84f4000, len=120000, flags=0) at vd_vfw.c:74
#4  0x80906c7 in decode_video (sh_video=0x82c7200, start=0x84f4000 "\037\a", in_size=120000, drop_frame=0) at dec_video.c:199
#5  0x8064e86 in main (argc=14, argv=0xbfbffae8, envp=0xbfbffb24) at mplayer.c:1586
(gdb) print dst
$1 = (unsigned char *) 0x8a9b13c <Error reading address 0x8a9b13c: Bad address>
(gdb) print p
$2 = (aa_renderparams *) 0x0

       Charles Henrich         Eon Entertainment         henrich at msu.edu

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



More information about the MPlayer-dev-eng mailing list