Opened 5 years ago

Closed 4 years ago

#1278 closed defect (fixed)

vf: crash with some filters

Reported by: ami_stuff Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

(gdb) r -i crash.avi -vf unsharp,boxblur=2:2,vflip,deshake -f null -
Starting program: d:\mingw\msys\1.0\ffmpeg-head-30aa004\ffmpeg_g.exe -i crash.av
i -vf unsharp,boxblur=2:2,vflip,deshake -f null -
[New Thread 3676.0xe58]
ffmpeg version 0.10.2.git-30aa004 Copyright (c) 2000-2012 the FFmpeg developers
  built on May  1 2012 15:36:20 with gcc 4.6.1
  configuration: --disable-ffprobe --enable-gpl
  libavutil      51. 49.100 / 51. 49.100
  libavcodec     54. 17.101 / 54. 17.101
  libavformat    54.  3.100 / 54.  3.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 72.102 /  2. 72.102
  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 @ 03b12640] w:768 h:576 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:fl
ags=2
[buffersink @ 03b12960] No opaque field provided
[deshake @ 03b136e0] cx: -1, cy: -1, cw: -1, ch: -1, rx: 16, ry: 16, edge: 3 blo
cksize: 16 contrast: 125 search: 0
[unsharp @ 03b12ca0] effect:sharpen type:luma msize_x:5 msize_y:5 amount:1.00
[unsharp @ 03b12ca0] effect:none type:chroma msize_x:5 msize_y:5 amount:0.00
[boxblur @ 03b12c60] 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.3.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 @ 03b0b020] 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
 dup=1 drop=0
Program received signal SIGSEGV, Segmentation fault.
0x0043e1a8 in avfilter_transform (
    src=0x482bd40 ' ' <repeats 16 times>, "\037\037\037\037\037\037 !\"\"\"", '#
' <repeats 21 times>, "\"\"\"\"\"\"\"\"", '#' <repeats 13 times>, "\"\"\"! \037\
037\037\037 !!\"\"", '#' <repeats 13 times>, '"' <repeats 23 times>, "!!!   !!!\
"\"######", '"' <repeats 15 times>, "!!!    !!!\"\"\"\"\"\"\"######\"\"!!!   !!!
", '"' <repeats 15 times>...,
    dst=0x4660040 "\027\027\027\030\030\031\031\031", '\032' <repeats 14 times>,
 '\031' <repeats 46 times>, "\032\032\033\033\033\033\033\032\032\032\032\031\03
1\031", '\032' <repeats 11 times>, '\031' <repeats 18 times>, "\032\032\032\032\
032\031\031\031\031\031\031\031\031\031", '\032' <repeats 23 times>, "\033\034\0
34\034\035\035\035\034\034\034", '\033' <repeats 14 times>, "\032\032\032\032\03
2\032\032\032\032\032", '\033' <repeats 18 times>..., src_stride=-768,
    dst_stride=768, width=768, height=576, matrix=0x22e35c,
    interpolate=INTERPOLATE_BILINEAR, fill=FILL_MIRROR)
    at libavfilter/transform.c:178
178                         def = src[(int)y_s * src_stride + (int)x_s];
(gdb) bt
#0  0x0043e1a8 in avfilter_transform (
    src=0x482bd40 ' ' <repeats 16 times>, "\037\037\037\037\037\037 !\"\"\"", '#
' <repeats 21 times>, "\"\"\"\"\"\"\"\"", '#' <repeats 13 times>, "\"\"\"! \037\
037\037\037 !!\"\"", '#' <repeats 13 times>, '"' <repeats 23 times>, "!!!   !!!\
"\"######", '"' <repeats 15 times>, "!!!    !!!\"\"\"\"\"\"\"######\"\"!!!   !!!
", '"' <repeats 15 times>...,
    dst=0x4660040 "\027\027\027\030\030\031\031\031", '\032' <repeats 14 times>,
 '\031' <repeats 46 times>, "\032\032\033\033\033\033\033\032\032\032\032\031\03
1\031", '\032' <repeats 11 times>, '\031' <repeats 18 times>, "\032\032\032\032\
032\031\031\031\031\031\031\031\031\031", '\032' <repeats 23 times>, "\033\034\0
34\034\035\035\035\034\034\034", '\033' <repeats 14 times>, "\032\032\032\032\03
2\032\032\032\032\032", '\033' <repeats 18 times>..., src_stride=-768,
    dst_stride=768, width=768, height=576, matrix=0x22e35c,
    interpolate=INTERPOLATE_BILINEAR, fill=FILL_MIRROR)
    at libavfilter/transform.c:178
