Ticket #8262: log-vf_bm3d_375

File log-vf_bm3d_375, 14.1 KB (added by Suhwan, 7 years ago)
Line 
1[Thread debugging using libthread_db enabled]
2Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
3ffmpeg version N-95336-g4f4334bcbc Copyright (c) 2000-2019 the FFmpeg developers
4 built with clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
5 configuration: --cc=clang --cxx=clang++ --ld=clang --enable-debug --toolchain=clang-asan
6 libavutil 56. 35.100 / 56. 35.100
7 libavcodec 58. 59.102 / 58. 59.102
8 libavformat 58. 33.100 / 58. 33.100
9 libavdevice 58. 9.100 / 58. 9.100
10 libavfilter 7. 62.100 / 7. 62.100
11 libswscale 5. 6.100 / 5. 6.100
12 libswresample 3. 6.100 / 3. 6.100
13Splitting the commandline.
14Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
15Reading option '-i' ... matched as input url with argument 'samples/bmp/rle-bmp-not-square-8bpp.bmp'.
16Reading option '-filter_complex' ... matched as option 'filter_complex' (create a complex filtergraph) with argument 'bm3d'.
17Reading option '-target' ... matched as option 'target' (specify target file type ("vcd", "svcd", "dvd", "dv" or "dv50" with optional prefixes "pal-", "ntsc-" or "film-")) with argument 'svcd'.
18Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
19Reading option 'output/tmp.lmlm4' ... matched as output url.
20Finished splitting the commandline.
21Parsing a group of options: global .
22Applying option y (overwrite output files) with argument 1.
23Applying option filter_complex (create a complex filtergraph) with argument bm3d.
24Applying option loglevel (set logging level) with argument 99.
25Successfully parsed a group of options.
26Parsing a group of options: input url samples/bmp/rle-bmp-not-square-8bpp.bmp.
27Successfully parsed a group of options.
28Opening an input file: samples/bmp/rle-bmp-not-square-8bpp.bmp.
29[NULL @ 0x61b000000080] Opening 'samples/bmp/rle-bmp-not-square-8bpp.bmp' for reading
30[file @ 0x611000000180] Setting default whitelist 'file,crypto'
31Probing image2 score:50 size:1384
32Probing bmp_pipe score:51 size:1384
33[bmp_pipe @ 0x61b000000080] Format bmp_pipe probed with size=2048 and score=51
34[bmp_pipe @ 0x61b000000080] Before avformat_find_stream_info() pos: 0 bytes read:1384 seeks:0 nb_streams:1
35[bmp_pipe @ 0x61b000000080] stream 0: start_time: -368934881474191040.000 duration: -368934881474191040.000
36[bmp_pipe @ 0x61b000000080] format: start_time: -9223372036854.775 duration: -9223372036854.775 (estimate from bit rate) bitrate=0 kb/s
37[bmp_pipe @ 0x61b000000080] After avformat_find_stream_info() pos: 1384 bytes read:1384 seeks:0 frames:1
38Input #0, bmp_pipe, from 'samples/bmp/rle-bmp-not-square-8bpp.bmp':
39 Duration: N/A, bitrate: N/A
40 Stream #0:0, 1, 1/25: Video: bmp, 1 reference frame, pal8, 14x17, 0/1, 25 tbr, 25 tbn, 25 tbc
41Successfully opened the file.
42Parsing a group of options: output url output/tmp.lmlm4.
43Applying option target (specify target file type ("vcd", "svcd", "dvd", "dv" or "dv50" with optional prefixes "pal-", "ntsc-" or "film-")) with argument svcd.
44Assuming PAL for target.
45Successfully parsed a group of options.
46Opening an output file: output/tmp.lmlm4.
47[file @ 0x610000000540] Setting default whitelist 'file,crypto'
48Successfully opened the file.
49Stream mapping:
50 Stream #0:0 (bmp) -> bm3d
51 bm3d -> Stream #0:0 (mpeg2video)
52Press [q] to stop, [?] for help
53cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
54detected 48 logical cores
55[New Thread 0x7ffff1725700 (LWP 46371)]
56[New Thread 0x7ffff0f24700 (LWP 46375)]
57[New Thread 0x7ffff0723700 (LWP 46377)]
58[New Thread 0x7fffeff22700 (LWP 46380)]
59[New Thread 0x7fffef721700 (LWP 46382)]
60[New Thread 0x7fffeef20700 (LWP 46388)]
61[New Thread 0x7fffee71f700 (LWP 46390)]
62[New Thread 0x7fffedf1e700 (LWP 46391)]
63[New Thread 0x7fffed71d700 (LWP 46392)]
64[New Thread 0x7fffecf1c700 (LWP 46393)]
65[New Thread 0x7fffec71b700 (LWP 46395)]
66[New Thread 0x7fffebf1a700 (LWP 46396)]
67[New Thread 0x7fffeb719700 (LWP 46398)]
68[New Thread 0x7fffeaf18700 (LWP 46399)]
69[New Thread 0x7fffea717700 (LWP 46400)]
70[New Thread 0x7fffe9f16700 (LWP 46403)]
71[New Thread 0x7fffe9715700 (LWP 46404)]
72[New Thread 0x7fffe8f14700 (LWP 46405)]
73[New Thread 0x7fffe8713700 (LWP 46406)]
74[New Thread 0x7fffe7f12700 (LWP 46408)]
75[New Thread 0x7fffe7711700 (LWP 46409)]
76[New Thread 0x7fffe6f10700 (LWP 46410)]
77[New Thread 0x7fffe670f700 (LWP 46411)]
78[New Thread 0x7fffe5f0e700 (LWP 46412)]
79[New Thread 0x7fffe570d700 (LWP 46417)]
80[New Thread 0x7fffe4f0c700 (LWP 46420)]
81[New Thread 0x7fffe470b700 (LWP 46425)]
82[New Thread 0x7fffe3f02700 (LWP 46426)]
83[New Thread 0x7fffe36eb700 (LWP 46428)]
84[New Thread 0x7fffe2ed4700 (LWP 46431)]
85[New Thread 0x7fffe26bd700 (LWP 46432)]
86[New Thread 0x7fffe1ea6700 (LWP 46436)]
87[New Thread 0x7fffe168f700 (LWP 46439)]
88[New Thread 0x7fffe0e78700 (LWP 46440)]
89[New Thread 0x7fffe0661700 (LWP 46441)]
90[New Thread 0x7fffdfe4a700 (LWP 46442)]
91[New Thread 0x7fffdf633700 (LWP 46444)]
92[New Thread 0x7fffdee1c700 (LWP 46445)]
93[New Thread 0x7fffde605700 (LWP 46446)]
94[New Thread 0x7fffdddee700 (LWP 46450)]
95[New Thread 0x7fffdd5d7700 (LWP 46453)]
96[New Thread 0x7fffdcdc0700 (LWP 46456)]
97[New Thread 0x7fffdc5a9700 (LWP 46457)]
98[New Thread 0x7fffdbd92700 (LWP 46458)]
99[New Thread 0x7fffdb57b700 (LWP 46459)]
100[New Thread 0x7fffdad64700 (LWP 46460)]
101[New Thread 0x7fffda54d700 (LWP 46462)]
102[New Thread 0x7fffd9d36700 (LWP 46464)]
103[graph 0 input from stream 0:0 @ 0x6110000011c0] Setting 'video_size' to value '14x17'
104[graph 0 input from stream 0:0 @ 0x6110000011c0] Setting 'pix_fmt' to value '11'
105[graph 0 input from stream 0:0 @ 0x6110000011c0] Setting 'time_base' to value '1/25'
106[graph 0 input from stream 0:0 @ 0x6110000011c0] Setting 'pixel_aspect' to value '0/1'
107[graph 0 input from stream 0:0 @ 0x6110000011c0] Setting 'sws_param' to value 'flags=2'
108[graph 0 input from stream 0:0 @ 0x6110000011c0] Setting 'frame_rate' to value '25/1'
109[graph 0 input from stream 0:0 @ 0x6110000011c0] w:14 h:17 pixfmt:pal8 tb:1/25 fr:25/1 sar:0/1 sws_param:flags=2
110[scaler_out_0_0 @ 0x611000001440] Setting 'w' to value '480'
111[scaler_out_0_0 @ 0x611000001440] Setting 'h' to value '576'
112[scaler_out_0_0 @ 0x611000001440] Setting 'flags' to value 'bicubic'
113[scaler_out_0_0 @ 0x611000001440] w:480 h:576 flags:'bicubic' interl:0
114[format @ 0x6110000016c0] Setting 'pix_fmts' to value 'yuv420p'
115[auto_scaler_0 @ 0x611000011980] w:iw h:ih flags:'bilinear' interl:0
116[Parsed_bm3d_0 @ 0x611000001080] auto-inserting filter 'auto_scaler_0' between the filter 'graph 0 input from stream 0:0' and the filter 'Parsed_bm3d_0'
117[AVFilterGraph @ 0x60e000001380] query_formats: 5 queried, 3 merged, 1 already done, 0 delayed
118[auto_scaler_0 @ 0x611000011980] picking gbrp out of 39 ref:pal8 alpha:0
119[swscaler @ 0x62f000000400] Forcing full internal H chroma due to input having non subsampled chroma
120[auto_scaler_0 @ 0x611000011980] w:14 h:17 fmt:pal8 sar:0/1 -> w:14 h:17 fmt:gbrp sar:0/1 flags:0x2
121[scaler_out_0_0 @ 0x611000001440] w:14 h:17 fmt:gbrp sar:0/1 -> w:480 h:576 fmt:yuv420p sar:0/1 flags:0x4
122=================================================================
123==46162==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61900002b27e at pc 0x000000a6ec14 bp 0x7fffffff9ef0 sp 0x7fffffff9ee8
124READ of size 1 at 0x61900002b27e thread T0
125 #0 0xa6ec13 in get_block_row ffmpeg/libavfilter/vf_bm3d.c:375:18
126 #1 0xa5b92c in basic_block_filtering ffmpeg/libavfilter/vf_bm3d.c:415:13
127 #2 0xa57d0b in filter_slice ffmpeg/libavfilter/vf_bm3d.c:731:13
128 #3 0x942579 in worker_func ffmpeg/libavfilter/pthread.c:50:15
129 #4 0x868c042 in run_jobs ffmpeg/libavutil/slicethread.c:61:9
130 #5 0x868b6e4 in avpriv_slicethread_execute ffmpeg/libavutil/slicethread.c:188:19
131 #6 0x941cd6 in thread_execute ffmpeg/libavfilter/pthread.c:72:5
132 #7 0xa53e11 in filter_frame ffmpeg/libavfilter/vf_bm3d.c:766:9
133 #8 0xa4f0e4 in activate ffmpeg/libavfilter/vf_bm3d.c:861:19
134 #9 0x8248ae in ff_filter_activate ffmpeg/libavfilter/avfilter.c:1429:38
135 #10 0x86fd22 in push_frame ffmpeg/libavfilter/buffersrc.c:187:15
136 #11 0x86fd22 in av_buffersrc_add_frame_internal ffmpeg/libavfilter/buffersrc.c:261
137 #12 0x86e762 in av_buffersrc_add_frame_flags ffmpeg/libavfilter/buffersrc.c:170:16
138 #13 0x666407 in ifilter_send_frame ffmpeg/fftools/ffmpeg.c:2186:11
139 #14 0x666407 in send_frame_to_filters ffmpeg/fftools/ffmpeg.c:2260
140 #15 0x607666 in decode_video ffmpeg/fftools/ffmpeg.c:2459:11
141 #16 0x607666 in process_input_packet ffmpeg/fftools/ffmpeg.c:2613
142 #17 0x64a707 in process_input ffmpeg/fftools/ffmpeg.c:4508:5
143 #18 0x5e7157 in transcode_step ffmpeg/fftools/ffmpeg.c:4628:11
144 #19 0x5e7157 in transcode ffmpeg/fftools/ffmpeg.c:4682
145 #20 0x5db65b in main ffmpeg/fftools/ffmpeg.c:4884:9
146 #21 0x7ffff5c93b96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
147 #22 0x41def9 in _start (ffmpeg_asan+0x41def9)
148
1490x61900002b27e is located 2 bytes to the left of 1055-byte region [0x61900002b280,0x61900002b69f)
150allocated by thread T0 here:
151 #0 0x4de9e8 in posix_memalign (ffmpeg_asan+0x4de9e8)
152 #1 0x8598211 in av_malloc ffmpeg/libavutil/mem.c:87:9
153 #2 0x84ff141 in av_buffer_alloc ffmpeg/libavutil/buffer.c:72:12
154 #3 0x84ff141 in av_buffer_allocz ffmpeg/libavutil/buffer.c:85
155 #4 0x8503966 in pool_alloc_buffer ffmpeg/libavutil/buffer.c:313:26
156 #5 0x8503966 in av_buffer_pool_get ffmpeg/libavutil/buffer.c:349
157 #6 0x91ab2d in ff_frame_pool_get ffmpeg/libavfilter/framepool.c:222:29
158 #7 0x15d770c in ff_default_get_video_buffer ffmpeg/libavfilter/video.c:90:13
159 #8 0x124c5c9 in scale_frame ffmpeg/libavfilter/vf_scale.c:460:11
160 #9 0x124a6bc in filter_frame ffmpeg/libavfilter/vf_scale.c:549:11
161 #10 0x826e29 in ff_filter_activate_default ffmpeg/libavfilter/avfilter.c:1071:11
162 #11 0x826e29 in ff_filter_activate ffmpeg/libavfilter/avfilter.c:1430
163 #12 0x86fcd5 in push_frame ffmpeg/libavfilter/buffersrc.c:187:15
164 #13 0x86fcd5 in av_buffersrc_add_frame_internal ffmpeg/libavfilter/buffersrc.c:261
165 #14 0x86e762 in av_buffersrc_add_frame_flags ffmpeg/libavfilter/buffersrc.c:170:16
166 #15 0x666407 in ifilter_send_frame ffmpeg/fftools/ffmpeg.c:2186:11
167 #16 0x666407 in send_frame_to_filters ffmpeg/fftools/ffmpeg.c:2260
168 #17 0x607666 in decode_video ffmpeg/fftools/ffmpeg.c:2459:11
169 #18 0x607666 in process_input_packet ffmpeg/fftools/ffmpeg.c:2613
170 #19 0x64a707 in process_input ffmpeg/fftools/ffmpeg.c:4508:5
171 #20 0x5e7157 in transcode_step ffmpeg/fftools/ffmpeg.c:4628:11
172 #21 0x5e7157 in transcode ffmpeg/fftools/ffmpeg.c:4682
173 #22 0x5db65b in main ffmpeg/fftools/ffmpeg.c:4884:9
174 #23 0x7ffff5c93b96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
175
176SUMMARY: AddressSanitizer: heap-buffer-overflow ffmpeg/libavfilter/vf_bm3d.c:375:18 in get_block_row
177Shadow bytes around the buggy address:
178 0x0c327fffd5f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
179 0x0c327fffd600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
180 0x0c327fffd610: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
181 0x0c327fffd620: 00 00 00 00 00 00 00 00 00 04 fa fa fa fa fa fa
182 0x0c327fffd630: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
183=>0x0c327fffd640: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa[fa]
184 0x0c327fffd650: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
185 0x0c327fffd660: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
186 0x0c327fffd670: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
187 0x0c327fffd680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
188 0x0c327fffd690: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
189Shadow byte legend (one shadow byte represents 8 application bytes):
190 Addressable: 00
191 Partially addressable: 01 02 03 04 05 06 07
192 Heap left redzone: fa
193 Freed heap region: fd
194 Stack left redzone: f1
195 Stack mid redzone: f2
196 Stack right redzone: f3
197 Stack after return: f5
198 Stack use after scope: f8
199 Global redzone: f9
200 Global init order: f6
201 Poisoned by user: f7
202 Container overflow: fc
203 Array cookie: ac
204 Intra object redzone: bb
205 ASan internal: fe
206 Left alloca redzone: ca
207 Right alloca redzone: cb
208==46162==ABORTING
209[Thread 0x7fffd9d36700 (LWP 46464) exited]
210[Thread 0x7fffda54d700 (LWP 46462) exited]
211[Thread 0x7fffdad64700 (LWP 46460) exited]
212[Thread 0x7fffdb57b700 (LWP 46459) exited]
213[Thread 0x7fffdbd92700 (LWP 46458) exited]
214[Thread 0x7fffdc5a9700 (LWP 46457) exited]
215[Thread 0x7fffdcdc0700 (LWP 46456) exited]
216[Thread 0x7fffdd5d7700 (LWP 46453) exited]
217[Thread 0x7fffdddee700 (LWP 46450) exited]
218[Thread 0x7fffde605700 (LWP 46446) exited]
219[Thread 0x7fffdee1c700 (LWP 46445) exited]
220[Thread 0x7fffdf633700 (LWP 46444) exited]
221[Thread 0x7fffdfe4a700 (LWP 46442) exited]
222[Thread 0x7fffe0661700 (LWP 46441) exited]
223[Thread 0x7fffe0e78700 (LWP 46440) exited]
224[Thread 0x7fffe168f700 (LWP 46439) exited]
225[Thread 0x7fffe1ea6700 (LWP 46436) exited]
226[Thread 0x7fffe26bd700 (LWP 46432) exited]
227[Thread 0x7fffe2ed4700 (LWP 46431) exited]
228[Thread 0x7fffe36eb700 (LWP 46428) exited]
229[Thread 0x7fffe3f02700 (LWP 46426) exited]
230[Thread 0x7fffe470b700 (LWP 46425) exited]
231[Thread 0x7fffe4f0c700 (LWP 46420) exited]
232[Thread 0x7fffe570d700 (LWP 46417) exited]
233[Thread 0x7fffe5f0e700 (LWP 46412) exited]
234[Thread 0x7fffe670f700 (LWP 46411) exited]
235[Thread 0x7fffe6f10700 (LWP 46410) exited]
236[Thread 0x7fffe7711700 (LWP 46409) exited]
237[Thread 0x7fffe7f12700 (LWP 46408) exited]
238[Thread 0x7fffe8713700 (LWP 46406) exited]
239[Thread 0x7fffe8f14700 (LWP 46405) exited]
240[Thread 0x7fffe9715700 (LWP 46404) exited]
241[Thread 0x7fffe9f16700 (LWP 46403) exited]
242[Thread 0x7fffea717700 (LWP 46400) exited]
243[Thread 0x7fffeaf18700 (LWP 46399) exited]
244[Thread 0x7fffebf1a700 (LWP 46396) exited]
245[Thread 0x7fffec71b700 (LWP 46395) exited]
246[Thread 0x7fffecf1c700 (LWP 46393) exited]
247[Thread 0x7fffed71d700 (LWP 46392) exited]
248[Thread 0x7fffedf1e700 (LWP 46391) exited]
249[Thread 0x7fffee71f700 (LWP 46390) exited]
250[Thread 0x7fffeef20700 (LWP 46388) exited]
251[Thread 0x7fffef721700 (LWP 46382) exited]
252[Thread 0x7fffeff22700 (LWP 46380) exited]
253[Thread 0x7ffff0723700 (LWP 46377) exited]
254[Thread 0x7ffff0f24700 (LWP 46375) exited]
255[Thread 0x7ffff1725700 (LWP 46371) exited]
256[Thread 0x7ffff7fb6780 (LWP 46162) exited]
257[Inferior 1 (process 46162) exited with code 01]
258