[MPlayer-dev-eng] [BUG] in postProcess_3DNow

Gabucino gabucino at mplayerhq.hu
Sun Nov 17 21:58:45 CET 2002


Well, you can find all info in the output following (if not, tell me). I've
never seen this bug before :(

MPlayer CVS-021116-13:08-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS)

CPU: Advanced Micro Devices K6-2 (Family: 5, Stepping: 12)
CPUflags:  MMX: 1 MMX2: 0 3DNow: 1 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with RUNTIME CPU Detection - warning, it's not optimal! To get best performance, recompile MPlayer with --disable-runtime-cpudetection
/home/gabucino/.mplayer/config(2): option: vo
/home/gabucino/.mplayer/config(2): parameter: xmga,xv
/home/gabucino/.mplayer/config(4): option: vop
/home/gabucino/.mplayer/config(4): parameter: pp
/home/gabucino/.mplayer/config(5): option: autoq
/home/gabucino/.mplayer/config(5): parameter: 100
/home/gabucino/.mplayer/config(7): option: fs
/home/gabucino/.mplayer/config(7): parameter: igen
/home/gabucino/.mplayer/config(10): option: osdlevel
/home/gabucino/.mplayer/config(10): parameter: 1
/home/gabucino/.mplayer/config(11): option: framedrop
/home/gabucino/.mplayer/config(11): parameter: igen
/home/gabucino/.mplayer/config(14): option: cache
/home/gabucino/.mplayer/config(14): parameter: 1024
/home/gabucino/.mplayer/config(16): option: nortc
/home/gabucino/.mplayer/config(16): parameter: yes
Reading /home/gabucino/.mplayer/codecs.conf: 44 audio & 110 video codecs
font: can't open file: /home/gabucino/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using usleep() timing
Could not access the 'termcap' data base.
Input config file /home/gabucino/.mplayer/input.conf parsed : 51 binds

Playing /home/gabucino/stuff/pictures/people/100-0014_IMG.JPG
Cache fill:  0.00% (0 bytes)    forced mf.
[demuxer] mf support.
[mf] search expr: /home/gabucino/stuff/pictures/people/100-0014_IMG.JPG*
[mf] number of files: 1 (4)
open: No such device
vo_mga: Couldn't open /dev/mga_vid
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Create window for WM detect ...
[x11] Unknown wm type...
Opening video filter: [pp]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm:ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
[PP] Using external postprocessing filter, max q = 6
Audio: no sound!!!
Start playing...
VDec: vo config request - 1600 x 1200 (preferred csp: Planar 422P)
[PP] Using external postprocessing filter, max q = 6
VDec: using Planar YV12 as output csp (no 3)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 1600x1200 => 1600x1200 Planar YV12  [fs]
aspect: Warning: no suitable new res found!
aspect: Warning: no suitable new res found!
aspect: Warning: no suitable new res found!
VDec: vo config request - 160 x 120 (preferred csp: Planar 422P)
[PP] Using external postprocessing filter, max q = 6
VDec: using Planar YV12 as output csp (no 3)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 160x120 => 160x120 Planar YV12  [fs]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 4321)]
0x8150e66 in postProcess_3DNow (
    src=0x83c7d90 "UPS_gd`\231\231\225\231 \230\224 \233\232\231\230\230\230\230\231\231\232\230\221\202mYL?=82.2:A;=@CGKNOZ]bhov{~\201\205\207\207\215\226\230\225\224\224\226\230\234\237˘¤ĽŚ§¨ŠŞŤŹŽŽŽŻ°°ąąłłł´´´ľľ´ł´ś \233iZUV4 at X;0CSQOPRQLH\eC\\W\\l^=P7L< &\"' &*,./)!\034'%!*01822222222VQS_gea
221\232\231\230\235\231\226\237\233\232\231\231\230\230\231\231\231\233\235\236\233\225\216\211\201\177{vsv}\202"..., srcStride=160, 
    dst=0x426be040 "\\[WUVSPQOPRPSRRPPOKIHHLRVZ]^`^\\][[\\][ZZZXWWY[ZYY]_accfddfca_]YZ[]]]YWWVUUVUcv\206\216\216\216\217\216\216\216\217\216\217\216\216\221\220\220\220\220\221\220\220\221\220\220\217\220\217\217\223\221\216\220\220\217\222\221\222\222\222\222\221\221\221\221\221\221\221\220\221\221\222\223\222\222\221\222\222\222\222\222\222\221\216\217\216\216\217\217\217\221\217\216\216\220\224\226\220\222\222\222\222\222\222\222\222\222\221\221\222\223\216\216\214\216\217\217\220\221\216\217\222\221\220\216\217\216\216\220\217\217\220\217\217\217\216\222\220\216\220\220\221\220"..., dstStride=1600, width=1600, height=1200, 
    QPs=0xbfffe3cc '\001' <repeats 200 times>..., QPStride=0, isColor=0, 
    c2=0x83c7360) at postprocess_template.c:2707