#1  0x004288be in end_frame (link=0x3b138c0) at libavfilter/vf_deshake.c:510
#2  0x00419698 in avfilter_end_frame (link=0x3b138c0)
    at libavfilter/avfilter.c:632
#3  0x00419698 in avfilter_end_frame (link=0x3b135c0)
    at libavfilter/avfilter.c:632
#4  0x00419698 in avfilter_end_frame (link=0x3b132a0)
    at libavfilter/avfilter.c:632
#5  0x00435d9d in end_frame (link=0x3b12ec0) at libavfilter/vf_unsharp.c:227
#6  0x00419698 in avfilter_end_frame (link=0x3b12ec0)
    at libavfilter/avfilter.c:632
#7  0x0041c5c3 in request_frame (link=0x3b12ec0)
    at libavfilter/src_buffer.c:363
#8  0x00418d3d in avfilter_request_frame (link=0x3b139e0)
    at libavfilter/avfilter.c:549
#9  0x0041b49f in avfilter_graph_request_oldest (graph=0x3b12600)
    at libavfilter/avfiltergraph.c:545
#10 0x00409e0a in poll_filters () at ffmpeg.c:2124
#11 0x0040ddce in transcode () at ffmpeg.c:3653
#12 0x00af7452 in main (argc=8, argv=0x3b10de0) at ffmpeg.c:5899

Attachments (1)

crash.avi (175.9 KB) - added by ami_stuff 5 years ago.

Download all attachments as: .zip

Change History (7)

Changed 5 years ago by ami_stuff

comment:1 Changed 5 years ago by ami_stuff

crashes also without unsharp filter

(gdb) r -i crash.avi -vf boxblur=2:2,vflip,deshake -an -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-30aa004\ffmpeg_g.exe -i crash.av
i -vf boxblur=2:2,vflip,deshake -an -f null -
[New Thread 3008.0xb70]
ffmpeg version 0.10.2.git-30aa004 Copyright (c) 2000-2012 the FFmpeg developers
  built on May  1 2012 15:36:20 with gcc 4.6.1
  configuration: --disable-ffprobe --enable-gpl
  libavutil      51. 49.100 / 51. 49.100
  libavcodec     54. 17.101 / 54. 17.101
  libavformat    54.  3.100 / 54.  3.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 72.102 /  2. 72.102
  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 @ 03b12640] w:768 h:576 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:fl
ags=2
[buffersink @ 03b12960] No opaque field provided
[deshake @ 03b132e0] cx: -1, cy: -1, cw: -1, ch: -1, rx: 16, ry: 16, edge: 3 blo
cksize: 16 contrast: 125 search: 0
[boxblur @ 03b12ca0] 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.3.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 @ 03b0b020] 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.8 q=0.0 size=       0kB time=00:00:00.33 bitrate=   0.0kbits/s
frame=   11 fps=7.0 q=0.0 size=       0kB time=00:00:00.45 bitrate=   0.0kbits/s
frame=   14 fps=6.7 q=0.0 size=       0kB time=00:00:00.58 bitrate=   0.0kbits/s
frame=   17 fps=6.4 q=0.0 size=       0kB time=00:00:00.70 bitrate=   0.0kbits/s
frame=   20 fps=6.3 q=0.0 size=       0kB time=00:00:00.83 bitrate=   0.0kbits/s
 dup=1 drop=0
