[MPlayer-users] BUG: mencoder of pre5 crashes everytime

Stefan Sassenberg stefan.sassenberg at gmx.de
Mon Jul 26 13:31:47 CEST 2004


Hello,

I'm currently incapable of recording anything with mencoder of the 
current release 1.0pre5. It#s not always at the same point, but after an 
average of about 10 minutes, I get a segmentation fault. To provide 
useful debugging information I rebuilt the release with the debug option 
and did as described in the manual:

Pos: 954.6s  23865f (12%)  35fps Trem:  78min 2194mb  A-V:0.040 
[1996:448] A/Vms 0/27 D/B/S 0/1/0
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 6598)]
0x082e8fff in sad16_y2_mmx2 (v=0x0,
     blk2=0x415a2250 
"¢£¢¢¡¢£££¢¢£¥¥£¤¦¥¤£¢£¢\237\236 ¢£££¤¥¥¦¥¤¤¥¨©¦§¦¦¥¦¨ª¨©¨ª©©ª©§¨ª«©§§¨§¨¨¨§¦¥¥§§ª©©¨§§ª«¬¬ª©©©­­­«¬¬­¬®¬¬¬®®°±²±±±±±²±´³²³µµ¶····¶¶¸¸¸º¹¹¹¹ººº»º¼¼½½¼¼¾¾½½¾¾¾¾¿¿¿¿¿¿ÀÀÁÁÃÃÃÃÂÂÁÂÂÂÂÂÂÂÃÄÆÄÆÆÆÆÆÅÅÅÇÇÇÇÅÄÄÄÄÄÄÄ"..., 

     blk1=0x41531f50 
"¢££¤¥¦¦§¦¦§¨¨§§¨¥¦¤¤£¤¤¤¡   \237\236\237¡£¦§ªª§¨§¨©©©­¯±³ª«¬«««««¬¬¬¬¬¬­­¬­­¬¬¬­®²²²±±±±²¦¦¦¦§©©ª¨¨¨¨¨¨ª«««¬­­­¬¬®¯¯°±±²³±±³´µ´¶¹··¸¸··¸¹ºººº»¼½½½½½½½½½¾¾¾¿¿¿¿¿¿À¿¿¿ÀÀ¿¿¿¾¿À¿¾¿¿¾½½½¾¿¿¿¿ÁÁÂÂÂÂÂÂÂÂÂÂÃÅÅÄÃÄÄÂÃÃÃ"..., 

     stride=752, h=16) at i386/motion_est_mmx.c:93
93          asm volatile(
(gdb) bt
#0  0x082e8fff in sad16_y2_mmx2 (v=0x0,
     blk2=0x415a2250 
"¢£¢¢¡¢£££¢¢£¥¥£¤¦¥¤£¢£¢\237\236 ¢£££¤¥¥¦¥¤¤¥¨©¦§¦¦¥¦¨ª¨©¨ª©©ª©§¨ª«©§§¨§¨¨¨§¦¥¥§§ª©©¨§§ª«¬¬ª©©©­­­«¬¬­¬®¬¬¬®®°±²±±±±±²±´³²³µµ¶····¶¶¸¸¸º¹¹¹¹ººº»º¼¼½½¼¼¾¾½½¾¾¾¾¿¿¿¿¿¿ÀÀÁÁÃÃÃÃÂÂÁÂÂÂÂÂÂÂÃÄÆÄÆÆÆÆÆÅÅÅÇÇÇÇÅÄÄÄÄÄÄÄ"..., 

     blk1=0x41531f50 
"¢££¤¥¦¦§¦¦§¨¨§§¨¥¦¤¤£¤¤¤¡   \237\236\237¡£¦§ªª§¨§¨©©©­¯±³ª«¬«««««¬¬¬¬¬¬­­¬­­¬¬¬­®²²²±±±±²¦¦¦¦§©©ª¨¨¨¨¨¨ª«««¬­­­¬¬®¯¯°±±²³±±³´µ´¶¹··¸¸··¸¹ºººº»¼½½½½½½½½½¾¾¾¿¿¿¿¿¿À¿¿¿ÀÀ¿¿¿¾¿À¿¾¿¿¾½½½¾¿¿¿¿ÁÁÂÂÂÂÂÂÂÂÂÂÃÅÅÄÃÄÄÂÃÃÃ"..., 

     stride=752, h=16) at i386/motion_est_mmx.c:93
#1  0x08232278 in sad_hpel_motion_search (s=0x84f2900, mx_ptr=0xbfffdde8,
     my_ptr=0xbfffddec, dmin=632, src_index=-1073750847, 