---Type <return> to continue, or q <return> to quit---
2707                            sum+= yHistogram[i];
(gdb) bt
#0  0x8150e66 in postProcess_3DNow (
    src=0x83c7d90 "UPS_gd`\231\231\225\231 \230\224 \233\232\231\230\230\230\230\231\231\232\230\221\202mYL?=82.2:A;=@CGKNOZ]bhov{~\201\205\207\207\215\226\230\225\224\224\226\230\234\237˘¤ĽŚ§¨ŠŞŤŹŽŽŽŻ°°ąąłłł´´´ľľ´ł´ś \233iZUV4 at X;0CSQOPRQLH\eC\\W\\l^=P7L< &\"' &*,./)!\034'%!*01822222222VQS_gea
221\232\231\230\235\231\226\237\233\232\231\231\230\230\231\231\231\233\235\236\233\225\216\211\201\177{vsv}\202"..., srcStride=160, 
    dst=0x426be040 "\\[WUVSPQOPRPSRRPPOKIHHLRVZ]^`^\\][[\\][ZZZXWWY[ZYY]_accfddfca_]YZ[]]]YWWVUUVUcv\206\216\216\216\217\216\216\216\217\216\217\216\216\221\220\220\220\220\221\220\220\221\220\220\217\220\217\217\223\221\216\220\220\217\222\221\222\222\222\222\221\221\221\221\221\221\221\220\221\221\222\223\222\222\221\222\222\222\222\222\222\221\216\217\216\216\217\217\217\221\217\216\216\220\224\226\220\222\222\222\222\222\222\222\222\222\221\221\222\223\216\216\214\216\217\217\220\221\216\217\222\221\220\216\217\216\216\220\217\217\220\217\217\217\216\222\220\216\220\220\221\220"..., dstStride=1600, width=1600, height=1200, 
    QPs=0xbfffe3cc '\001' <repeats 200 times>..., QPStride=0, isColor=0, 
    c2=0x83c7360) at postprocess_template.c:2707
#1  0x8155555 in pp_postprocess (src=0x8388038, srcStride=0x8388048, 
    dst=0x83ba0d8, dstStride=0x83ba0e8, width=1600, height=1200, 
    QP_store=0xbfffe3cc '\001' <repeats 200 times>..., QPStride=0, 
    vm=0x8384210, vc=0x83c7360, pict_type=0) at postprocess.c:461
#2  0x80be497 in put_image (vf=0x8383fc0, mpi=0x8388018) at vf_pp.c:113
#3  0x80b1240 in decode_video (sh_video=0x8384068, 
---Type <return> to continue, or q <return> to quit---
    start=0x4130d008 "˙Ř˙á\035ţExif", in_size=909777, drop_frame=0)
    at dec_video.c:329
#4  0x806a914 in main (argc=6, argv=0xbffff7e4) at mplayer.c:1579
#5  0x40bea906 in __libc_start_main () from /lib/libc.so.6
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x8150e46 to 0x8150e86:
0x8150e46 <postProcess_3DNow+662>:      mov    %edx,0xfffffc90(%ebp)
0x8150e4c <postProcess_3DNow+668>:      andl   $0x8,0xfffffc90(%ebp)
0x8150e53 <postProcess_3DNow+675>:      mov    %ebx,0xfffffcb4(%ebp)
0x8150e59 <postProcess_3DNow+681>:      lea    0x0(%esi,1),%esi
0x8150e60 <postProcess_3DNow+688>:      mov    0xfffffd24(%ebp),%esi
0x8150e66 <postProcess_3DNow+694>:      mov    (%esi,%eax,8),%edi
0x8150e69 <postProcess_3DNow+697>:      add    %edi,0xfffffc70(%ebp)
0x8150e6f <postProcess_3DNow+703>:      mov    0x4(%esi,%eax,8),%edi
0x8150e73 <postProcess_3DNow+707>:      adc    %edi,0xfffffc74(%ebp)
0x8150e79 <postProcess_3DNow+713>:      inc    %eax
0x8150e7a <postProcess_3DNow+714>:      cmp    $0xff,%eax
0x8150e7f <postProcess_3DNow+719>:      
    jle    0x8150e60 <postProcess_3DNow+688>
