[BUG] segfault with some mpg with main-cvs - not with 090-cvs
Hi, I've uploaded to mplayerhq ftp two mpg samples that crash mplayer main cvs but they work with the 0.90 branch: seg11_with_mpcvs-ok_with_090.mpg (1) seg11_with_mplayercvs_ok_with_mplayer090.mpg (2) I've tried several compilation options, the distro is a debian sid. If it can't be reproduced, please tell me, I'll submit a proper bugreport. (1) I've not the sample underhand right now but I'll send the backtrace if the crash can't be reproduced. (2) 0x0811150b in mpeg2_set_buf (mpeg2dec=0x846d800, buf=0x8458738, id=0x8458718) at decode.c:383 383 if (mpeg2dec->custom_fbuf && !mpeg2dec->fbuf[1]->buf[0]){ (gdb) bt #0 0x0811150b in mpeg2_set_buf (mpeg2dec=0x846d800, buf=0x8458738, id=0x8458718) at decode.c:383 #1 0x080d3624 in decode (sh=0x8436e70, data=0x8458738, len=138860544, flags=0) at vd_libmpeg2.c:143 #2 0x080caec3 in decode_video (sh_video=0x8436e70, start=0x8458718 "\003Ã\004\fYV12`\001", in_size=138774296, drop_frame=0) at dec_video.c:304 #3 0x0808a744 in main (argc=2, argv=0xbffff924) at mplayer.c:1971 (gdb) p mpeg2dec->fbuf[1] $1 = (fbuf_t *) 0x0 -- Best regards, Pierre
Hi,
Hi,
I've uploaded to mplayerhq ftp two mpg samples that crash mplayer main cvs but they work with the 0.90 branch:
seg11_with_mpcvs-ok_with_090.mpg (1) seg11_with_mplayercvs_ok_with_mplayer090.mpg (2)
try this (from mplayer-g2): --- decode.c.x Sun Apr 6 18:42:15 2003 +++ decode.c Thu May 22 00:08:52 2003 @@ -385,6 +385,10 @@ mpeg2dec->fbuf[1]->buf[1]=buf[1]; mpeg2dec->fbuf[1]->buf[2]=buf[2]; mpeg2dec->fbuf[1]->id=NULL; + mpeg2dec->fbuf[2]->buf[0]=buf[0]; + mpeg2dec->fbuf[2]->buf[1]=buf[1]; + mpeg2dec->fbuf[2]->buf[2]=buf[2]; + mpeg2dec->fbuf[2]->id=NULL; } // printf("libmpeg2: FBUF 0:%p 1:%p 2:%p\n", // mpeg2dec->fbuf[0]->buf[0],mpeg2dec->fbuf[1]->buf[0],mpeg2dec->fbuf[2]->buf[0]); A'rpi / Astral & ESP-team -- Developer of MPlayer G2, the Movie Framework for all - http://www.MPlayerHQ.hu
Hi, * Arpi <arpi@thot.banki.hu> [2003-05-22 00:14]:
I've uploaded to mplayerhq ftp two mpg samples that crash mplayer main cvs but they work with the 0.90 branch:
seg11_with_mpcvs-ok_with_090.mpg (1)
#0 0x403da1de in _int_malloc (av=0x4047dc20, bytes=101028377) at malloc.c:4071 4071 malloc.c: No such file or directory. in malloc.c (gdb) bt #0 0x403da1de in _int_malloc (av=0x4047dc20, bytes=101028377) at malloc.c:4071 #1 0x403da8a3 in _int_memalign (av=0x4047dc20, alignment=64, bytes=138478872) at malloc.c:4639 #2 0x403d951c in __libc_memalign (alignment=64, bytes=29280) at malloc.c:3443 #3 0x080b29d9 in vf_get_image (vf=0x84010a8, outfmt=842094169, mp_imgtype=4, mp_imgflag=3, w=160, h=120) at vf.c:276 #4 0x080a6631 in mpcodecs_get_image (sh=0x83fdcf0, mp_imgtype=4, mp_imgflag=3, w=160, h=120) at vd.c:337 #5 0x080ad4c1 in decode (sh=0x83fdcf0, data=0x40ce6008, len=456, flags=0) at vd_libmpeg2.c:134 #6 0x080a5dd6 in decode_video (sh_video=0x83fdcf0, start=0x40ce6008 "", in_size=456, drop_frame=0) at dec_video.c:304 #7 0x0806b4c6 in main (argc=3, argv=0xbffff934) at mplayer.c:1971 (with libc-debug in LD_LIBRARY_PATH)
seg11_with_mplayercvs_ok_with_mplayer090.mpg (2)
try this (from mplayer-g2):
--- decode.c.x Sun Apr 6 18:42:15 2003 +++ decode.c Thu May 22 00:08:52 2003 @@ -385,6 +385,10 @@ mpeg2dec->fbuf[1]->buf[1]=buf[1]; mpeg2dec->fbuf[1]->buf[2]=buf[2]; mpeg2dec->fbuf[1]->id=NULL; + mpeg2dec->fbuf[2]->buf[0]=buf[0]; + mpeg2dec->fbuf[2]->buf[1]=buf[1]; + mpeg2dec->fbuf[2]->buf[2]=buf[2]; + mpeg2dec->fbuf[2]->id=NULL; } // printf("libmpeg2: FBUF 0:%p 1:%p 2:%p\n", // mpeg2dec->fbuf[0]->buf[0],mpeg2dec->fbuf[1]->buf[0],mpeg2dec->fbuf[2]->buf[0]);
No improvement for any of the two files :( Btw, gcc 3.3 or 2.95 does not seem to change any behavior. -- Best regards, Pierre
participants (2)
-
Arpi -
Pierre Lombard