[FFmpeg-trac] #1278(undetermined:new): vf: crash with some filters

FFmpeg trac at avcodec.org
Fri May 11 15:37:39 CEST 2012


#1278: vf: crash with some filters
-------------------------------------+-------------------------------------
             Reporter:  ami_stuff    |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by ami_stuff):

 looks like -threads option can change when ffmpeg will crash here

 {{{
 (gdb) r -threads 1 -i crash.avi -vf boxblur=2:2,vflip,deshake -f null -
 The program being debugged has been started already.
 Start it from the beginning? (y or n) y

 Starting program: d:\mingw\msys\1.0\ffmpeg-head-23fba3e\ffmpeg_g.exe
 -threads 1
 -i crash.avi -vf boxblur=2:2,vflip,deshake -f null -
 [New Thread 1460.0x9a4]
 ffmpeg version 0.10.2.git-23fba3e Copyright (c) 2000-2012 the FFmpeg
 developers
   built on May  5 2012 19:57:06 with gcc 4.6.1
   configuration: --disable-ffprobe --enable-gpl
   libavutil      51. 49.100 / 51. 49.100
   libavcodec     54. 19.100 / 54. 19.100
   libavformat    54.  4.100 / 54.  4.100
   libavdevice    53.  4.100 / 53.  4.100
   libavfilter     2. 72.104 /  2. 72.104
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0. 11.100 /  0. 11.100
   libpostproc    52.  0.100 / 52.  0.100
 Input #0, avi, from 'crash.avi':
   Metadata:
     encoder         : Lavf54.3.100
   Duration: 00:00:01.00, start: 0.000000, bitrate: 1438 kb/s
     Stream #0:0: Video: mpeg4 (Simple Profile) (3IV2 / 0x32564933),
 yuv420p, 768
 x576 [SAR 1:1 DAR 4:3], 23.97 tbr, 23.97 tbn, 25 tbc
 [buffer @ 03b427c0] w:768 h:576 pixfmt:yuv420p tb:1/1000000 sar:1/1
 sws_param:fl
 ags=2
 [buffersink @ 03b42ae0] No opaque field provided
 [deshake @ 03b43520] cx: -1, cy: -1, cw: -1, ch: -1, rx: 16, ry: 16, edge:
 3 blo
 cksize: 16 contrast: 125 search: 0
 [boxblur @ 03b42e20] luma_radius:2 luma_power:2 chroma_radius:2
 chroma_power:2 a
 lpha_radius:2 alpha_power:2 w:768 chroma_w:384 h:576 chroma_h:288
 Output #0, null, to 'pipe:':
   Metadata:
     encoder         : Lavf54.4.100
     Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 768x576
 [SAR 1:1
 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 23.97 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (mpeg4 -> rawvideo)
 Press [q] to stop, [?] for help
 [null @ 03b3b020] Encoder did not produce proper pts, making some up.
 frame=    5 fps=0.0 q=0.0 size=       0kB time=00:00:00.20 bitrate=
 0.0kbits/s
 frame=    8 fps=7.9 q=0.0 size=       0kB time=00:00:00.33 bitrate=
 0.0kbits/s
 frame=   11 fps=7.1 q=0.0 size=       0kB time=00:00:00.45 bitrate=
 0.0kbits/s
 frame=   14 fps=6.8 q=0.0 size=       0kB time=00:00:00.58 bitrate=
 0.0kbits/s
 frame=   17 fps=6.5 q=0.0 size=       0kB time=00:00:00.70 bitrate=
 0.0kbits/s
 frame=   20 fps=6.4 q=0.0 size=       0kB time=00:00:00.83 bitrate=
 0.0kbits/s
  dup=1 drop=0
 Program received signal SIGSEGV, Segmentation fault.
 0x0043e404 in avfilter_transform (
     src=0x439bd40 "     !!!\"\"\"####\"\"\"\"\"\"\"\"\"\"####\"\"\"!!
 !!\"\"\
 "#####\"\"\"\"\"\"\"\"########\"\"\"\"\"\"\"\"\"\"!!!\"\"\"\"\"\"", '#'
 <repeats
  13 times>, '"' <repeats 23 times>, "!!      !!", '"' <repeats 23 times>,
 "#####
 ###", '"' <repeats 15 times>, "!!      !!", '"' <repeats 15 times>...,
     dst=0x43e0040 '\037' <repeats 17 times>, "        !!     !!", ' '
 <repeats 1
 5 times>, "!!!!!!!!\"", '!' <repeats 31 times>, ' ' <repeats 15 times>,
 '!' <rep
 eats 15 times>, "\"\"\"\"\"!!       !!", '"' <repeats 45 times>, "!!
 !!\"\
 "\"\"\"\"\"\"\""..., src_stride=-768, dst_stride=768, width=768,
     height=576, matrix=0x22e3bc, interpolate=INTERPOLATE_BILINEAR,
     fill=FILL_MIRROR) at libavfilter/transform.c:178
 178                         def = src[(int)y_s * src_stride + (int)x_s];
 }}}

 {{{
 (gdb) r -threads 8 -i crash.avi -vf boxblur=2:2,vflip,deshake -f null -
 The program being debugged has been started already.
 Start it from the beginning? (y or n) y

 Starting program: d:\mingw\msys\1.0\ffmpeg-head-23fba3e\ffmpeg_g.exe
 -threads 8
 -i crash.avi -vf boxblur=2:2,vflip,deshake -f null -
 [New Thread 3640.0xf28]
 ffmpeg version 0.10.2.git-23fba3e Copyright (c) 2000-2012 the FFmpeg
 developers
   built on May  5 2012 19:57:06 with gcc 4.6.1
   configuration: --disable-ffprobe --enable-gpl
   libavutil      51. 49.100 / 51. 49.100
   libavcodec     54. 19.100 / 54. 19.100
   libavformat    54.  4.100 / 54.  4.100
   libavdevice    53.  4.100 / 53.  4.100
   libavfilter     2. 72.104 /  2. 72.104
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0. 11.100 /  0. 11.100
   libpostproc    52.  0.100 / 52.  0.100
 Input #0, avi, from 'crash.avi':
   Metadata:
     encoder         : Lavf54.3.100
   Duration: 00:00:01.00, start: 0.000000, bitrate: 1438 kb/s
     Stream #0:0: Video: mpeg4 (Simple Profile) (3IV2 / 0x32564933),
 yuv420p, 768
 x576 [SAR 1:1 DAR 4:3], 23.97 tbr, 23.97 tbn, 25 tbc
 [buffer @ 03b427c0] w:768 h:576 pixfmt:yuv420p tb:1/1000000 sar:1/1
 sws_param:fl
 ags=2
 [buffersink @ 03b42ae0] No opaque field provided
 [deshake @ 03b43520] cx: -1, cy: -1, cw: -1, ch: -1, rx: 16, ry: 16, edge:
 3 blo
 cksize: 16 contrast: 125 search: 0
 [boxblur @ 03b42e20] luma_radius:2 luma_power:2 chroma_radius:2
 chroma_power:2 a
 lpha_radius:2 alpha_power:2 w:768 chroma_w:384 h:576 chroma_h:288
 [New Thread 3640.0xe70]
 [New Thread 3640.0xea4]
 Output #0, null, to 'pipe:':
   Metadata:
     encoder         : Lavf54.4.100
     Stream #0:0[New Thread 3640.0xd60]
 [New Thread 3640.0x928]
 [New Thread 3640.0x12c]
 [New Thread 3640.0x978]
 : Video: rawvideo (I420 / 0x30323449), yuv420p, 768x576 [SAR 1:1 DAR 4:3],
 q=2-3
 1, 200 kb/s, 90k tbn, 23.97 tbc
 Stream mapping:
 [New Thread 3640.0xb64]
 [New Thread 3640.0xef0]
   Stream #0:0 -> #0:0 (mpeg4 -> rawvideo)
 Press [q] to stop, [?] for help
 [null @ 03b3b020] Encoder did not produce proper pts, making some up.
 frame=    5 fps=0.0 q=0.0 size=       0kB time=00:00:00.20 bitrate=
 0.0kbits/s
 frame=    8 fps=7.0 q=0.0 size=       0kB time=00:00:00.33 bitrate=
 0.0kbits/s
 frame=   11 fps=6.5 q=0.0 size=       0kB time=00:00:00.45 bitrate=
 0.0kbits/s
 frame=   14 fps=6.3 q=0.0 size=       0kB time=00:00:00.58 bitrate=
 0.0kbits/s
 frame=   17 fps=6.1 q=0.0 size=       0kB time=00:00:00.70 bitrate=
 0.0kbits/s
  dup=1 drop=0
 Program received signal SIGSEGV, Segmentation fault.
 0x0043e404 in avfilter_transform (
     src=0x67abd40 "     !!!\"\"\"####\"\"\"\"\"\"\"\"\"\"####\"\"\"!!
 !!\"\"\
 "#####\"\"\"\"\"\"\"\"########\"\"\"\"\"\"\"\"\"\"!!!\"\"\"\"\"\"", '#'
 <repeats
  13 times>, '"' <repeats 23 times>, "!!      !!", '"' <repeats 23 times>,
 "#####
 ###", '"' <repeats 15 times>, "!!      !!", '"' <repeats 15 times>...,
     dst=0x67f0040 '\037' <repeats 17 times>, "        !!     !!", ' '
 <repeats 1
 5 times>, "!!!!!!!!\"", '!' <repeats 31 times>, ' ' <repeats 15 times>,
 '!' <rep
 eats 15 times>, "\"\"\"\"\"!!       !!", '"' <repeats 45 times>, "!!
 !!\"\
 "\"\"\"\"\"\"\""..., src_stride=-768, dst_stride=768, width=768,
     height=576, matrix=0x22e3bc, interpolate=INTERPOLATE_BILINEAR,
     fill=FILL_MIRROR) at libavfilter/transform.c:178
 178                         def = src[(int)y_s * src_stride + (int)x_s];
 }}}

 {{{
 (gdb) r -threads 16 -i crash.avi -vf boxblur=2:2,vflip,deshake -f null -
 The program being debugged has been started already.
 Start it from the beginning? (y or n) y

 Starting program: d:\mingw\msys\1.0\ffmpeg-head-23fba3e\ffmpeg_g.exe
 -threads 16
  -i crash.avi -vf boxblur=2:2,vflip,deshake -f null -
 [New Thread 2908.0xc50]
 ffmpeg version 0.10.2.git-23fba3e Copyright (c) 2000-2012 the FFmpeg
 developers
   built on May  5 2012 19:57:06 with gcc 4.6.1
   configuration: --disable-ffprobe --enable-gpl
   libavutil      51. 49.100 / 51. 49.100
   libavcodec     54. 19.100 / 54. 19.100
   libavformat    54.  4.100 / 54.  4.100
   libavdevice    53.  4.100 / 53.  4.100
   libavfilter     2. 72.104 /  2. 72.104
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0. 11.100 /  0. 11.100
   libpostproc    52.  0.100 / 52.  0.100
 Input #0, avi, from 'crash.avi':
   Metadata:
     encoder         : Lavf54.3.100
   Duration: 00:00:01.00, start: 0.000000, bitrate: 1438 kb/s
     Stream #0:0: Video: mpeg4 (Simple Profile) (3IV2 / 0x32564933),
 yuv420p, 768
 x576 [SAR 1:1 DAR 4:3], 23.97 tbr, 23.97 tbn, 25 tbc
 [buffer @ 03b427c0] w:768 h:576 pixfmt:yuv420p tb:1/1000000 sar:1/1
 sws_param:fl
 ags=2
 [buffersink @ 03b42ae0] No opaque field provided
 [deshake @ 03b43520] cx: -1, cy: -1, cw: -1, ch: -1, rx: 16, ry: 16, edge:
 3 blo
 cksize: 16 contrast: 125 search: 0
 [boxblur @ 03b42e20] luma_radius:2 luma_power:2 chroma_radius:2
 chroma_power:2 a
 lpha_radius:2 alpha_power:2 w:768 chroma_w:384 h:576 chroma_h:288
 [New Thread 2908.0xff4]
 [New Thread 2908.0xa50]
 Output #0, null, to 'pipe:':
   Metadata:
     encoder         : Lavf54.4.100
 [New Thread 2908.0x860]
 [New Thread 2908.0xd38]
 [New Thread 2908.0x850]
 [New Thread 2908.0x484]
     Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 768x576
 [SAR 1:1
 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 23.97 tbc
 Stream mapping:
 [New Thread 2908.0xa78]
 [New Thread 2908.0xa18]
 [New Thread 2908.0x398]
 [New Thread 2908.0x8a4]
   Stream #0:0 -> #0:0 (mpeg4 -> rawvideo)
 Press [q] to stop, [?] for help
 [New Thread 2908.0xf84]
 [New Thread 2908.0xa08]
 [New Thread 2908.0xf2c]
 [New Thread 2908.0x8c4]
 [New Thread 2908.0x880]
 [New Thread 2908.0x894]
 [null @ 03b3b020] Encoder did not produce proper pts, making some up.
 frame=    4 fps=0.0 q=0.0 size=       0kB time=00:00:00.16 bitrate=
 0.0kbits/s
 frame=    7 fps=6.1 q=0.0 size=       0kB time=00:00:00.29 bitrate=
 0.0kbits/s
  dup=1 drop=0
 Program received signal SIGSEGV, Segmentation fault.
 0x0043e404 in avfilter_transform (
     src=0x8e2bd40 "     !!!\"\"\"####\"\"\"\"\"\"\"\"\"\"####\"\"\"!!
 !!\"\"\
 "#####\"\"\"\"\"\"\"\"########\"\"\"\"\"\"\"\"\"\"!!!\"\"\"\"\"\"", '#'
 <repeats
  13 times>, '"' <repeats 23 times>, "!!      !!", '"' <repeats 23 times>,
 "#####
 ###", '"' <repeats 15 times>, "!!      !!", '"' <repeats 15 times>...,
     dst=0x8e70040 '\037' <repeats 17 times>, "        !!     !!", ' '
 <repeats 1
 5 times>, "!!!!!!!!\"", '!' <repeats 31 times>, ' ' <repeats 15 times>,
 '!' <rep
 eats 15 times>, "\"\"\"\"\"!!       !!", '"' <repeats 45 times>, "!!
 !!\"\
 "\"\"\"\"\"\"\""..., src_stride=-768, dst_stride=768, width=768,
     height=576, matrix=0x22e3bc, interpolate=INTERPOLATE_BILINEAR,
     fill=FILL_MIRROR) at libavfilter/transform.c:178
 178                         def = src[(int)y_s * src_stride + (int)x_s];
 }}}

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


More information about the FFmpeg-trac mailing list