Ticket #7992: gdb_log_7992

File gdb_log_7992, 9.6 KB (added by Suhwan, 7 years ago)
Line 
1GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
2Copyright (C) 2018 Free Software Foundation, Inc.
3License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
4This is free software: you are free to change and redistribute it.
5There is NO WARRANTY, to the extent permitted by law. Type "show copying"
6and "show warranty" for details.
7This GDB was configured as "x86_64-linux-gnu".
8Type "show configuration" for configuration details.
9For bug reporting instructions, please see:
10<http://www.gnu.org/software/gdb/bugs/>.
11Find the GDB manual and other documentation resources online at:
12<http://www.gnu.org/software/gdb/documentation/>.
13For help, type "help".
14Type "apropos word" to search for commands related to "word"...
15Reading symbols from ./ffmpeg_g...done.
16(gdb) r
17Starting program: ffmpeg/ffmpeg_g -y -r 80 -i tmp/tmp.mp4 -map 0 -c:v zmbv -c:v:64 rawvideo -disposition:v:66 mlp -disposition:v:126 nellymoser -vframes 7 -r 7 -ar 22050 -ac 3 -level 40 tmp_/tmp_.afc
18[Thread debugging using libthread_db enabled]
19Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
20ffmpeg version N-94163-g664a27ea40 Copyright (c) 2000-2019 the FFmpeg developers
21 built with clang version 9.0.0 (https://github.com/llvm/llvm-project.git 442a120567a4bc6c59bc754f9edabfb770086f36)
22 configuration: --cc=clang --cxx=clang++ --prefix=ffmpeg/install --enable-debug --toolchain=clang-asan
23 libavutil 56. 30.100 / 56. 30.100
24 libavcodec 58. 53.101 / 58. 53.101
25 libavformat 58. 28.101 / 58. 28.101
26 libavdevice 58. 7.100 / 58. 7.100
27 libavfilter 7. 56.100 / 7. 56.100
28 libswscale 5. 4.101 / 5. 4.101
29 libswresample 3. 4.100 / 3. 4.100
30Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'tmp/tmp.mp4':
31 Metadata:
32 major_brand : isom
33 minor_version : 512
34 compatible_brands: isomiso2avc1mp41
35 encoder : Lavf57.66.105
36 Duration: 00:00:05.60, start: 0.000000, bitrate: 256 kb/s
37 Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 560x320 [SAR 1:1 DAR 7:4], 178 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
38 Metadata:
39 handler_name : VideoHandler
40 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 69 kb/s (default)
41 Metadata:
42 handler_name : SoundHandler
43[New Thread 0x7ffff025a700 (LWP 18276)]
44[New Thread 0x7fffefa59700 (LWP 18277)]
45[New Thread 0x7fffef258700 (LWP 18278)]
46[New Thread 0x7fffeea57700 (LWP 18279)]
47[New Thread 0x7fffee256700 (LWP 18280)]
48[New Thread 0x7fffeda55700 (LWP 18281)]
49[New Thread 0x7fffed254700 (LWP 18282)]
50[New Thread 0x7fffeca53700 (LWP 18283)]
51[New Thread 0x7fffec252700 (LWP 18284)]
52[New Thread 0x7fffeba51700 (LWP 18285)]
53[New Thread 0x7fffeb250700 (LWP 18286)]
54[New Thread 0x7fffeaa4f700 (LWP 18287)]
55[New Thread 0x7fffea24e700 (LWP 18288)]
56Stream mapping:
57 Stream #0:0 -> #0:0 (h264 (native) -> zmbv (native))
58 Stream #0:1 -> #0:1 (aac (native) -> pcm_s16be (native))
59Press [q] to stop, [?] for help
60[New Thread 0x7fffe98c8700 (LWP 18289)]
61[New Thread 0x7fffe90bf700 (LWP 18290)]
62[New Thread 0x7fffe88a8700 (LWP 18291)]
63[New Thread 0x7fffe8091700 (LWP 18292)]
64[New Thread 0x7fffe787a700 (LWP 18293)]
65[New Thread 0x7fffe7063700 (LWP 18294)]
66[New Thread 0x7fffe684c700 (LWP 18295)]
67[New Thread 0x7fffe6035700 (LWP 18296)]
68[New Thread 0x7fffe581e700 (LWP 18297)]
69[New Thread 0x7fffe5007700 (LWP 18298)]
70[New Thread 0x7fffe47f0700 (LWP 18299)]
71[New Thread 0x7fffe3fd9700 (LWP 18300)]
72[New Thread 0x7fffe3204700 (LWP 18301)]
73[New Thread 0x7fffe29ed700 (LWP 18302)]
74[New Thread 0x7fffe21d6700 (LWP 18303)]
75[New Thread 0x7fffe19bf700 (LWP 18304)]
76[New Thread 0x7fffe11a8700 (LWP 18305)]
77[New Thread 0x7fffe0991700 (LWP 18306)]
78[New Thread 0x7fffe017a700 (LWP 18307)]
79[New Thread 0x7fffdf963700 (LWP 18308)]
80[New Thread 0x7fffdf14c700 (LWP 18309)]
81[New Thread 0x7fffde935700 (LWP 18310)]
82[New Thread 0x7fffde11e700 (LWP 18311)]
83[New Thread 0x7fffdd907700 (LWP 18312)]
84Output #0, aiff, to 'tmp_/tmp_.afc':
85 Metadata:
86 major_brand : isom
87 minor_version : 512
88 compatible_brands: isomiso2avc1mp41
89 encoder : Lavf58.28.101
90 Stream #0:0(und): Video: zmbv, bgr0, 560x320 [SAR 1:1 DAR 7:4], q=2-31, 200 kb/s, 7 fps, 7 tbn, 7 tbc (default)
91 Metadata:
92 handler_name : VideoHandler
93 encoder : Lavc58.53.101 zmbv
94 Stream #0:1(eng): Audio: pcm_s16be (NONE / 0x454E4F4E), 22050 Hz, 2.1, s16, 1058 kb/s (default)
95 Metadata:
96 handler_name : SoundHandler
97 encoder : Lavc58.53.101 pcm_s16be
98libavcodec/zmbvenc.c:243:29: runtime error: left shift of negative value -8
99SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavcodec/zmbvenc.c:243:29 in
100libavcodec/zmbvenc.c:244:28: runtime error: left shift of negative value -1
101SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavcodec/zmbvenc.c:244:28 in
102[aiff @ 0x61b000003180] Got more than one picture in stream 0, ignoring.
103=================================================================te= 0.8kbits/s dup=0 drop=8 speed=0.229x
104==18272==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x7fffdce067f0 at pc 0x0000063316d5 bp 0x7fffffff9df0 sp 0x7fffffff9de8
105READ of size 1 at 0x7fffdce067f0 thread T0
106 #0 0x63316d4 in block_cmp ffmpeg/libavcodec/zmbvenc.c:97:30
107 #1 0x632b02b in zmbv_me ffmpeg/libavcodec/zmbvenc.c:153:18
108 #2 0x632b02b in encode_frame ffmpeg/libavcodec/zmbvenc.c:242
109 #3 0x303c9a0 in avcodec_encode_video2 ffmpeg/libavcodec/encode.c:296:11
110 #4 0x303fb3e in do_encode ffmpeg/libavcodec/encode.c:365:15
111 #5 0x303f21a in avcodec_send_frame ffmpeg/libavcodec/encode.c:414:12
112 #6 0x63230a in do_video_out ffmpeg/fftools/ffmpeg.c:1287:15
113 #7 0x629ec0 in reap_filters ffmpeg/fftools/ffmpeg.c:1504:17
114 #8 0x5bd8e3 in transcode_step ffmpeg/fftools/ffmpeg.c:4648:12
115 #9 0x5bd8e3 in transcode ffmpeg/fftools/ffmpeg.c:4692
116 #10 0x5b2feb in main ffmpeg/fftools/ffmpeg.c:4894:9
117 #11 0x7ffff4fb2b96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
118 #12 0x41fb39 in _start (ffmpeg/ffmpeg_g+0x41fb39)
119
1200x7fffdce067f0 is located 16 bytes to the left of 763424-byte region [0x7fffdce06800,0x7fffdcec0e20)
121allocated by thread T0 here:
122 #0 0x4ad2ad in posix_memalign opt/llvm/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cc:226
123 #1 0x833b2e5 in av_malloc ffmpeg/libavutil/mem.c:87:9
124 #2 0x833b2e5 in av_mallocz ffmpeg/libavutil/mem.c:238
125 #3 0x63268b0 in encode_init ffmpeg/libavcodec/zmbvenc.c:413:25
126
127SUMMARY: AddressSanitizer: heap-buffer-overflow ffmpeg/libavcodec/zmbvenc.c:97:30 in block_cmp
128Shadow bytes around the buggy address:
129 0x10007b9b8ca0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
130 0x10007b9b8cb0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
131 0x10007b9b8cc0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
132 0x10007b9b8cd0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
133 0x10007b9b8ce0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
134=>0x10007b9b8cf0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa[fa]fa
135 0x10007b9b8d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
136 0x10007b9b8d10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
137 0x10007b9b8d20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
138 0x10007b9b8d30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
139 0x10007b9b8d40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
140Shadow byte legend (one shadow byte represents 8 application bytes):
141 Addressable: 00
142 Partially addressable: 01 02 03 04 05 06 07
143 Heap left redzone: fa
144 Freed heap region: fd
145 Stack left redzone: f1
146 Stack mid redzone: f2
147 Stack right redzone: f3
148 Stack after return: f5
149 Stack use after scope: f8
150 Global redzone: f9
151 Global init order: f6
152 Poisoned by user: f7
153 Container overflow: fc
154 Array cookie: ac
155 Intra object redzone: bb
156 ASan internal: fe
157 Left alloca redzone: ca
158 Right alloca redzone: cb
159 Shadow gap: cc
160==18272==ABORTING
161[Thread 0x7fffdd907700 (LWP 18312) exited]
162[Thread 0x7fffde11e700 (LWP 18311) exited]
163[Thread 0x7fffde935700 (LWP 18310) exited]
164[Thread 0x7fffdf14c700 (LWP 18309) exited]
165[Thread 0x7fffdf963700 (LWP 18308) exited]
166[Thread 0x7fffe017a700 (LWP 18307) exited]
167[Thread 0x7fffe0991700 (LWP 18306) exited]
168[Thread 0x7fffe11a8700 (LWP 18305) exited]
169[Thread 0x7fffe19bf700 (LWP 18304) exited]
170[Thread 0x7fffe21d6700 (LWP 18303) exited]
171[Thread 0x7fffe29ed700 (LWP 18302) exited]
172[Thread 0x7fffe3204700 (LWP 18301) exited]
173[Thread 0x7fffe3fd9700 (LWP 18300) exited]
174[Thread 0x7fffe47f0700 (LWP 18299) exited]
175[Thread 0x7fffe5007700 (LWP 18298) exited]
176[Thread 0x7fffe581e700 (LWP 18297) exited]
177[Thread 0x7fffe6035700 (LWP 18296) exited]
178[Thread 0x7fffe684c700 (LWP 18295) exited]
179[Thread 0x7fffe7063700 (LWP 18294) exited]
180[Thread 0x7fffe787a700 (LWP 18293) exited]
181[Thread 0x7fffe8091700 (LWP 18292) exited]
182[Thread 0x7fffe88a8700 (LWP 18291) exited]
183[Thread 0x7fffe90bf700 (LWP 18290) exited]
184[Thread 0x7fffe98c8700 (LWP 18289) exited]
185[Thread 0x7fffea24e700 (LWP 18288) exited]
186[Thread 0x7fffeaa4f700 (LWP 18287) exited]
187[Thread 0x7fffeb250700 (LWP 18286) exited]
188[Thread 0x7fffeba51700 (LWP 18285) exited]
189[Thread 0x7fffec252700 (LWP 18284) exited]
190[Thread 0x7fffeca53700 (LWP 18283) exited]
191[Thread 0x7fffeda55700 (LWP 18281) exited]
192[Thread 0x7fffee256700 (LWP 18280) exited]
193[Thread 0x7fffeea57700 (LWP 18279) exited]
194[Thread 0x7fffef258700 (LWP 18278) exited]
195[Thread 0x7fffefa59700 (LWP 18277) exited]
196[Thread 0x7ffff025a700 (LWP 18276) exited]
197[Thread 0x7ffff7fad780 (LWP 18272) exited]
198[Inferior 1 (process 18272) exited with code 01]
199(gdb) bt
200No stack.
201(gdb) disass $pc-32,$pc+32
202No registers.
203(gdb) info all-registers
204The program has no registers now.
205