[MPlayer-users] SIGSEGV with -vop pp

Steve Stavropoulos steve at math.upatras.gr
Sun Jan 19 06:41:57 CET 2003


 From the moment the -vop pp, -pp, -npp usage changed, I can't get
postprocessing to work. I always get a Segmentation Fault from mplayer
at the very start of the file. The moment the window for the movie is
created, that moment the sigsegv comes. The crash happens with every
video out device I tried (from xmga to x11) and with every -vop
pp=<> compination (Even if I give just the -vop pp in the command line
there is a crash). I also tried with --disable-mmx and got the same
sigsegv.

 MPlayer interrupted by signal 11 in module: decode_video

 The gdb output is the following:

$ gdb ./mplayer
GNU gdb 5.0rh-5 Red Hat Linux 7.1
Copyright 2001 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-redhat-linux"...
(gdb) run -v /mnt/win/Movies/Devils_advocate.avi -nofs -icelayer 4 -vop
pp
Starting program: /home/steve/cvs/main/./mplayer -v
/mnt/win/Movies/Devils_advocate.avi -nofs -icelayer 4 -vop pp
[New Thread 1024 (LWP 30953)]
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MPlayer CVS-030119-06:25-3.0.4 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Intel Celeron Covington/Pentium II Deschutes,Tonga/Pentium II Xeon
(Family: 6, Stepping: 2)
Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or
directory
Reading config file /home/steve/.mplayer/config
Reading /home/steve/.mplayer/codecs.conf: can't open
'/home/steve/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 49 audio & 130 video codecs
CommandLine: '-v' '/mnt/win/Movies/Devils_advocate.avi' '-nofs'
'-icelayer' '4' '-vop' 'pp'
get_path('font/font.desc') -> '/home/steve/.mplayer/font/font.desc'
Font /home/steve/.mplayer/font/font.desc loaded successfully! (200
chars)
Using MMX Optimized OnScreenDisplay
Failed to open /dev/rtc: No such device (mplayer should be setuid root
or /dev/rtc should be readable by the user.)
Using usleep() timing
get_path('input.conf') -> '/home/steve/.mplayer/input.conf'
Can't open input config file /home/steve/.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
Setting up LIRC support...
get_path('Devils_advocate.avi.conf') ->
'/home/steve/.mplayer/Devils_advocate.avi.conf'