Program received signal SIGSEGV, Segmentation fault.
0x0043e1a8 in avfilter_transform (
    src=0x436bd40 "     !!!\"\"\"####\"\"\"\"\"\"\"\"\"\"####\"\"\"!!    !!\"\"\
"#####\"\"\"\"\"\"\"\"########\"\"\"\"\"\"\"\"\"\"!!!\"\"\"\"\"\"", '#' <repeats
 13 times>, '"' <repeats 23 times>, "!!      !!", '"' <repeats 23 times>, "#####
###", '"' <repeats 15 times>, "!!      !!", '"' <repeats 15 times>...,
    dst=0x43b0040 '\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) bt
#0  0x0043e1a8 in avfilter_transform (
    src=0x436bd40 "     !!!\"\"\"####\"\"\"\"\"\"\"\"\"\"####\"\"\"!!    !!\"\"\
"#####\"\"\"\"\"\"\"\"########\"\"\"\"\"\"\"\"\"\"!!!\"\"\"\"\"\"", '#' <repeats
 13 times>, '"' <repeats 23 times>, "!!      !!", '"' <repeats 23 times>, "#####
###", '"' <repeats 15 times>, "!!      !!", '"' <repeats 15 times>...,
    dst=0x43b0040 '\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
#1  0x004288be in end_frame (link=0x3b134c0) at libavfilter/vf_deshake.c:510
#2  0x00419698 in avfilter_end_frame (link=0x3b134c0)
    at libavfilter/avfilter.c:632
#3  0x00419698 in avfilter_end_frame (link=0x3b131c0)
    at libavfilter/avfilter.c:632
#4  0x00419698 in avfilter_end_frame (link=0x3b12ea0)
    at libavfilter/avfilter.c:632
#5  0x0041c5c3 in request_frame (link=0x3b12ea0)
    at libavfilter/src_buffer.c:363
#6  0x00418d3d in avfilter_request_frame (link=0x3b135c0)
    at libavfilter/avfilter.c:549
#7  0x0041b49f in avfilter_graph_request_oldest (graph=0x3b12600)
    at libavfilter/avfiltergraph.c:545
#8  0x00409e0a in poll_filters () at ffmpeg.c:2124
#9  0x0040ddce in transcode () at ffmpeg.c:3653
#10 0x00af7452 in main (argc=9, argv=0x3b10df0) at ffmpeg.c:5899

comment:2 Changed 5 years ago by cehoyos

Please update, I see no crash and no invalid reads with valgrind and current git head.

comment:3 Changed 5 years ago by ami_stuff

still crashes here

(gdb) r -i crash.avi -vf boxblur=2:2,vflip,deshake -f null -
Starting program: d:\mingw\msys\1.0\ffmpeg-head-23fba3e\ffmpeg_g.exe -i crash.av
i -vf boxblur=2:2,vflip,deshake -f null -
[New Thread 868.0x998]
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 @ 03b42640] w:768 h:576 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:fl
ags=2
[buffersink @ 03b42960] No opaque field provided
[deshake @ 03b432e0] cx: -1, cy: -1, cw: -1, ch: -1, rx: 16, ry: 16, edge: 3 blo
cksize: 16 contrast: 125 search: 0
[boxblur @ 03b42ca0] 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=    6 fps=0.0 q=0.0 size=       0kB time=00:00:00.25 bitrate=   0.0kbits/s
frame=    9 fps=6.8 q=0.0 size=       0kB time=00:00:00.37 bitrate=   0.0kbits/s
frame=   12 fps=5.9 q=0.0 size=       0kB time=00:00:00.50 bitrate=   0.0kbits/s
frame=   15 fps=5.5 q=0.0 size=       0kB time=00:00:00.62 bitrate=   0.0kbits/s
frame=   18 fps=5.3 q=0.0 size=       0kB time=00:00:00.75 bitrate=   0.0kbits/s
frame=   21 fps=5.3 q=0.0 size=       0kB time=00:00:00.87 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) bt
#0  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
#1  0x00428b1a in end_frame (link=0x3b434c0) at libavfilter/vf_deshake.c:510
#2  0x004196ac in avfilter_end_frame (link=0x3b434c0)
    at libavfilter/avfilter.c:632
#3  0x004196ac in avfilter_end_frame (link=0x3b431c0)
    at libavfilter/avfilter.c:632
#4  0x004196ac in avfilter_end_frame (link=0x3b42ea0)
    at libavfilter/avfilter.c:632
#5  0x0041c5d7 in request_frame (link=0x3b42ea0)
    at libavfilter/src_buffer.c:498
#6  0x00418d51 in avfilter_request_frame (link=0x3b435c0)
    at libavfilter/avfilter.c:549
#7  0x0041b4b3 in avfilter_graph_request_oldest (graph=0x3b42600)
    at libavfilter/avfiltergraph.c:545
#8  0x00409e1e in poll_filters () at ffmpeg.c:2123
#9  0x0040dde2 in transcode () at ffmpeg.c:3652
#10 0x00af8eb2 in main (argc=8, argv=0x3b40de0) at ffmpeg.c:5899

maybe it will be reproducible for you when you enable more fiters?

-vf negate,drawbox,unsharp,boxblur=2:2,hflip,vflip,swapuv,deshake,scale=300:300

