[MPlayer-users] mencoder crashes with sigsegv

Alexander Kogan alexander at kogan.nnov.ru
Tue Jan 21 08:40:39 CET 2003


Hi!

I have a problem with encoding MJPEG avi to mpeg4 WITH libavcodec. Mencoder 
crashes with sigsegv in the second pass.
The command line:
/home/common/sources/multimedia/Mplayer/main/mencoder -v as.avi -ovc lavc 
-lavcopts 
vcodec=mpeg4:vbitrate=3000:vhq:v4mv:vqmin=2:vlelim=-4:vcelim=9:lumi_mask=0.05:dark_mask=0.01:aspect=4/3:trell:vpass=2 
-vop pp=lb -oac copy -o 1.avi

GDB output:
(gdb) bt
#0  0x081fb8f7 in put_pixels16_mmx (
    block=0x8429180 
"\017\020\017\020\021\021\020\020\021\021\021\021\020\017\017\017\017\016\r\r\021\021\020\020",
    pixels=0x4090bef8 "", line_size=416, h=4) at i386/dsputil_mmx.c:379
#1  0x081cba3e in h263_mv4_search (s=0x8368340, xmin=-272, ymin=-576, 
xmax=128, ymax=16, mx=80, my=26, shift=1)
    at motion_est.c:892
#2  0x081b7f86 in ff_estimate_p_frame_motion (s=0x8368340, mb_x=16, mb_y=35) 
at motion_est.c:1086
#3  0x0816a4f6 in encode_picture (s=0x8368340, picture_number=1584) at 
mpegvideo.c:2834
#4  0x08168021 in MPV_encode_picture (avctx=0x80, buf=0x340 <Address 0x340 out
of bounds>, buf_size=832, data=0x340)
    at mpegvideo.c:1236
#5  0x08164f0a in avcodec_encode_video (avctx=0x8362e90, buf=0x340 <Address 
0x340 out of bounds>, buf_size=832,
    pict=0x340) at utils.c:279
#6  0x08086460 in put_image (vf=0x8362db8, mpi=0x1a0) at ve_lavc.c:485
#7  0x0809bfc9 in vf_next_put_image (vf=0x340, mpi=0x340) at vf.c:399
#8  0x0809bfc9 in vf_next_put_image (vf=0x340, mpi=0x340) at vf.c:399
#9  0x0808d7f1 in decode_video (sh_video=0x8347a48, start=0x340 <Address 0x340
out of bounds>, in_size=832, drop_frame=0)
    at dec_video.c:329
#10 0x0806369e in main (argc=832, argv=0x340) at mencoder.c:1087
(gdb)

(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x81fb8d7 to 0x81fb917:
0x81fb8d7 <put_pixels16_mmx+7>: sbb    $0x24,%al
0x81fb8d9 <put_pixels16_mmx+9>: mov    0x10(%ebp),%ecx
0x81fb8dc <put_pixels16_mmx+12>:        mov    0xc(%ebp),%ebx
0x81fb8df <put_pixels16_mmx+15>:        mov    %esi,0x4(%esp,1)
0x81fb8e3 <put_pixels16_mmx+19>:        mov    0x14(%ebp),%edx
0x81fb8e6 <put_pixels16_mmx+22>:        mov    0x8(%ebp),%esi
0x81fb8e9 <put_pixels16_mmx+25>:        lea    (%ecx,%ecx,1),%eax
0x81fb8ec <put_pixels16_mmx+28>:        lea    0x0(%esi,1),%esi
0x81fb8f0 <put_pixels16_mmx+32>:        movq   (%ebx),%mm0
0x81fb8f3 <put_pixels16_mmx+35>:        movq   0x8(%ebx),%mm4
0x81fb8f7 <put_pixels16_mmx+39>:        movq   (%ebx,%ecx,1),%mm1
0x81fb8fb <put_pixels16_mmx+43>:        movq   0x8(%ebx,%ecx,1),%mm5
0x81fb900 <put_pixels16_mmx+48>:        movq   %mm0,(%esi)
0x81fb903 <put_pixels16_mmx+51>:        movq   %mm4,0x8(%esi)
0x81fb907 <put_pixels16_mmx+55>:        movq   %mm1,(%esi,%ecx,1)
0x81fb90b <put_pixels16_mmx+59>:        movq   %mm5,0x8(%esi,%ecx,1)
0x81fb910 <put_pixels16_mmx+64>:        add    %eax,%ebx
0x81fb912 <put_pixels16_mmx+66>:        add    %eax,%esi
0x81fb914 <put_pixels16_mmx+68>:        movq   (%ebx),%mm0
End of assembler dump.
(gdb)

(gdb) info all-registers
eax            0x340    832
ecx            0x1a0    416
edx            0x4      4
ebx            0x4090bef8       1083227896
esp            0xbffe5560       0xbffe5560
ebp            0xbffe5568       0xbffe5568
esi            0x8429180        138580352
edi            0x8368340        137790272
eip            0x81fb8f7        0x81fb8f7
eflags         0x210202 2163202
cs             0x23     35
ss             0x2b     43
ds             0x2b     43
es             0x2b     43
fs             0x0      0
gs             0x0      0
st0            -0e+4922 (raw 0xffff0000000000000000)
st1            -0e+4922 (raw 0xffff0000000000000000)
st2            -nan(0x191a1b1b1d1e2022) (raw 0xffff191a1b1b1d1e2022)
st3            -nan(0x000000006)        (raw 0xffff0000000000000006)
st4            -0e+4922 (raw 0xffff0000000000000000)
st5            -0e+4922 (raw 0xffff0000000000000000)
st6            -nan(0x000000769)        (raw 0xffff0000000000000769)
st7            -0e+4922 (raw 0xffff0000000000000000)
fctrl          0x37f    895
fstat          0x120    288
ftag           0xaaaa   43690
fiseg          0x23     35
fioff          0x816a38e        135701390
foseg          0x2b     43
fooff          0x83690fc        137793788
fop            0x39b    923
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},
---Type <return> to continue, or q <return> to quit---
  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
orig_eax       0xffffffff       -1
mm0            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 
0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0}}
mm1            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 
0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0}}
mm2            {uint64 = 0x191a1b1b1d1e2022, v2_int32 = {0x1d1e2022, 
0x191a1b1b}, v4_int16 = {0x2022, 0x1d1e, 0x1b1b,
    0x191a}, v8_int8 = {0x22, 0x20, 0x1e, 0x1d, 0x1b, 0x1b, 0x1a, 0x19}}
mm3            {uint64 = 0x6, v2_int32 = {0x6, 0x0}, v4_int16 = {0x6, 0x0, 
0x0, 0x0}, v8_int8 = {0x6, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0}}
mm4            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 
0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0}}
mm5            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 
0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0}}
mm6            {uint64 = 0x769, v2_int32 = {0x769, 0x0}, v4_int16 = {0x769, 
0x0, 0x0, 0x0}, v8_int8 = {0x69, 0x7, 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}}
(gdb)

-- 
Alexander Kogan
AutoWave Processes Group
Institute of Applied Physics RAS



More information about the MPlayer-users mailing list