Playing /mnt/win/Movies/Devils_advocate.avi
Not an URL!
File size is 738732032 bytes
AVI file format detected.
list_end=0x146
======= AVI Header =======
us/frame: 40000  (fps=25.000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames  total: 198400   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  464 x 240
list_end=0xD4
==> Found video stream: 0
======= STREAM Header =======
Type: vids   FCC: div3 (33766964)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 25/1 = 25.000
Start: 0   Len: 198400
Suggested BufferSize: 73365
Quality 5000
Sample size: 0
found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 464
  biHeight 240
  biPlanes 1
  biBitCount 24
  biCompression 861292868='DIV3'
  biSizeImage 334080
===========================
Regenerating keyframe table for DIVX 3 video
list_end=0x146
==> Found audio stream: 1
======= STREAM Header =======
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 1
Rate: 11982/1 = 11982.000
Start: 0   Len: 95089400
Suggested BufferSize: 6713
Quality -1
Sample size: 1
found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 44100
avg byte/sec: 11982
Block align: 1
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=313
mp3.nFramesPerBlock=1
mp3.nCodecDelay=1393
Broken chunk?  chunksize=1714  (id=JUNK)
list_end=0x2BD3D012
Found movie at 0x80C - 0x2BD3D012
Reading INDEX block, 214272 chunks for 198400 frames (fpos=0x2bd3d01a)
AVI index offset: 0x808 (movi=0x80C idx0=0x4 idx1=0x1524)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=638389138 (198400) audio size=95089400 (95089400)
VIDEO:  [DIV3]  464x240  24bpp  25.00 fps  643.5 kbps (78.6 kbyte/s)
[V] filefmt:3  fourcc:0x33564944  size:464x240  fps:25.00  ftime:=0.0400
get_path('sub/') -> '/home/steve/.mplayer/sub/'
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
mp3lib: made decode tables with MMX optimization
mp3lib: using MMX optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer III, 44100 Hz 96 kbit Joint-Stereo, BPF: 313
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 12000->176400 (96.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1600x1200 with depth 24 and 32 bpp (":0.0" => local
display)
[x11] Detected wm supports layers.
Opening video filter: [pp]
[vo] query(Planar YV12) -> 3
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4
v3))
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit ->
44100Hz/2ch/16bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001
and bps = 2
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
ao2: 44100 Hz  2 chans  Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested:
Signed 16-bit (Little-Endian))
audio_setup: using 2 channels (requested: 2)
audio_setup: using 44100 Hz samplerate (requested: 44100)
audio_setup: frags:  16/16  (4096 bytes/frag)  free:  65536
AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 44100Hz/2ch/16bit ->
44100Hz/2ch/16bit...
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001
and bps = 2
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001
and bps = 2
Starting playback...
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 464 x 240 (preferred csp: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (464x240->464x240,flags=0,'MPlayer',0x32315659)
REQ: flags=0x437  req=0x0
VO: [xmga] 464x240 => 464x240 Planar YV12
VO: Description: Matrox G200/G4x0/G550 overlay in X11 window (using
/dev/mga_vid)
VO: Author: Zoltan Ponekker <pontscho at makacs.poliod.hu>
[mga] Using 3 buffers.
[xmga] x: 568 y: 480 w: 464 h: 240
[xmga] dcx: 569 dcy: 505 dx: 0 dy: 0 dw: 464 dh: 240
*** [pp] Allocating mp_image_t, 464x240x12bpp YUV planar, 167040 bytes
*** [vo] Allocating mp_image_t, 464x240x12bpp YUV planar, 167040 bytes

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 30953)]
0x0824a0b0 in __fixunssfdi (original_a=258.559998)
(gdb) bt
#0  0x0824a0b0 in __fixunssfdi (original_a=258.559998)
#1  0x08169014 in postProcess_MMX (
    src=0x40cd5040 '\020' <repeats 200 times>..., srcStride=464,
    dst=0x40cff040 "", dstStride=464, width=464, height=240,
    QPs=0x85821c0 '\004' <repeats 200 times>..., QPStride=29, isColor=0,
    c2=0x84f9760) at postprocess_template.c:2719
#2  0x0816a04c in pp_postprocess (src=0x8581fa8, srcStride=0x8581fb8,
    dst=0x85823a0, dstStride=0x85823b0, width=464, height=240,
    QP_store=0x85821c0 '\004' <repeats 200 times>..., QPStride=29,
    vm=0x8392088, vc=0x84f9760, pict_type=1) at postprocess.c:475
#3  0x080c6591 in put_image (vf=0x8391ef8, mpi=0x8581f88) at vf_pp.c:125
#4  0x080b76de in decode_video (sh_video=0x838ffb8,
    start=0x8390150
"\tq\003\003Δx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205αx^\027\205α"...,
    in_size=551, drop_frame=0) at dec_video.c:329
#5  0x0806d584 in main (argc=8, argv=0xbffff844) at mplayer.c:1843
#6  0x405c8507 in __libc_start_main (main=0x8068c10 <main>, argc=8,
    ubp_av=0xbffff844, init=0x8066288 <_init>, fini=0x824a1b0 <_fini>,
    rtld_fini=0x4000dc14 <_dl_fini>, stack_end=0xbffff83c)