(gdb) r -i crash.avi -vf negate,drawbox,unsharp,boxblur=2:2,hflip,vflip,swapu>
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 -i crash.av
i -vf negate,drawbox,unsharp,boxblur=2:2,hflip,vflip,swapuv,deshake,scale=300:30
0 -f null -
[New Thread 1056.0x794]
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 @ 03b42660] w:768 h:576 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:fl
ags=2
[buffersink @ 03b42980] No opaque field provided
[deshake @ 03b44500] cx: -1, cy: -1, cw: -1, ch: -1, rx: 16, ry: 16, edge: 3 blo
cksize: 16 contrast: 125 search: 0
[drawbox @ 03b43260] x:0 y:0 w:768 h:576 color:0x108080FF
[unsharp @ 03b435c0] effect:sharpen type:luma msize_x:5 msize_y:5 amount:1.00
[unsharp @ 03b435c0] effect:none type:chroma msize_x:5 msize_y:5 amount:0.00
[boxblur @ 03b43940] 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
[scale @ 03b44840] w:768 h:576 fmt:yuv420p sar:1/1 -> w:300 h:300 fmt:yuv420p sa
r:4/3 flags:0x4
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf54.4.100
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 300x300 [SAR 4:3
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.

Program received signal SIGSEGV, Segmentation fault.
0x0043e404 in avfilter_transform (
    src=0x485bd40 "\023\026\033!&*-", '/' <repeats 20 times>, '.' <repeats 34 ti
mes>, '/' <repeats 109 times>, "...", '/' <repeats 14 times>, "...//////////"...
, dst=0x48a0040 'ň' <repeats 200 times>..., src_stride=-768,
    dst_stride=768, width=768, height=576, matrix=0x22e2dc,
    interpolate=INTERPOLATE_BILINEAR, fill=FILL_MIRROR)
    at libavfilter/transform.c:178
178                         def = src[(int)y_s * src_stride + (int)x_s];
(gdb) bt
#0  0x0043e404 in avfilter_transform (
    src=0x485bd40 "\023\026\033!&*-", '/' <repeats 20 times>, '.' <repeats 34 ti
mes>, '/' <repeats 109 times>, "...", '/' <repeats 14 times>, "...//////////"...
, dst=0x48a0040 'ň' <repeats 200 times>..., src_stride=-768,
    dst_stride=768, width=768, height=576, matrix=0x22e2dc,
    interpolate=INTERPOLATE_BILINEAR, fill=FILL_MIRROR)
    at libavfilter/transform.c:178
#1  0x00428b1a in end_frame (link=0x3b44700) at libavfilter/vf_deshake.c:510
#2  0x004196ac in avfilter_end_frame (link=0x3b44700)
    at libavfilter/avfilter.c:632
#3  0x004196ac in avfilter_end_frame (link=0x3b443e0)
    at libavfilter/avfilter.c:632
#4  0x004196ac in avfilter_end_frame (link=0x3b44120)
    at libavfilter/avfilter.c:632
#5  0x004196ac in avfilter_end_frame (link=0x3b43e80)
    at libavfilter/avfilter.c:632
#6  0x004196ac in avfilter_end_frame (link=0x3b43b40)
    at libavfilter/avfilter.c:632
#7  0x00435ff9 in end_frame (link=0x3b437c0) at libavfilter/vf_unsharp.c:227
#8  0x004196ac in avfilter_end_frame (link=0x3b437c0)
    at libavfilter/avfilter.c:632
#9  0x004196ac in avfilter_end_frame (link=0x3b43480)
    at libavfilter/avfilter.c:632
#10 0x004196ac in avfilter_end_frame (link=0x3b43120)
    at libavfilter/avfilter.c:632
#11 0x0041c5d7 in request_frame (link=0x3b43120)
    at libavfilter/src_buffer.c:498
#12 0x00418d51 in avfilter_request_frame (link=0x3b44c20)
    at libavfilter/avfilter.c:549
#13 0x0041b4b3 in avfilter_graph_request_oldest (graph=0x3b42620)
    at libavfilter/avfiltergraph.c:545
#14 0x00409e1e in poll_filters () at ffmpeg.c:2123
#15 0x0040dde2 in transcode () at ffmpeg.c:3652
#16 0x00af8eb2 in main (argc=8, argv=0x3b40e10) at ffmpeg.c:5899

comment:4 Changed 5 years ago by cehoyos

valgrind only reports "Conditional jump or move depends on uninitialised value" in mpeg4videodec.c:1872, nothing else.

comment:5 Changed 5 years ago 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];

comment:6 Changed 4 years ago by michael

  • Resolution set to fixed
  • Status changed from new to closed

locally fixes

Note: See TracTickets for help on using tickets.