Comment 12 for bug 275565

Xtophe (xtophe) wrote :

regarding vlc_crash.mpg, it's a bug in libavcodec. ffplay crash also on it. (well very recent ffplay from svn doesn't really crash but get stuck)
Running a debug version of vlc yields:
*** glibc detected *** ./bin/vlc-static: free(): invalid pointer: 0xb2520020 ***
======= Backtrace: =========
/lib/i686/cmov/libc.so.6[0xb7c01624]
/lib/i686/cmov/libc.so.6(cfree+0x96)[0xb7c03826]
./modules/codec/avcodec/.libs/libavcodec_plugin.so(av_freep+0x16)[0xb4bd6f56]
/data/dev/videolan/vlc/linux/src/.libs/libvlccore.so.2(__module_unneed+0x2f)[0xb7e9a09f]
/data/dev/videolan/vlc/linux/src/.libs/libvlccore.so.2(input_DecoderDelete+0x95)[0xb7e4c625]

and gdb says:
#0 0xb7ef1424 in __kernel_vsyscall ()
#1 0xb7ba7640 in raise () from /lib/i686/cmov/libc.so.6
#2 0xb7ba9018 in abort () from /lib/i686/cmov/libc.so.6
#3 0xb7be434d in __libc_message () from /lib/i686/cmov/libc.so.6
#4 0xb7bea624 in malloc_printerr () from /lib/i686/cmov/libc.so.6
#5 0xb7bec826 in free () from /lib/i686/cmov/libc.so.6
#6 0xb7449f56 in av_freep (arg=0x9195198) at libavutil/mem.c:128
#7 0xb708ff11 in avcodec_default_free_buffers (s=0x91ad2c0)
    at libavcodec/utils.c:824
#8 0xb71c1c45 in ff_h263_decode_end (avctx=0x91ad2c0)
    at libavcodec/h263dec.c:126
#9 0xb70912f7 in avcodec_close (avctx=0x91ad2c0) at libavcodec/utils.c:575
#10 0xb7084eb9 in CloseDecoder (p_this=0x91a8428)
    at ../../../../modules/codec/avcodec/avcodec.c:315
#11 0xb7e8309f in __module_unneed (p_this=0x91a8428, p_module=0x9131bb0)
    at ../../src/modules/modules.c:681

(Can't comment on the youtube one as the video has been removed)