---Type <return> to continue, or q <return> to quit---
    at ../sysdeps/generic/libc-start.c:129
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x824a090 to 0x824a0d0:
0x824a090 <__fixunsdfdi+212>:   (bad)
0x824a091 <__fixunsdfdi+213>:   neg    %esi
0x824a093 <__fixunsdfdi+215>:   shr    $0x91,%ebx
0x824a096 <__fixunsdfdi+218>:   mov    %esi,%esi
0x824a098 <__fixunssfdi>:       push   %ebp
0x824a099 <__fixunssfdi+1>:     mov    %esp,%ebp
0x824a09b <__fixunssfdi+3>:     push   %edi
0x824a09c <__fixunssfdi+4>:     push   %esi
0x824a09d <__fixunssfdi+5>:     push   %ebx
0x824a09e <__fixunssfdi+6>:     sub    $0x1c,%esp
0x824a0a1 <__fixunssfdi+9>:     call   0x824a0a6 <__fixunssfdi+14>
0x824a0a6 <__fixunssfdi+14>:    pop    %ebx
0x824a0a7 <__fixunssfdi+15>:    add    $0x93d72,%ebx
0x824a0ad <__fixunssfdi+21>:    flds   0x8(%ebp)
0x824a0b0 <__fixunssfdi+24>:    fldl   0xf7d221e8(%ebx)
0x824a0b6 <__fixunssfdi+30>:    fucomp %st(1)
0x824a0b8 <__fixunssfdi+32>:    fnstsw %ax
0x824a0ba <__fixunssfdi+34>:    test   $0x45,%ah
0x824a0bd <__fixunssfdi+37>:    jne    0x824a0d0 <__fixunssfdi+56>
0x824a0bf <__fixunssfdi+39>:    fstp   %st(0)
0x824a0c1 <__fixunssfdi+41>:    xor    %eax,%eax
0x824a0c3 <__fixunssfdi+43>:    xor    %edx,%edx
---Type <return> to continue, or q <return> to quit---
0x824a0c5 <__fixunssfdi+45>:    add    $0x1c,%esp
0x824a0c8 <__fixunssfdi+48>:    pop    %ebx
0x824a0c9 <__fixunssfdi+49>:    pop    %esi
0x824a0ca <__fixunssfdi+50>:    pop    %edi
0x824a0cb <__fixunssfdi+51>:    pop    %ebp
0x824a0cc <__fixunssfdi+52>:    ret
0x824a0cd <__fixunssfdi+53>:    lea    0x0(%esi),%esi
End of assembler dump.
(gdb) info all-registers
eax            0x100    256
ecx            0x0      0
edx            0xe      14
ebx            0x82dde18        137223704
esp            0xbfffdd00       0xbfffdd00
ebp            0xbfffdd28       0xbfffdd28
esi            0xff     255
edi            0x0      0
eip            0x824a0b0        0x824a0b0
eflags         0x10206  66054
cs             0x23     35
ss             0x2b     43
ds             0x2b     43
es             0x2b     43
fs             0x0      0
gs             0x7      7
st0            258.55999755859375       (raw 0x40078147ae0000000000)
st1            -nan(0x8080808080808080) (raw 0xffff8080808080808080)
st2            -nan(0x80008000800080)   (raw 0xffff0080008000800080)
st3            -nan(0x8080808080808080) (raw 0xffff8080808080808080)
st4            -nan(0x80008000800080)   (raw 0xffff0080008000800080)
st5            -nan(0x8080808080808080) (raw 0xffff8080808080808080)
st6            -nan(0x80008000800080)   (raw 0xffff0080008000800080)
---Type <return> to continue, or q <return> to quit---
st7            0.14804199962622988095972687005996704    (raw
0x3ffc9798526b51000000)
fctrl          0x37f    895
fstat          0x3920   14624
ftag           0x3fff   16383
fiseg          0x23     35
fioff          0x824a0ad        136618157
foseg          0x2b     43
fooff          0xbfffdd30       -1073750736
fop            0x145    325
(gdb) quit
The program is running.  Exit anyway? (y or n) y
$





More information about the MPlayer-users mailing list