Ticket #8261: log_vf_bwdif_133

File log_vf_bwdif_133, 15.8 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/bmp-size-3x3-24bpp.bmp'.
16Reading option '-filter_complex' ... matched as option 'filter_complex' (create a complex filtergraph) with argument 'bwdif'.
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 'dvd'.
18Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
19Reading option 'output/tmp.h263' ... 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 bwdif.
24Applying option loglevel (set logging level) with argument 99.
25Successfully parsed a group of options.
26Parsing a group of options: input url samples/bmp/bmp-size-3x3-24bpp.bmp.
27Successfully parsed a group of options.
28Opening an input file: samples/bmp/bmp-size-3x3-24bpp.bmp.
29[NULL @ 0x61b000000080] Opening 'samples/bmp/bmp-size-3x3-24bpp.bmp' for reading
30[file @ 0x611000000180] Setting default whitelist 'file,crypto'
31Probing image2 score:50 size:90
32Probing bmp_pipe score:51 size:90
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:90 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: 90 bytes read:90 seeks:0 frames:1
38Input #0, bmp_pipe, from 'samples/bmp/bmp-size-3x3-24bpp.bmp':
39 Duration: N/A, bitrate: N/A
40 Stream #0:0, 1, 1/25: Video: bmp, 1 reference frame, bgr24, 3x3, 0/1, 25 tbr, 25 tbn, 25 tbc
41Successfully opened the file.
42Parsing a group of options: output url output/tmp.h263.
43Applying option target (specify target file type ("vcd", "svcd", "dvd", "dv" or "dv50" with optional prefixes "pal-", "ntsc-" or "film-")) with argument dvd.
44Assuming PAL for target.
45Successfully parsed a group of options.
46Opening an output file: output/tmp.h263.
47[file @ 0x610000000540] Setting default whitelist 'file,crypto'
48Successfully opened the file.
49Stream mapping:
50 Stream #0:0 (bmp) -> bwdif
51 bwdif -> 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 15874)]
56[New Thread 0x7ffff0f24700 (LWP 15877)]
57[New Thread 0x7ffff0723700 (LWP 15880)]
58[New Thread 0x7fffeff22700 (LWP 15890)]
59[New Thread 0x7fffef721700 (LWP 15891)]
60[New Thread 0x7fffeef20700 (LWP 15894)]
61[New Thread 0x7fffee71f700 (LWP 15898)]
62[New Thread 0x7fffedf1e700 (LWP 15899)]
63[New Thread 0x7fffed71d700 (LWP 15901)]
64[New Thread 0x7fffecf1c700 (LWP 15904)]
65[New Thread 0x7fffec71b700 (LWP 15906)]
66[New Thread 0x7fffebf1a700 (LWP 15908)]
67[New Thread 0x7fffeb719700 (LWP 15912)]
68[New Thread 0x7fffeaf18700 (LWP 15918)]
69[New Thread 0x7fffea717700 (LWP 15920)]
70[New Thread 0x7fffe9f16700 (LWP 15921)]
71[New Thread 0x7fffe9715700 (LWP 15922)]
72[New Thread 0x7fffe8f14700 (LWP 15929)]
73[New Thread 0x7fffe8713700 (LWP 15932)]
74[New Thread 0x7fffe7f12700 (LWP 15935)]
75[New Thread 0x7fffe7711700 (LWP 15937)]
76[New Thread 0x7fffe6f10700 (LWP 15941)]
77[New Thread 0x7fffe670f700 (LWP 15944)]
78[New Thread 0x7fffe5f0e700 (LWP 15947)]
79[New Thread 0x7fffe570d700 (LWP 15950)]
80[New Thread 0x7fffe4f0c700 (LWP 15952)]
81[New Thread 0x7fffe470b700 (LWP 15954)]
82[New Thread 0x7fffe3f0a700 (LWP 15957)]
83[New Thread 0x7fffe3709700 (LWP 15958)]
84[New Thread 0x7fffe2f00700 (LWP 15959)]
85[New Thread 0x7fffe26e9700 (LWP 15962)]
86[New Thread 0x7fffe1ed2700 (LWP 15965)]
87[New Thread 0x7fffe16bb700 (LWP 15968)]
88[New Thread 0x7fffe0ea4700 (LWP 15971)]
89[New Thread 0x7fffe068d700 (LWP 15974)]
90[New Thread 0x7fffdfe76700 (LWP 15976)]
91[New Thread 0x7fffdf65f700 (LWP 15980)]
92[New Thread 0x7fffdee48700 (LWP 15981)]
93[New Thread 0x7fffde631700 (LWP 15983)]
94[New Thread 0x7fffdde1a700 (LWP 15985)]
95[New Thread 0x7fffdd603700 (LWP 15988)]
96[New Thread 0x7fffdcdec700 (LWP 15992)]
97[New Thread 0x7fffdc5d5700 (LWP 15995)]
98[New Thread 0x7fffdbdbe700 (LWP 15997)]
99[New Thread 0x7fffdb5a7700 (LWP 16003)]
100[New Thread 0x7fffdad90700 (LWP 16004)]
101[New Thread 0x7fffda579700 (LWP 16006)]
102[New Thread 0x7fffd9d62700 (LWP 16008)]
103[graph 0 input from stream 0:0 @ 0x611000001580] Setting 'video_size' to value '3x3'
104[graph 0 input from stream 0:0 @ 0x611000001580] Setting 'pix_fmt' to value '3'
105[graph 0 input from stream 0:0 @ 0x611000001580] Setting 'time_base' to value '1/25'
106[graph 0 input from stream 0:0 @ 0x611000001580] Setting 'pixel_aspect' to value '0/1'
107[graph 0 input from stream 0:0 @ 0x611000001580] Setting 'sws_param' to value 'flags=2'
108[graph 0 input from stream 0:0 @ 0x611000001580] Setting 'frame_rate' to value '25/1'
109[graph 0 input from stream 0:0 @ 0x611000001580] w:3 h:3 pixfmt:bgr24 tb:1/25 fr:25/1 sar:0/1 sws_param:flags=2
110[scaler_out_0_0 @ 0x611000001800] Setting 'w' to value '720'
111[scaler_out_0_0 @ 0x611000001800] Setting 'h' to value '576'
112[scaler_out_0_0 @ 0x611000001800] Setting 'flags' to value 'bicubic'
113[scaler_out_0_0 @ 0x611000001800] w:720 h:576 flags:'bicubic' interl:0
114[format @ 0x611000001a80] Setting 'pix_fmts' to value 'yuv420p'
115[auto_scaler_0 @ 0x611000011d40] w:iw h:ih flags:'bilinear' interl:0
116[Parsed_bwdif_0 @ 0x611000001300] auto-inserting filter 'auto_scaler_0' between the filter 'graph 0 input from stream 0:0' and the filter 'Parsed_bwdif_0'
117[AVFilterGraph @ 0x60e000001380] query_formats: 5 queried, 3 merged, 1 already done, 0 delayed
118[auto_scaler_0 @ 0x611000011d40] picking gbrp out of 48 ref:bgr24 alpha:0
119[swscaler @ 0x62f000000400] Forcing full internal H chroma due to odd output size
120[swscaler @ 0x62f000000400] Forcing full internal H chroma due to input having non subsampled chroma
121[auto_scaler_0 @ 0x611000011d40] w:3 h:3 fmt:bgr24 sar:0/1 -> w:3 h:3 fmt:gbrp sar:0/1 flags:0x2
122[scaler_out_0_0 @ 0x611000001800] w:3 h:3 fmt:gbrp sar:0/1 -> w:720 h:576 fmt:yuv420p sar:0/1 flags:0x4
123[New Thread 0x7fffd954b700 (LWP 16017)]
124[New Thread 0x7fffd8d34700 (LWP 16025)]
125[New Thread 0x7fffd851d700 (LWP 16026)]
126[New Thread 0x7fffd7d06700 (LWP 16030)]
127[New Thread 0x7fffd74ef700 (LWP 16033)]
128[New Thread 0x7fffd6cd8700 (LWP 16035)]
129[New Thread 0x7fffd64c1700 (LWP 16038)]
130[New Thread 0x7fffd5caa700 (LWP 16044)]
131[New Thread 0x7fffd5493700 (LWP 16047)]
132[New Thread 0x7fffd4c7c700 (LWP 16051)]
133[New Thread 0x7fffd4465700 (LWP 16055)]
134[New Thread 0x7fffd3c4e700 (LWP 16059)]
135[New Thread 0x7fffd3437700 (LWP 16061)]
136[New Thread 0x7fffd2c20700 (LWP 16062)]
137[New Thread 0x7fffd2409700 (LWP 16066)]
138[mpeg2video @ 0x619000002880] intra_quant_bias = 96 inter_quant_bias = 0
139Output #0, dvd, to 'output/tmp.h263':
140 Metadata:
141 encoder : Lavf58.33.100
142 Stream #0:0, 0, 1/90000: Video: mpeg2video (Main), 1 reference frame, yuv420p, 720x576, 0/1, q=2-31, 6000 kb/s, 25 fps, 90k tbn, 25 tbc
143 Metadata:
144 encoder : Lavc58.59.102 mpeg2video
145 Side data:
146 cpb: bitrate max/min/avg: 9000000/0/6000000 buffer size: 1835008 vbv_delay: N/A
147cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
148 Last message repeated 1 times
149Clipping frame in rate conversion by 0.000008
150cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
151=================================================================
152==15693==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x619000002d60 at pc 0x000000a79550 bp 0x7fffffffb4a0 sp 0x7fffffffb498
153READ of size 1 at 0x619000002d60 thread T0
154 #0 0xa7954f in filter_intra ffmpeg/libavfilter/vf_bwdif.c:133:5
155 #1 0xa816b4 in filter_slice ffmpeg/libavfilter/vf_bwdif.c:236:17
156 #2 0x942579 in worker_func ffmpeg/libavfilter/pthread.c:50:15
157 #3 0x868c042 in run_jobs ffmpeg/libavutil/slicethread.c:61:9
158 #4 0x868b6e4 in avpriv_slicethread_execute ffmpeg/libavutil/slicethread.c:188:19
159 #5 0x941cd6 in thread_execute ffmpeg/libavfilter/pthread.c:72:5
160 #6 0xa73691 in filter ffmpeg/libavfilter/vf_bwdif.c:283:9
161 #7 0x163bd0c in return_frame ffmpeg/libavfilter/yadif_common.c:51:5
162 #8 0x163ddf9 in ff_yadif_request_frame ffmpeg/libavfilter/yadif_common.c:166:9
163 #9 0x831204 in ff_request_frame_to_filter ffmpeg/libavfilter/avfilter.c:458:15
164 #10 0x826f74 in ff_filter_activate ffmpeg/libavfilter/avfilter.c:1280:20
165 #11 0x864092 in get_frame_internal ffmpeg/libavfilter/buffersink.c:110:19
166 #12 0x84bd53 in avfilter_graph_request_oldest ffmpeg/libavfilter/avfiltergraph.c:1409:17
167 #13 0x5e3d0d in transcode_from_filter ffmpeg/fftools/ffmpeg.c:4531:11
168 #14 0x5e3d0d in transcode_step ffmpeg/fftools/ffmpeg.c:4606
169 #15 0x5e3d0d in transcode ffmpeg/fftools/ffmpeg.c:4682
170 #16 0x5db65b in main ffmpeg/fftools/ffmpeg.c:4884:9
171 #17 0x7ffff5c93b96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
172 #18 0x41def9 in _start (ffmpeg_asan+0x41def9)
173
1740x619000002d60 is located 32 bytes to the left of 1055-byte region [0x619000002d80,0x61900000319f)
175allocated by thread T0 here:
176 #0 0x4de9e8 in posix_memalign (ffmpeg_asan+0x4de9e8)
177 #1 0x8598211 in av_malloc ffmpeg/libavutil/mem.c:87:9
178 #2 0x84ff141 in av_buffer_alloc ffmpeg/libavutil/buffer.c:72:12
179 #3 0x84ff141 in av_buffer_allocz ffmpeg/libavutil/buffer.c:85
180 #4 0x8503966 in pool_alloc_buffer ffmpeg/libavutil/buffer.c:313:26
181 #5 0x8503966 in av_buffer_pool_get ffmpeg/libavutil/buffer.c:349
182 #6 0x91ab2d in ff_frame_pool_get ffmpeg/libavfilter/framepool.c:222:29
183 #7 0x15d770c in ff_default_get_video_buffer ffmpeg/libavfilter/video.c:90:13
184 #8 0x124c5c9 in scale_frame ffmpeg/libavfilter/vf_scale.c:460:11
185 #9 0x124a6bc in filter_frame ffmpeg/libavfilter/vf_scale.c:549:11
186 #10 0x826e29 in ff_filter_activate_default ffmpeg/libavfilter/avfilter.c:1071:11
187 #11 0x826e29 in ff_filter_activate ffmpeg/libavfilter/avfilter.c:1430
188 #12 0x86fcd5 in push_frame ffmpeg/libavfilter/buffersrc.c:187:15
189 #13 0x86fcd5 in av_buffersrc_add_frame_internal ffmpeg/libavfilter/buffersrc.c:261
190 #14 0x86e762 in av_buffersrc_add_frame_flags ffmpeg/libavfilter/buffersrc.c:170:16
191 #15 0x666407 in ifilter_send_frame ffmpeg/fftools/ffmpeg.c:2186:11
192 #16 0x666407 in send_frame_to_filters ffmpeg/fftools/ffmpeg.c:2260
193 #17 0x607666 in decode_video ffmpeg/fftools/ffmpeg.c:2459:11
194 #18 0x607666 in process_input_packet ffmpeg/fftools/ffmpeg.c:2613
195 #19 0x64a707 in process_input ffmpeg/fftools/ffmpeg.c:4508:5
196 #20 0x5e7157 in transcode_step ffmpeg/fftools/ffmpeg.c:4628:11
197 #21 0x5e7157 in transcode ffmpeg/fftools/ffmpeg.c:4682
198 #22 0x5db65b in main ffmpeg/fftools/ffmpeg.c:4884:9
199 #23 0x7ffff5c93b96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
200
201SUMMARY: AddressSanitizer: heap-buffer-overflow ffmpeg/libavfilter/vf_bwdif.c:133:5 in filter_intra
202Shadow bytes around the buggy address:
203 0x0c327fff8550: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
204 0x0c327fff8560: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
205 0x0c327fff8570: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
206 0x0c327fff8580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
207 0x0c327fff8590: 00 00 00 00 00 fa fa fa fa fa fa fa fa fa fa fa
208=>0x0c327fff85a0: fa fa fa fa fa fa fa fa fa fa fa fa[fa]fa fa fa
209 0x0c327fff85b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
210 0x0c327fff85c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
211 0x0c327fff85d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
212 0x0c327fff85e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
213 0x0c327fff85f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
214Shadow byte legend (one shadow byte represents 8 application bytes):
215 Addressable: 00
216 Partially addressable: 01 02 03 04 05 06 07
217 Heap left redzone: fa
218 Freed heap region: fd
219 Stack left redzone: f1
220 Stack mid redzone: f2
221 Stack right redzone: f3
222 Stack after return: f5
223 Stack use after scope: f8
224 Global redzone: f9
225 Global init order: f6
226 Poisoned by user: f7
227 Container overflow: fc
228 Array cookie: ac
229 Intra object redzone: bb
230 ASan internal: fe
231 Left alloca redzone: ca
232 Right alloca redzone: cb
233==15693==ABORTING
234[Thread 0x7fffd2409700 (LWP 16066) exited]
235[Thread 0x7fffd2c20700 (LWP 16062) exited]
236[Thread 0x7fffd3437700 (LWP 16061) exited]
237[Thread 0x7fffd3c4e700 (LWP 16059) exited]
238[Thread 0x7fffd4465700 (LWP 16055) exited]
239[Thread 0x7fffd4c7c700 (LWP 16051) exited]
240[Thread 0x7fffd5493700 (LWP 16047) exited]
241[Thread 0x7fffd5caa700 (LWP 16044) exited]
242[Thread 0x7fffd64c1700 (LWP 16038) exited]
243[Thread 0x7fffd6cd8700 (LWP 16035) exited]
244[Thread 0x7fffd74ef700 (LWP 16033) exited]
245[Thread 0x7fffd7d06700 (LWP 16030) exited]
246[Thread 0x7fffd851d700 (LWP 16026) exited]
247[Thread 0x7fffd8d34700 (LWP 16025) exited]
248[Thread 0x7fffd954b700 (LWP 16017) exited]
249[Thread 0x7fffd9d62700 (LWP 16008) exited]
250[Thread 0x7fffda579700 (LWP 16006) exited]
251[Thread 0x7fffdad90700 (LWP 16004) exited]
252[Thread 0x7fffdb5a7700 (LWP 16003) exited]
253[Thread 0x7fffdbdbe700 (LWP 15997) exited]
254[Thread 0x7fffdc5d5700 (LWP 15995) exited]
255[Thread 0x7fffdcdec700 (LWP 15992) exited]
256[Thread 0x7fffdd603700 (LWP 15988) exited]
257[Thread 0x7fffdde1a700 (LWP 15985) exited]
258[Thread 0x7fffde631700 (LWP 15983) exited]
259[Thread 0x7fffdee48700 (LWP 15981) exited]
260[Thread 0x7fffdf65f700 (LWP 15980) exited]
261[Thread 0x7fffdfe76700 (LWP 15976) exited]
262[Thread 0x7fffe068d700 (LWP 15974) exited]
263[Thread 0x7fffe0ea4700 (LWP 15971) exited]
264[Thread 0x7fffe16bb700 (LWP 15968) exited]
265[Thread 0x7fffe1ed2700 (LWP 15965) exited]
266[Thread 0x7fffe26e9700 (LWP 15962) exited]
267[Thread 0x7fffe2f00700 (LWP 15959) exited]
268[Thread 0x7fffe3709700 (LWP 15958) exited]
269[Thread 0x7fffe3f0a700 (LWP 15957) exited]
270[Thread 0x7fffe470b700 (LWP 15954) exited]
271[Thread 0x7fffe4f0c700 (LWP 15952) exited]
272[Thread 0x7fffe570d700 (LWP 15950) exited]
273[Thread 0x7fffe5f0e700 (LWP 15947) exited]
274[Thread 0x7fffe670f700 (LWP 15944) exited]
275[Thread 0x7fffe6f10700 (LWP 15941) exited]
276[Thread 0x7fffe7711700 (LWP 15937) exited]
277[Thread 0x7fffe7f12700 (LWP 15935) exited]
278[Thread 0x7fffe8713700 (LWP 15932) exited]
279[Thread 0x7fffe8f14700 (LWP 15929) exited]
280[Thread 0x7fffe9715700 (LWP 15922) exited]
281[Thread 0x7fffe9f16700 (LWP 15921) exited]
282[Thread 0x7fffea717700 (LWP 15920) exited]
283[Thread 0x7fffeaf18700 (LWP 15918) exited]
284[Thread 0x7fffeb719700 (LWP 15912) exited]
285[Thread 0x7fffebf1a700 (LWP 15908) exited]
286[Thread 0x7fffec71b700 (LWP 15906) exited]
287[Thread 0x7fffed71d700 (LWP 15901) exited]
288[Thread 0x7fffedf1e700 (LWP 15899) exited]
289[Thread 0x7fffee71f700 (LWP 15898) exited]
290[Thread 0x7fffeef20700 (LWP 15894) exited]
291[Thread 0x7fffef721700 (LWP 15891) exited]
292[Thread 0x7fffeff22700 (LWP 15890) exited]
293[Thread 0x7ffff0723700 (LWP 15880) exited]
294[Thread 0x7ffff0f24700 (LWP 15877) exited]
295[Thread 0x7ffff1725700 (LWP 15874) exited]
296[Thread 0x7ffff7fb6780 (LWP 15693) exited]
297[Inferior 1 (process 15693) exited with code 01]
298