0x8150e81 <postProcess_3DNow+721>:      fildll 0xfffffc70(%ebp)
End of assembler dump.
(gdb) info all-registers
eax            0x0      0
ecx            0x5      5
edx            0xf      15
ebx            0x1f40   8000
esp            0xbfffdf84       0xbfffdf84
ebp            0xbfffe34c       0xbfffe34c
esi            0x1010101        16843009
edi            0x100    256
eip            0x8150e66        0x8150e66
eflags         0x10202  66050
cs             0x23     35
ss             0x2b     43
ds             0x2b     43
es             0x2b     43
fs             0x0      0
gs             0x7      7
st0            -NaN(0x8287867d787b8081) (raw 0xffff8287867d787b8081)
st1            nan      (raw 0xffff008200870086007d)
st2            nan      (raw 0xffff7980817b787c8182)
st3            nan      (raw 0xffff007900800081007b)
st4            nan      (raw 0xffff787e807b797e8587)
st5            768      (raw 0x4008c000000000000000)
st6            0        (raw 0x00000000000000000000)
st7            0.022168999944028655590955168008804321   (raw 0x3ff9b59bc337d4000000)
fctrl          0x37f    895
fstat          0x120    288
ftag           0xffff   65535
fiseg          0x23     35
fioff          0x80b1218        134943256
foseg          0x2b     43
fooff          0x80d0120        135069984
fop            0x51d    1309
(gdb) 


Same JPEG, with -vop 1bpp,noise=10uth, different error and second loop
produces blurred (!!) picture, then the whole thing dies:

MPlayer CVS-021116-13:08-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS)

CPU: Advanced Micro Devices K6-2 (Family: 5, Stepping: 12)
CPUflags:  MMX: 1 MMX2: 0 3DNow: 1 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with RUNTIME CPU Detection - warning, it's not optimal! To get best performance, recompile MPlayer with --disable-runtime-cpudetection
/home/gabucino/.mplayer/config(2): option: vo
/home/gabucino/.mplayer/config(2): parameter: xmga,xv
/home/gabucino/.mplayer/config(4): option: vop
/home/gabucino/.mplayer/config(4): parameter: pp
/home/gabucino/.mplayer/config(5): option: autoq
/home/gabucino/.mplayer/config(5): parameter: 100
/home/gabucino/.mplayer/config(7): option: fs
/home/gabucino/.mplayer/config(7): parameter: igen
/home/gabucino/.mplayer/config(10): option: osdlevel
/home/gabucino/.mplayer/config(10): parameter: 1
/home/gabucino/.mplayer/config(11): option: framedrop
/home/gabucino/.mplayer/config(11): parameter: igen
/home/gabucino/.mplayer/config(14): option: cache
/home/gabucino/.mplayer/config(14): parameter: 1024
/home/gabucino/.mplayer/config(16): option: nortc
/home/gabucino/.mplayer/config(16): parameter: yes
Reading /home/gabucino/.mplayer/codecs.conf: 44 audio & 110 video codecs
font: can't open file: /home/gabucino/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using usleep() timing
Could not access the 'termcap' data base.
Input config file /home/gabucino/.mplayer/input.conf parsed : 51 binds

Playing stuff/pictures/people/100-0014_IMG.JPG
Cache fill:  0.00% (0 bytes)    forced mf.
[demuxer] mf support.
[mf] search expr: stuff/pictures/people/100-0014_IMG.JPG*
[mf] number of files: 1 (4)
open: No such device
vo_mga: Couldn't open /dev/mga_vid
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Create window for WM detect ...
[x11] Unknown wm type...
Xv: could not grab port 85
Opening video filter: [1bpp]
Opening video filter: [noise=10uth]
Opening video filter: [scale]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm:ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
Audio: no sound!!!
Start playing...
VDec: vo config request - 1600 x 1200 (preferred csp: Planar 422P)
VDec: using Planar YV12 as output csp (no 3)
Movie-Aspect is undefined - no prescaling applied.
Cannot init MMX colorspace transform
No accelerated colorspace conversion found
SwScaler: using unscaled Planar YV12 -> BGR 1-bit special converter
VO: [xv] 1600x1200 => 1600x1200 Planar YV12  [fs]
aspect: Warning: no suitable new res found!
aspect: Warning: no suitable new res found!
aspect: Warning: no suitable new res found!
VDec: vo config request - 160 x 120 (preferred csp: Planar 422P)
VDec: using Planar YV12 as output csp (no 3)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 1600x1200 => 1600x1200 Planar YV12  [fs]
aspect: Warning: no suitable new res found!
aspect: Warning: no suitable new res found!
V:   0.0    2   0%  0%  0.0% 0 0 0%
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 4419)]
0x40c48110 in memset () from /lib/libc.so.6
(gdb) bt
#0  0x40c48110 in memset () from /lib/libc.so.6
#1  0x8385ac8 in ?? ()
#2  0x80bc9d0 in vf_get_image (vf=0x83847c8, outfmt=842094169, mp_imgtype=2, 
    mp_imgflag=16, w=160, h=120) at vf.c:249
