Reimar Döffinger <b...@reimardoeffinger.de> added the comment:

On Mon, Jun 01, 2009 at 09:30:15PM +0000, Baptiste Coudurier wrote:
> 
> Baptiste Coudurier <baptiste.coudur...@gmail.com> added the comment:
> 
> Attached valgrind output.

Huh? That doesn't show anything really wrong.
Which is also no surprise because it only ran for a few thousand frames,
but the crash actually happens around frame 29000.
Unfortunately the gdb backtrace is useless, since it points to a crash
in libc which is almost certainly due to heap corruption:

0x0000003a2be7bd6b in ?? () from /lib/libc.so.6
(gdb) bt
#0  0x0000003a2be7bd6b in ?? () from /lib/libc.so.6
#1  0x0000003a2be7d4c8 in malloc () from /lib/libc.so.6
#2  0x0000003a2be7d918 in posix_memalign () from /lib/libc.so.6
#3  0x00000000008340f2 in av_malloc (size=0) at libavutil/mem.c:66
#4  0x0000000000496161 in avcodec_default_get_buffer (s=0x16e86e0, 
pic=0x188a270) at utils.c:312
#5  0x00000000004c5606 in ff_alloc_picture (s=0x1753470, pic=0x188a270, 
shared=<value optimized out>) at libavcodec/mpegvideo.c:195
#6  0x00000000004c6ab6 in MPV_frame_start (s=0x1753470, avctx=0x16e86e0) at 
libavcodec/mpegvideo.c:920
#7  0x00000000005b7ca8 in ff_h263_decode_frame (avctx=0x16e86e0, 
data=0x7fff184b2dc0, data_size=0x7fff184b3098, avpkt=<value optimized out>) at 
libavcodec/h263dec.c:626
#8  0x0000000000495abd in avcodec_decode_video2 (avctx=0x16e86e0, 
picture=0x3a2c16f220, got_picture_ptr=0x7fff184b3098, avpkt=<value optimized 
out>) at utils.c:577
#9  0x0000000000408277 in output_packet (ist=0x16f2f40, ist_index=0, 
ost_table=0x16f2fe0, nb_ostreams=1, pkt=0x7fff184b4270) at ffmpeg.c:1255
#10 0x000000000040b4ff in av_encode (output_files=0xb73360, nb_output_files=1, 
input_files=0xb71900, nb_input_files=1, stream_maps=0xb740a0, nb_stream_maps=0) 
at ffmpeg.c:2203
#11 0x000000000040bd1c in main (argc=<value optimized out>, argv=<value 
optimized out>) at ffmpeg.c:3958

With ./ffmpeg_g -y -i test.avi -an -f framecrc /dev/null it looks more
useful, but it might be some kind of corruption here, too (and it is a
different issue, happens past frame 30000):

ff_mpeg4_set_direct_mv (s=0x29ca2b0, mx=<value optimized out>, my=<value 
optimized out>) at libavcodec/h263.c:664
664                 s->mv[0][i][0] = 
s->p_field_mv_table[i][0][mb_index][0]*time_pb/time_pp + mx;
(gdb) bt
#0  ff_mpeg4_set_direct_mv (s=0x29ca2b0, mx=<value optimized out>, my=<value 
optimized out>) at libavcodec/h263.c:664
#1  0x00000000005d0b97 in ff_mpeg4_decode_mb (s=0x29ca2b0, block=0x2a3bbb0) at 
libavcodec/h263.c:4465
#2  0x00000000005b6ca4 in decode_slice (s=0x29ca2b0) at libavcodec/h263dec.c:221
#3  0x00000000005b7cf6 in ff_h263_decode_frame (avctx=0x29bf6e0, 
data=0x7fff413dfcf0, data_size=0x7fff413dffc8, avpkt=<value optimized out>) at 
libavcodec/h263dec.c:652
#4  0x0000000000495abd in avcodec_decode_video2 (avctx=0x29bf6e0, picture=0x0, 
got_picture_ptr=0x7fff413dffc8, avpkt=<value optimized out>) at utils.c:577
#5  0x0000000000408277 in output_packet (ist=0x29c9f00, ist_index=0, 
ost_table=0x29c9fa0, nb_ostreams=1, pkt=0x7fff413e11a0) at ffmpeg.c:1255
#6  0x000000000040b4ff in av_encode (output_files=0xb73360, nb_output_files=1, 
input_files=0xb71900, nb_input_files=1, stream_maps=0xb740a0, nb_stream_maps=0) 
at ffmpeg.c:2203
#7  0x000000000040bd1c in main (argc=<value optimized out>, argv=<value 
optimized out>) at ffmpeg.c:3958

_____________________________________________________
FFmpeg issue tracker <iss...@roundup.ffmpeg.org>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue1135>
_____________________________________________________

Reply via email to