ref_index=1096438096,
     size=0, h=16) at motion_est.c:613
#2  0x0823968f in ff_estimate_p_frame_motion (s=0x84f2900, mb_x=1, mb_y=29)
     at motion_est.c:1308
#3  0x081b4a9b in estimate_motion_thread (c=0x84a2130, arg=0x84f2900)
     at mpegvideo.c:4027
#4  0x081a8038 in avcodec_default_execute (c=0x84a2130,
     func=0x81b4a10 <estimate_motion_thread>, arg=0x84f29c4, ret=0x0, 
count=1)
     at utils.c:342
#5  0x081b5358 in MPV_encode_picture (avctx=0x84a2130, buf=0x40bb4008 "",
     buf_size=2097152, data=0x84a2050) at mpegvideo.c:4724
#6  0x081a83dc in avcodec_encode_video (avctx=0x84a2130,
     buf=0xbfffdcc1 "\"SAzzzzzzzzð\002", buf_size=-1073750847, 
pict=0x84a2050)
     at utils.c:478
#7  0x0808facf in put_image (vf=0x84a2000, mpi=0x415a5150) at ve_lavc.c:775
#8  0x08099163 in decode_video (sh_video=0x848b708,
     start=0xbfffdcc1 "\"SAzzzzzzzzð\002", in_size=-1073750847, 
drop_frame=0)
     at dec_video.c:332