#3  0x80c1ddf in put_image (vf=0x8384f00, mpi=0x8385a60) at vf_noise.c:342
#4  0x80b1240 in decode_video (sh_video=0x8384068, 
    start=0x4130d008 "˙Ř˙á\035ţExif", in_size=909777, drop_frame=0)
    at dec_video.c:329
#5  0x806a914 in main (argc=8, argv=0xbffff7d4) at mplayer.c:1579
#6  0x40bea906 in __libc_start_main () from /lib/libc.so.6
(gdb) disass $pc-32 $pc+32   
Dump of assembler code from 0x40c480f0 to 0x40c48130:
0x40c480f0 <memset+16>: rol    $0xe0,%ecx
0x40c480f3 <memset+19>: adc    %ah,0xffffff89(%esi)
0x40c480f6 <memset+22>: enter  $0x83fc,$0xfa
0x40c480fa <memset+26>: and    $0x89,%al
0x40c480fc <memset+28>: sarl   0xffffff89(%edi,%esi,1)
0x40c48100 <memset+32>: stc    
0x40c48101 <memset+33>: neg    %ecx
0x40c48103 <memset+35>: and    $0x3,%ecx
0x40c48106 <memset+38>: sub    %ecx,%edx
0x40c48108 <memset+40>: repz stos %al,%es:(%edi)
0x40c4810a <memset+42>: sub    $0x20,%edx
0x40c4810d <memset+45>: mov    (%edi),%ecx
0x40c4810f <memset+47>: nop    
0x40c48110 <memset+48>: mov    0x1c(%edi),%ecx
0x40c48113 <memset+51>: sub    $0x20,%edx
0x40c48116 <memset+54>: mov    %eax,0x0(%edi)
0x40c48119 <memset+57>: mov    %eax,0x4(%edi)
0x40c4811c <memset+60>: mov    %eax,0x8(%edi)
0x40c4811f <memset+63>: mov    %eax,0xc(%edi)
0x40c48122 <memset+66>: mov    %eax,0x10(%edi)
0x40c48125 <memset+69>: mov    %eax,0x14(%edi)
0x40c48128 <memset+72>: mov    %eax,0x18(%edi)
0x40c4812b <memset+75>: mov    %eax,0x1c(%edi)
0x40c4812e <memset+78>: lea    0x20(%edi),%edi
End of assembler dump.
(gdb) info all-registers
eax            0x0      0
ecx            0x0      0
edx            0x24d60  150880
ebx            0x50     80
esp            0xbfffe44c       0xbfffe44c
ebp            0xbfffe47c       0xbfffe47c
esi            0x8385ac8        137910984
edi            0x8401000        138416128
eip            0x40c48110       0x40c48110
eflags         0x10206  66054
cs             0x23     35
ss             0x2b     43
ds             0x2b     43
es             0x2b     43
fs             0x0      0
gs             0x7      7
st0            -NaN(0xff00ff00ff000000) (raw 0xffffff00ff00ff000000)
st1            -NaN(0xff00ff00ff000000) (raw 0xffffff00ff00ff000000)
st2            -NaN(0xff00ff00ff000000) (raw 0xffffff00ff00ff000000)
st3            -NaN(0xff00ff00ff00ff00) (raw 0xffffff00ff00ff00ff00)
st4            -NaN(0xff00ff00ff000000) (raw 0xffffff00ff00ff000000)
st5            -NaN(0xff00ff00ff000000) (raw 0xffffff00ff00ff000000)
st6            0        (raw 0x00000000000000000000)
st7            0.0024109999939128101686947047710418701  (raw 0x3ff69e01de1fe0000000)
fctrl          0x37f    895
fstat          0x4020   16416
ftag           0xffff   65535
fiseg          0x23     35
fioff          0x80b1218        134943256
foseg          0x2b     43
fooff          0x80d0120        135069984
fop            0x51d    1309

-- 
Gabucino
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20021117/baf9b66f/attachment.pgp>


More information about the MPlayer-dev-eng mailing list