[Mplayer-advusers] [BUG] segfault with some mpg with main-cvs - not with 090-cvs

Pierre Lombard p_l at gmx.fr
Thu May 22 15:34:18 CEST 2003


Hi,

* Arpi <arpi at 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



More information about the MPlayer-advusers mailing list