[FFmpeg-trac] #3274(avcodec:open): vp9: deadlock with fuzzed file

FFmpeg trac at avcodec.org
Thu Jan 9 00:12:54 CET 2014


#3274: vp9: deadlock with fuzzed file
-------------------------------------+-------------------------------------
             Reporter:  ami_stuff    |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  important    |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  vp9          |               Blocked By:
  deadlock regression                |  Reproduced by developer:  1
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by cehoyos):

 Still reproducible:
 {{{
 (gdb) r -i vp9_d.webm -f null -
 Starting program:ffmpeg_g -i vp9_d.webm -f null -
 [Thread debugging using libthread_db enabled]
 Using host libthread_db library "/lib64/libthread_db.so.1".
 ffmpeg version N-59694-g2be1e1b Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Jan  9 2014 00:02:05 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl
   libavutil      52. 62.100 / 52. 62.100
   libavcodec     55. 47.100 / 55. 47.100
   libavformat    55. 22.102 / 55. 22.102
   libavdevice    55.  5.102 / 55.  5.102
   libavfilter     4.  0.103 /  4.  0.103
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
   libpostproc    52.  3.100 / 52.  3.100
 Input #0, matroska,webm, from 'vp9_d.webm':
   Metadata:
     encoder         : Lavf55.22.102
   Duration: 00:00:12.64, start: 0.000000, bitrate: 206 kb/s
     Stream #0:0: Video: vp9, yuv420p, 320x240, SAR 1:1 DAR 4:3, 23.97 fps,
 23.97 tbr, 1k tbn, 1k tbc (default)
 [New Thread 0x7ffff57e5700 (LWP 6269)]
 [New Thread 0x7ffff4fe4700 (LWP 6270)]
 [New Thread 0x7ffff47e3700 (LWP 6271)]
 [New Thread 0x7ffff3fe2700 (LWP 6272)]
 [New Thread 0x7ffff37e1700 (LWP 6273)]
 [New Thread 0x7ffff2fe0700 (LWP 6274)]
 [New Thread 0x7ffff27df700 (LWP 6275)]
 [New Thread 0x7ffff1fde700 (LWP 6276)]
 [New Thread 0x7ffff17dd700 (LWP 6277)]
 [New Thread 0x7ffff0fdc700 (LWP 6278)]
 [New Thread 0x7ffff07db700 (LWP 6279)]
 [New Thread 0x7fffeffda700 (LWP 6280)]
 [New Thread 0x7fffef7d9700 (LWP 6281)]
 [New Thread 0x7fffeefd8700 (LWP 6282)]
 [New Thread 0x7fffee7d7700 (LWP 6283)]
 [New Thread 0x7fffedfd6700 (LWP 6284)]
 [New Thread 0x7fffed7d5700 (LWP 6285)]
 [New Thread 0x7fffecfd4700 (LWP 6286)]
 Output #0, null, to 'pipe:':
   Metadata:
     encoder         : Lavf55.22.102
     Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240
 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 23.97 tbc (default)
 Stream mapping:
   Stream #0:0 -> #0:0 (vp9 -> rawvideo)
 Press [q] to stop, [?] for help
 [null @ 0x1897ea0] Encoder did not produce proper pts, making some up.
 Error while decoding stream #0:0: Invalid data found when processing input

 Program received signal SIGINT, Interrupt.
 0x00007ffff6ae68f4 in pthread_cond_wait@@GLIBC_2.3.2 () from
 /lib64/libpthread.so.0
 (gdb) bt
 #0  0x00007ffff6ae68f4 in pthread_cond_wait@@GLIBC_2.3.2 () from
 /lib64/libpthread.so.0
 #1  0x0000000000995d9b in ff_thread_decode_frame
 (avctx=avctx at entry=0x1893960,
     picture=picture at entry=0x190c160,
     got_picture_ptr=got_picture_ptr at entry=0x7fffffffd7dc,
     avpkt=avpkt at entry=0x7fffffffd560) at libavcodec/pthread_frame.c:452
 #2  0x0000000000a40a38 in avcodec_decode_video2 (avctx=0x1893960,
     picture=picture at entry=0x190c160,
     got_picture_ptr=got_picture_ptr at entry=0x7fffffffd7dc,
     avpkt=avpkt at entry=0x7fffffffda40) at libavcodec/utils.c:2120
 #3  0x000000000047a400 in decode_video (ist=ist at entry=0x1893fc0,
     pkt=pkt at entry=0x7fffffffda40,
 got_output=got_output at entry=0x7fffffffd7dc)
     at ffmpeg.c:1694
 #4  0x000000000047d7ef in output_packet (pkt=0x7fffffffd9e0,
 ist=0x1893fc0)
     at ffmpeg.c:1907
 #5  process_input (file_index=<optimized out>) at ffmpeg.c:3216
 #6  0x0000000000465a80 in transcode_step () at ffmpeg.c:3312
 #7  transcode () at ffmpeg.c:3364
 #8  main (argc=<optimized out>, argv=<optimized out>) at ffmpeg.c:3544
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3274#comment:3>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list