Ticket #8265: gdb-vf_lenscorrection_177

File gdb-vf_lenscorrection_177, 14.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/tmp3/tmp-18.png48'.
16Reading option '-filter_complex' ... matched as option 'filter_complex' (create a complex filtergraph) with argument 'lenscorrection'.
17Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
18Reading option 'output/tmp.wtv' ... matched as output url.
19Finished splitting the commandline.
20Parsing a group of options: global .
21Applying option y (overwrite output files) with argument 1.
22Applying option filter_complex (create a complex filtergraph) with argument lenscorrection.
23Applying option loglevel (set logging level) with argument 99.
24Successfully parsed a group of options.
25Parsing a group of options: input url samples/tmp3/tmp-18.png48.
26Successfully parsed a group of options.
27Opening an input file: samples/tmp3/tmp-18.png48.
28[NULL @ 0x61b000000080] Opening 'samples/tmp3/tmp-18.png48' for reading
29[file @ 0x610000000040] Setting default whitelist 'file,crypto'
30Probing mpegts score:2 size:290
31Probing png_pipe score:99 size:290
32[png_pipe @ 0x61b000000080] Format png_pipe probed with size=2048 and score=99
33[png_pipe @ 0x61b000000080] Before avformat_find_stream_info() pos: 0 bytes read:290 seeks:0 nb_streams:1
34[png_pipe @ 0x61b000000080] stream 0: start_time: -368934881474191040.000 duration: -368934881474191040.000
35[png_pipe @ 0x61b000000080] format: start_time: -9223372036854.775 duration: -9223372036854.775 (estimate from bit rate) bitrate=0 kb/s
36[png_pipe @ 0x61b000000080] After avformat_find_stream_info() pos: 290 bytes read:290 seeks:0 frames:1
37Input #0, png_pipe, from 'samples/tmp3/tmp-18.png48':
38 Duration: N/A, bitrate: N/A
39 Stream #0:0, 1, 1/25: Video: png, 1 reference frame, rgba64be(pc), 1x1, 0/1, 25 tbr, 25 tbn, 25 tbc
40Successfully opened the file.
41Parsing a group of options: output url output/tmp.wtv.
42Successfully parsed a group of options.
43Opening an output file: output/tmp.wtv.
44[file @ 0x610000000840] Setting default whitelist 'file,crypto'
45Successfully opened the file.
46detected 48 logical cores
47[New Thread 0x7ffff1725700 (LWP 41974)]
48[New Thread 0x7ffff0f24700 (LWP 41977)]
49[New Thread 0x7ffff0723700 (LWP 41979)]
50[New Thread 0x7fffeff22700 (LWP 41985)]
51[New Thread 0x7fffef721700 (LWP 41991)]
52[New Thread 0x7fffeef20700 (LWP 41993)]
53[New Thread 0x7fffee71f700 (LWP 41996)]
54[New Thread 0x7fffedf1e700 (LWP 41998)]
55[New Thread 0x7fffed71d700 (LWP 42000)]
56[New Thread 0x7fffecf1c700 (LWP 42003)]
57[New Thread 0x7fffec71b700 (LWP 42005)]
58[New Thread 0x7fffebf1a700 (LWP 42010)]
59[New Thread 0x7fffeb719700 (LWP 42012)]
60[New Thread 0x7fffeaf18700 (LWP 42015)]
61[New Thread 0x7fffea717700 (LWP 42017)]
62[New Thread 0x7fffe9f16700 (LWP 42019)]
63Stream mapping:
64 Stream #0:0 (png) -> lenscorrection
65 lenscorrection -> Stream #0:0 (mpeg2video)
66Press [q] to stop, [?] for help
67cur_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)
68[New Thread 0x7fffe9715700 (LWP 42027)]
69[New Thread 0x7fffe8f14700 (LWP 42038)]
70[New Thread 0x7fffe8713700 (LWP 42046)]
71[New Thread 0x7fffe7f12700 (LWP 42063)]
72[New Thread 0x7fffe7711700 (LWP 42068)]
73[New Thread 0x7fffe6f10700 (LWP 42079)]
74[New Thread 0x7fffe670f700 (LWP 42081)]
75[New Thread 0x7fffe5f0e700 (LWP 42086)]
76[New Thread 0x7fffe570d700 (LWP 42094)]
77[New Thread 0x7fffe4f0c700 (LWP 42097)]
78[New Thread 0x7fffe470b700 (LWP 42104)]
79[New Thread 0x7fffe3f0a700 (LWP 42117)]
80[New Thread 0x7fffe3709700 (LWP 42127)]
81[New Thread 0x7fffe2f00700 (LWP 42141)]
82[New Thread 0x7fffe26e9700 (LWP 42143)]
83[New Thread 0x7fffe1ed2700 (LWP 42148)]
84[New Thread 0x7fffe16bb700 (LWP 42153)]
85[New Thread 0x7fffe0ea4700 (LWP 42156)]
86[New Thread 0x7fffe068d700 (LWP 42158)]
87[New Thread 0x7fffdfe76700 (LWP 42171)]
88[New Thread 0x7fffdf65f700 (LWP 42177)]
89[New Thread 0x7fffdee48700 (LWP 42183)]
90[New Thread 0x7fffde631700 (LWP 42191)]
91[New Thread 0x7fffdde1a700 (LWP 42192)]
92[New Thread 0x7fffdd603700 (LWP 42195)]
93[New Thread 0x7fffdcdec700 (LWP 42204)]
94[New Thread 0x7fffdc5d5700 (LWP 42212)]
95[New Thread 0x7fffdbdbe700 (LWP 42216)]
96[New Thread 0x7fffdb5a7700 (LWP 42221)]
97[New Thread 0x7fffdad90700 (LWP 42229)]
98[New Thread 0x7fffda579700 (LWP 42236)]
99[New Thread 0x7fffd9d62700 (LWP 42251)]
100[New Thread 0x7fffd954b700 (LWP 42259)]
101[New Thread 0x7fffd8d34700 (LWP 42266)]
102[New Thread 0x7fffd851d700 (LWP 42272)]
103[New Thread 0x7fffd7d06700 (LWP 42281)]
104[New Thread 0x7fffd74ef700 (LWP 42282)]
105[New Thread 0x7fffd6cd8700 (LWP 42286)]
106[New Thread 0x7fffd64c1700 (LWP 42290)]
107[New Thread 0x7fffd5caa700 (LWP 42292)]
108[New Thread 0x7fffd5493700 (LWP 42295)]
109[New Thread 0x7fffd4c7c700 (LWP 42299)]
110[New Thread 0x7fffd4465700 (LWP 42300)]
111[New Thread 0x7fffd3c4e700 (LWP 42302)]
112[New Thread 0x7fffd3437700 (LWP 42306)]
113[New Thread 0x7fffd2c20700 (LWP 42309)]
114[New Thread 0x7fffd2409700 (LWP 42315)]
115[New Thread 0x7fffd1bf2700 (LWP 42317)]
116 Last message repeated 1 times
117[graph 0 input from stream 0:0 @ 0x6110000011c0] Setting 'video_size' to value '1x1'
118[graph 0 input from stream 0:0 @ 0x6110000011c0] Setting 'pix_fmt' to value '106'
119[graph 0 input from stream 0:0 @ 0x6110000011c0] Setting 'time_base' to value '1/25'
120[graph 0 input from stream 0:0 @ 0x6110000011c0] Setting 'pixel_aspect' to value '0/1'
121[graph 0 input from stream 0:0 @ 0x6110000011c0] Setting 'sws_param' to value 'flags=2'
122[graph 0 input from stream 0:0 @ 0x6110000011c0] Setting 'frame_rate' to value '25/1'
123[graph 0 input from stream 0:0 @ 0x6110000011c0] w:1 h:1 pixfmt:rgba64be tb:1/25 fr:25/1 sar:0/1 sws_param:flags=2
124[format @ 0x611000001440] Setting 'pix_fmts' to value 'yuv420p|yuv422p'
125[auto_scaler_0 @ 0x611000007980] w:iw h:ih flags:'bilinear' interl:0
126[Parsed_lenscorrection_0 @ 0x611000001080] auto-inserting filter 'auto_scaler_0' between the filter 'graph 0 input from stream 0:0' and the filter 'Parsed_lenscorrection_0'
127[AVFilterGraph @ 0x60e0000010c0] query_formats: 4 queried, 2 merged, 1 already done, 0 delayed
128[auto_scaler_0 @ 0x611000007980] picking yuv420p out of 2 ref:rgba64be alpha:1
129[auto_scaler_0 @ 0x611000007980] w:1 h:1 fmt:rgba64be sar:0/1 -> w:1 h:1 fmt:yuv420p sar:0/1 flags:0x2
130libavfilter/vf_lenscorrection.c:177:45: runtime error: division by zero
131SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavfilter/vf_lenscorrection.c:177:45 in
132
133Thread 1 "ffmpeg_asan" received signal SIGFPE, Arithmetic exception.
1340x0000000000e45a68 in filter_frame (inlink=<optimized out>, in=<optimized out>) at libavfilter/vf_lenscorrection.c:177
135177 const int64_t r2inv = (4LL<<60) / (w * w + h * h);
136(gdb) bt
137#0 0x0000000000e45a68 in filter_frame (inlink=<optimized out>, in=<optimized out>) at libavfilter/vf_lenscorrection.c:177
138#1 0x0000000000826e2a in ff_filter_frame_framed (link=<optimized out>, frame=0x0) at libavfilter/avfilter.c:1071
139#2 ff_filter_frame_to_filter (link=<optimized out>) at libavfilter/avfilter.c:1219
140#3 ff_filter_activate_default (filter=0x611000001080) at libavfilter/avfilter.c:1268
141#4 ff_filter_activate (filter=0x611000001080) at libavfilter/avfilter.c:1430
142#5 0x000000000086fd23 in push_frame (graph=0x60e0000010c0) at libavfilter/buffersrc.c:187
143#6 av_buffersrc_add_frame_internal (ctx=<optimized out>, frame=0x61600000e480, flags=4) at libavfilter/buffersrc.c:261
144#7 0x000000000086e763 in av_buffersrc_add_frame_flags (ctx=0x6110000011c0, frame=0x61600000e480, flags=4) at libavfilter/buffersrc.c:170
145#8 0x0000000000666408 in ifilter_send_frame (ifilter=<optimized out>, frame=<optimized out>) at fftools/ffmpeg.c:2186
146#9 send_frame_to_filters (ist=0x615000000040, decoded_frame=0x61600000e480) at fftools/ffmpeg.c:2260
147#10 0x0000000000607667 in decode_video (ist=0x615000000040, pkt=0x7fff00000000, got_output=0x7fffffffb4a0, duration_pts=<optimized out>, eof=<optimized out>, decode_failed=<optimized out>)
148 at fftools/ffmpeg.c:2459
149#11 process_input_packet (ist=0x615000000040, pkt=0x0, no_eof=0) at fftools/ffmpeg.c:2613
150#12 0x0000000000644c59 in process_input (file_index=0) at fftools/ffmpeg.c:4303
151#13 0x00000000005e7158 in transcode_step () at fftools/ffmpeg.c:4628
152#14 transcode () at fftools/ffmpeg.c:4682
153#15 0x00000000005db65c in main (argc=<optimized out>, argv=<optimized out>) at fftools/ffmpeg.c:4884
154(gdb) disass $pc-32,$pc+32
155Dump of assembler code from 0xe45a48 to 0xe45a88:
156 0x0000000000e45a48 <filter_frame+4104>: je 0xe4690a <filter_frame+7882>
157 0x0000000000e45a4e <filter_frame+4110>: mov $0xb340eac,%edi
158 0x0000000000e45a53 <filter_frame+4115>: callq 0x505ae0 <__sanitizer_cov_trace_pc_guard>
159 0x0000000000e45a58 <filter_frame+4120>: mov 0x68(%rbx),%r12
160 0x0000000000e45a5c <filter_frame+4124>: movabs $0x4000000000000000,%rax
161 0x0000000000e45a66 <filter_frame+4134>: cqto
162=> 0x0000000000e45a68 <filter_frame+4136>: idiv %r14
163 0x0000000000e45a6b <filter_frame+4139>: mov %rax,0x120(%rbx)
164 0x0000000000e45a72 <filter_frame+4146>: movslq 0x10(%rbx),%rdi
165 0x0000000000e45a76 <filter_frame+4150>: movslq 0x4(%rbx),%rsi
166 0x0000000000e45a7a <filter_frame+4154>: shl $0x2,%rsi
167 0x0000000000e45a7e <filter_frame+4158>: callq 0x8598a50 <av_malloc_array>
168 0x0000000000e45a83 <filter_frame+4163>: mov %rax,%r14
169 0x0000000000e45a86 <filter_frame+4166>: cmpb $0x0,0x1(%rbx)
170End of assembler dump.
171(gdb) n
1720x00000000004e2830 in __asan::AsanOnDeadlySignal(int, void*, void*) ()
173(gdb) n
174Single stepping until exit from function _ZN6__asan18AsanOnDeadlySignalEiPvS0_,
175which has no line number information.
176AddressSanitizer:DEADLYSIGNAL
177=================================================================
178==41795==ERROR: AddressSanitizer: FPE on unknown address 0x000000e45a68 (pc 0x000000e45a68 bp 0x7fffffffaa50 sp 0x7fffffffa760 T0)
179 #0 0xe45a67 in filter_frame ffmpeg/libavfilter/vf_lenscorrection.c:177:45
180 #1 0x826e29 in ff_filter_activate_default ffmpeg/libavfilter/avfilter.c:1071:11
181 #2 0x826e29 in ff_filter_activate ffmpeg/libavfilter/avfilter.c:1430
182 #3 0x86fd22 in push_frame ffmpeg/libavfilter/buffersrc.c:187:15
183 #4 0x86fd22 in av_buffersrc_add_frame_internal ffmpeg/libavfilter/buffersrc.c:261
184 #5 0x86e762 in av_buffersrc_add_frame_flags ffmpeg/libavfilter/buffersrc.c:170:16
185 #6 0x666407 in ifilter_send_frame ffmpeg/fftools/ffmpeg.c:2186:11
186 #7 0x666407 in send_frame_to_filters ffmpeg/fftools/ffmpeg.c:2260
187 #8 0x607666 in decode_video ffmpeg/fftools/ffmpeg.c:2459:11
188 #9 0x607666 in process_input_packet ffmpeg/fftools/ffmpeg.c:2613
189 #10 0x644c58 in process_input ffmpeg/fftools/ffmpeg.c:4303:23
190 #11 0x5e7157 in transcode_step ffmpeg/fftools/ffmpeg.c:4628:11
191 #12 0x5e7157 in transcode ffmpeg/fftools/ffmpeg.c:4682
192 #13 0x5db65b in main ffmpeg/fftools/ffmpeg.c:4884:9
193 #14 0x7ffff5c93b96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
194 #15 0x41def9 in _start (ffmpeg_asan+0x41def9)
195
196AddressSanitizer can not provide additional info.
197SUMMARY: AddressSanitizer: FPE ffmpeg/libavfilter/vf_lenscorrection.c:177:45 in filter_frame
198==41795==ABORTING
199[Thread 0x7fffd1bf2700 (LWP 42317) exited]
200[Thread 0x7fffd2409700 (LWP 42315) exited]
201[Thread 0x7fffd2c20700 (LWP 42309) exited]
202[Thread 0x7fffd3437700 (LWP 42306) exited]
203[Thread 0x7fffd3c4e700 (LWP 42302) exited]
204[Thread 0x7fffd4465700 (LWP 42300) exited]
205[Thread 0x7fffd4c7c700 (LWP 42299) exited]
206[Thread 0x7fffd5493700 (LWP 42295) exited]
207[Thread 0x7fffd5caa700 (LWP 42292) exited]
208[Thread 0x7fffd64c1700 (LWP 42290) exited]
209[Thread 0x7fffd6cd8700 (LWP 42286) exited]
210[Thread 0x7fffd74ef700 (LWP 42282) exited]
211[Thread 0x7fffd7d06700 (LWP 42281) exited]
212[Thread 0x7fffd851d700 (LWP 42272) exited]
213[Thread 0x7fffd8d34700 (LWP 42266) exited]
214[Thread 0x7fffd954b700 (LWP 42259) exited]
215[Thread 0x7fffd9d62700 (LWP 42251) exited]
216[Thread 0x7fffda579700 (LWP 42236) exited]
217[Thread 0x7fffdad90700 (LWP 42229) exited]
218[Thread 0x7fffdb5a7700 (LWP 42221) exited]
219[Thread 0x7fffdbdbe700 (LWP 42216) exited]
220[Thread 0x7fffdc5d5700 (LWP 42212) exited]
221[Thread 0x7fffdcdec700 (LWP 42204) exited]
222[Thread 0x7fffdd603700 (LWP 42195) exited]
223[Thread 0x7fffdde1a700 (LWP 42192) exited]
224[Thread 0x7fffde631700 (LWP 42191) exited]
225[Thread 0x7fffdee48700 (LWP 42183) exited]
226[Thread 0x7fffdf65f700 (LWP 42177) exited]
227[Thread 0x7fffe068d700 (LWP 42158) exited]
228[Thread 0x7fffe0ea4700 (LWP 42156) exited]
229[Thread 0x7fffe16bb700 (LWP 42153) exited]
230[Thread 0x7fffe1ed2700 (LWP 42148) exited]
231[Thread 0x7fffe26e9700 (LWP 42143) exited]
232[Thread 0x7fffe2f00700 (LWP 42141) exited]
233[Thread 0x7fffe3709700 (LWP 42127) exited]
234[Thread 0x7fffe3f0a700 (LWP 42117) exited]
235[Thread 0x7fffe470b700 (LWP 42104) exited]
236[Thread 0x7fffe4f0c700 (LWP 42097) exited]
237[Thread 0x7fffe570d700 (LWP 42094) exited]
238[Thread 0x7fffe5f0e700 (LWP 42086) exited]
239[Thread 0x7fffe670f700 (LWP 42081) exited]
240[Thread 0x7fffe6f10700 (LWP 42079) exited]
241[Thread 0x7fffe7711700 (LWP 42068) exited]
242[Thread 0x7fffe7f12700 (LWP 42063) exited]
243[Thread 0x7fffe8713700 (LWP 42046) exited]
244[Thread 0x7fffe8f14700 (LWP 42038) exited]
245[Thread 0x7fffe9715700 (LWP 42027) exited]
246[Thread 0x7fffe9f16700 (LWP 42019) exited]
247[Thread 0x7fffea717700 (LWP 42017) exited]
248[Thread 0x7fffeaf18700 (LWP 42015) exited]
249[Thread 0x7fffeb719700 (LWP 42012) exited]
250[Thread 0x7fffebf1a700 (LWP 42010) exited]
251[Thread 0x7fffec71b700 (LWP 42005) exited]
252[Thread 0x7fffecf1c700 (LWP 42003) exited]
253[Thread 0x7fffed71d700 (LWP 42000) exited]
254[Thread 0x7fffedf1e700 (LWP 41998) exited]
255[Thread 0x7fffee71f700 (LWP 41996) exited]
256[Thread 0x7fffeef20700 (LWP 41993) exited]
257[Thread 0x7fffef721700 (LWP 41991) exited]
258[Thread 0x7fffeff22700 (LWP 41985) exited]
259[Thread 0x7ffff0723700 (LWP 41979) exited]
260[Thread 0x7ffff0f24700 (LWP 41977) exited]
261[Thread 0x7ffff1725700 (LWP 41974) exited]
262[Thread 0x7ffff7fb6780 (LWP 41795) exited]
263warning: Error removing breakpoint -36
264warning: Error removing breakpoint -37
265warning: Error removing breakpoint -38
266warning: Error removing breakpoint 0
267warning: Error removing breakpoint -37
268warning: Error removing breakpoint -38
269warning: Error removing breakpoint 0
270warning: Error removing breakpoint -38
271warning: Error removing breakpoint 0
272warning: Error removing breakpoint 0
273warning: Error removing breakpoint 0
274warning: Error removing breakpoint 0
275warning: Error removing breakpoint 0
276warning: Error removing breakpoint 0
277[Inferior 1 (process 41795) exited with code 01]
278