#9  0x080688f4 in main (argc=-1073750847, argv=0xbfffdcc1) at 
mencoder.c:1303
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x82e8fdf to 0x82e901f:
0x082e8fdf <sad16_y2_mmx2+79>:  add    %cl,(%edi)
0x082e8fe1 <sad16_y2_mmx2+81>:  outsl  %ds:(%esi),(%dx)
0x082e8fe2 <sad16_y2_mmx2+82>:  add    $0x7,%al
0x082e8fe4 <sad16_y2_mmx2+84>:  movq   (%edx,%eax,1),%mm2
0x082e8fe8 <sad16_y2_mmx2+88>:  pavgb  %mm2,%mm0
0x082e8feb <sad16_y2_mmx2+91>:  movq   (%ecx,%eax,1),%mm2
0x082e8fef <sad16_y2_mmx2+95>:  psadbw %mm2,%mm0
0x082e8ff2 <sad16_y2_mmx2+98>:  add    %esi,%eax
0x082e8ff4 <sad16_y2_mmx2+100>: movq   (%edi,%eax,1),%mm1
0x082e8ff8 <sad16_y2_mmx2+104>: movq   (%edx,%eax,1),%mm3
0x082e8ffc <sad16_y2_mmx2+108>: pavgb  %mm1,%mm3
0x082e8fff <sad16_y2_mmx2+111>: movq   (%ecx,%eax,1),%mm1
0x082e9003 <sad16_y2_mmx2+115>: psadbw %mm1,%mm3
0x082e9006 <sad16_y2_mmx2+118>: paddw  %mm3,%mm0
0x082e9009 <sad16_y2_mmx2+121>: paddw  %mm0,%mm6
0x082e900c <sad16_y2_mmx2+124>: add    %esi,%eax
0x082e900e <sad16_y2_mmx2+126>: js     0x82e8fe0 <sad16_y2_mmx2+80>
0x082e9010 <sad16_y2_mmx2+128>: mov    0x10(%ebp),%edi
0x082e9013 <sad16_y2_mmx2+131>: mov    0xffffffe8(%ebp),%edx
0x082e9016 <sad16_y2_mmx2+134>: mov    %ebx,%eax
0x082e9018 <sad16_y2_mmx2+136>: neg    %eax
0x082e901a <sad16_y2_mmx2+138>: lea    0x8(%edi,%ebx,1),%ecx
0x082e901e <sad16_y2_mmx2+142>: mov    0xc(%ebp),%edi
End of assembler dump.
(gdb) info all-registers
eax            0xbfffdcc1       -1073750847
ecx            0x415a5150       1096438096
edx            0x41535140       1095979328
ebx            0x2f00   12032
esp            0xbfffdcc1       0xbfffdcc1
ebp            0xbfffdcd8       0xbfffdcd8
esi            0x2f0    752
edi            0x41534e50       1095978576
eip            0x82e8fff        0x82e8fff
eflags         0x10282  66178
cs             0x23     35
ss             0x2b     43
ds             0x2b     43
es             0x2b     43
fs             0x0      0
gs             0x7      7
st0            -nan(0xb2b1b1b0b0b0b0b1) (raw 0xffffb2b1b1b0b0b0b0b1)
st1            -nan(0xb1b0b0afafafafb0) (raw 0xffffb1b0b0afafafafb0)
st2            -nan(0xb0b0b1b1b2b1b2b2) (raw 0xffffb0b0b1b1b2b1b2b2)
st3            -nan(0x595858585858585d) (raw 0xffff595858585858585d)
st4            -nan(0x1100000002)       (raw 0xffff0000001100000002)
st5            -nan(0x1000100010001)    (raw 0xffff0001000100010001)
st6            -0e+4922 (raw 0xffff0000000000000000)
st7            -0e+4922 (raw 0xffff0000000000000000)
fctrl          0x37f    895
fstat          0x420    1056
ftag           0xaaaa   43690
fiseg          0x0      0
fioff          0x0      0
foseg          0x0      0
fooff          0x0      0
fop            0x0      0
xmm0           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
     0x8000000000000000, 0x8000000000000000}, v16_int8 = {
     0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
     0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff,
     0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff,
     0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
xmm1           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
     0x8000000000000000, 0x8000000000000000}, v16_int8 = {
     0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
     0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff,
     0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff,
     0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
xmm2           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
     0x8000000000000000, 0x8000000000000000}, v16_int8 = {
     0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
     0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff,
     0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff,
     0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
xmm3           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
     0x8000000000000000, 0x8000000000000000}, v16_int8 = {
     0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
     0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff,
     0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff,
     0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
xmm4           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
     0x8000000000000000, 0x8000000000000000}, v16_int8 = {
     0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
     0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff,
     0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff,
     0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
xmm5           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
     0x8000000000000000, 0x8000000000000000}, v16_int8 = {
     0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
     0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff,
     0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff,
     0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
xmm6           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
     0x8000000000000000, 0x8000000000000000}, v16_int8 = {
     0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
     0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff,
     0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff,
     0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
xmm7           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
     0x8000000000000000, 0x8000000000000000}, v16_int8 = {
     0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
     0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff,
     0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff,
     0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
mxcsr          0x1f80   8064
mm0            {uint64 = 0xb2b1b1b0b0b0b0b1, v2_int32 = {0xb0b0b0b1,
     0xb2b1b1b0}, v4_int16 = {0xb0b1, 0xb0b0, 0xb1b0, 0xb2b1}, v8_int8 = 
{0xb1,
     0xb0, 0xb0, 0xb0, 0xb0, 0xb1, 0xb1, 0xb2}}
mm1            {uint64 = 0xb1b0b0afafafafb0, v2_int32 = {0xafafafb0,
     0xb1b0b0af}, v4_int16 = {0xafb0, 0xafaf, 0xb0af, 0xb1b0}, v8_int8 = 
{0xb0,
     0xaf, 0xaf, 0xaf, 0xaf, 0xb0, 0xb0, 0xb1}}
mm2            {uint64 = 0xb0b0b1b1b2b1b2b2, v2_int32 = {0xb2b1b2b2,
     0xb0b0b1b1}, v4_int16 = {0xb2b2, 0xb2b1, 0xb1b1, 0xb0b0}, v8_int8 = 
{0xb2,
     0xb2, 0xb1, 0xb2, 0xb1, 0xb1, 0xb0, 0xb0}}
mm3            {uint64 = 0x595858585858585d, v2_int32 = {0x5858585d,
     0x59585858}, v4_int16 = {0x585d, 0x5858, 0x5858, 0x5958}, v8_int8 = 
{0x5d,
     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x59}}
mm4            {uint64 = 0x1100000002, v2_int32 = {0x2, 0x11}, v4_int16 = {
     0x2, 0x0, 0x11, 0x0}, v8_int8 = {0x2, 0x0, 0x0, 0x0, 0x11, 0x0, 
0x0, 0x0}}
mm5            {uint64 = 0x1000100010001, v2_int32 = {0x10001, 0x10001},
   v4_int16 = {0x1, 0x1, 0x1, 0x1}, v8_int8 = {0x1, 0x0, 0x1, 0x0, 0x1, 
0x0,
     0x1, 0x0}}
mm6            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0,
     0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm7            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0,
     0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}

My system is an athlon 2100+, kernel is 2.4.21-144-athlon.
Linux distribution is Suse 9.0
gcc is 3.4.1

Any help is highly appreciated because I'm recording most of my stuff 
from tv and so most of the program I cannot record is simply lost.

Regards

Stefan




More information about the MPlayer-users mailing list