[MPlayer-advusers] segfault on wmv

Attila Kinali attila at kinali.ch
Wed Aug 31 14:03:42 CEST 2005


Heyo,

I stumbled over the follwoing bug in the mov
demuxer:

Sample is http://movies.apple.com/movies/dreamworks/red_eye/red_eye_240.mov

---
(gdb) run -v /tmp/red_eye_240.mov 
Starting program: /tmp/main/mplayer -v /tmp/red_eye_240.mov
[Thread debugging using libthread_db enabled]
[New Thread -1218198880 (LWP 21285)]
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale

MPlayer dev-CVS-031224-10:43-3.3.2 (C) 2000-2005 MPlayer Team
CPU: Intel  (Family: 6, Stepping: 6)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2


CommandLine: '-v' '/tmp/red_eye_240.mov'
init_freetype
get_path('font/font.desc') -> '/home/attila/.mplayer/font/font.desc'
font: can't open file: /home/attila/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Failed to open /dev/rtc: Permission denied (it should be readable by the user.)
Using nanosleep() timing
get_path('input.conf') -> '/home/attila/.mplayer/input.conf'
Can't open input config file /home/attila/.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
get_path('red_eye_240.mov.conf') -> '/home/attila/.mplayer/red_eye_240.mov.conf'
Playing /tmp/red_eye_240.mov.
[file] File size is 246 bytes
STREAM: [file] /tmp/red_eye_240.mov
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename /tmp/red_eye_240.mov ext: .mov
Trying demuxer 7 based on filename extension
Checking for MOV
MOV: Movie header found!
MOV: Reference Media file!!!
Added reference to playlist
  min. data rate: 2800 bits/sec
  quality index: 1
Added reference to playlist
  min. data rate: 2800 bits/sec
  quality index: 1
Quicktime/MOV file format detected.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218198880 (LWP 21285)]
0x08156aa7 in mov_read_header (demuxer=0x860f200) at demux_mov.c:1710
1710        if(!stream_seek(demuxer->stream,priv->moov_start))
(gdb) bt
#0  0x08156aa7 in mov_read_header (demuxer=0x860f200) at demux_mov.c:1710
#1  0x08148114 in demux_open_stream (stream=0x860e870, file_format=7, force=0, 
    audio_id=-1, video_id=-1, dvdsub_id=-1, 
    filename=0x85fee78 "/tmp/red_eye_240.mov") at demuxer.c:700
#2  0x081482ee in demux_open_stream (stream=0x860e870, file_format=7, force=0, 
    audio_id=-1, video_id=-1, dvdsub_id=-1, 
    filename=0x85fee78 "/tmp/red_eye_240.mov") at demuxer.c:657
#3  0x08148517 in demux_open (vs=0x860e870, file_format=0, audio_id=-1, 
    video_id=140568688, dvdsub_id=-1, 
    filename=0x860e870 " ¤\023\bP¤\023\b\200¤\023\b") at demuxer.c:772
#4  0x0808ae80 in main (argc=3, argv=0xbffff9b4) at mplayer.c:1664
---

Segfault occures in mov_read_header() demux_mov.c:1710
when trying to access priv (== demux->priv) which has not
been set and is thus 0.

priv is not set in mov_check_file() demux_mov.c:306ff
because at the end on line 500ff, flags is =5.

HTH

				Attila Kinali

-- 
心をこめて聞け心をこめて話せ




More information about the MPlayer-advusers mailing list