Ticket #8003: gdb_log_8003

File gdb_log_8003, 8.2 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 14 -i tmp/tmp.wmv -map 0 -c:v:14 mpeg1video -c:v zmbv -disposition:s:19 v210 -disposition:s flv -aframes 10 -ab 45 -ac 9 -b:v 292k -strict 1 tmp_/tmp_.mov
18[Thread debugging using libthread_db enabled]
19Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
20ffmpeg version N-94185-gca576833e4 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.101 / 7. 56.101
28 libswscale 5. 4.101 / 5. 4.101
29 libswresample 3. 4.100 / 3. 4.100
30Guessed Channel Layout for Input Stream #0.1 : mono
31Input #0, asf, from 'tmp/tmp.wmv':
32 Metadata:
33 encoder : Lavf57.66.105
34 Duration: 00:00:05.63, start: 0.000000, bitrate: 647 kb/s
35 Stream #0:0: Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 560x320, SAR 1:1 DAR 7:4, 30 fps, 30 tbr, 1k tbn, 1k tbc
36 Stream #0:1(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, mono, fltp, 128 kb/s
37Stream mapping:
38 Stream #0:0 -> #0:0 (wmv2 (native) -> zmbv (native))
39 Stream #0:1 -> #0:1 (wmav2 (native) -> aac (native))
40Press [q] to stop, [?] for help
41[New Thread 0x7ffff025a700 (LWP 4990)]
42[New Thread 0x7fffefa59700 (LWP 4991)]
43[New Thread 0x7fffef258700 (LWP 4992)]
44[New Thread 0x7fffeea57700 (LWP 4993)]
45[New Thread 0x7fffee256700 (LWP 4994)]
46[New Thread 0x7fffeda55700 (LWP 4995)]
47[New Thread 0x7fffed254700 (LWP 4996)]
48[New Thread 0x7fffeca53700 (LWP 4997)]
49[New Thread 0x7fffec252700 (LWP 4998)]
50[New Thread 0x7fffeba51700 (LWP 4999)]
51[New Thread 0x7fffeb250700 (LWP 5000)]
52[New Thread 0x7fffeaa4f700 (LWP 5001)]
53[aac @ 0x619000008280] Bitrate 45 is extremely low, maybe you mean 45k
54The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s
55libavcodec/aaccoder.c:554:56: runtime error: division by zero
56SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavcodec/aaccoder.c:554:56 in
57libavcodec/aaccoder.c:556:48: runtime error: division by zero
58SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavcodec/aaccoder.c:556:48 in
59[New Thread 0x7fffe9dff700 (LWP 5011)]
60[New Thread 0x7fffe95fe700 (LWP 5012)]
61[New Thread 0x7fffe8dfd700 (LWP 5013)]
62[New Thread 0x7fffe85fc700 (LWP 5015)]
63[New Thread 0x7fffe7dfb700 (LWP 5017)]
64[New Thread 0x7fffe75fa700 (LWP 5018)]
65[New Thread 0x7fffe6df9700 (LWP 5019)]
66[New Thread 0x7fffe65f8700 (LWP 5020)]
67[New Thread 0x7fffe5df7700 (LWP 5021)]
68[New Thread 0x7fffe55f6700 (LWP 5022)]
69[New Thread 0x7fffe4df5700 (LWP 5023)]
70[New Thread 0x7fffe45f4700 (LWP 5024)]
71[mov @ 0x61b000000e80] Using MS style video codec tag, the file may be unplayable!
72Output #0, mov, to 'tmp_/tmp_.mov':
73 Metadata:
74 encoder : Lavf58.28.101
75 Stream #0:0: Video: zmbv, bgr0, 560x320 [SAR 1:1 DAR 7:4], q=2-31, 292 kb/s, 14 fps, 14336 tbn, 14 tbc
76 Metadata:
77 encoder : Lavc58.53.101 zmbv
78 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 0 kb/s
79 Metadata:
80 encoder : Lavc58.53.101 aac
81=================================================================
82==4870==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x7fffe3b097f0 at pc 0x000006333d15 bp 0x7fffffffa290 sp 0x7fffffffa288
83READ of size 1 at 0x7fffe3b097f0 thread T0
84 #0 0x6333d14 in block_cmp ffmpeg/libavcodec/zmbvenc.c:97:30
85 #1 0x632d66b in zmbv_me ffmpeg/libavcodec/zmbvenc.c:153:18
86 #2 0x632d66b in encode_frame ffmpeg/libavcodec/zmbvenc.c:242
87 #3 0x303efe0 in avcodec_encode_video2 ffmpeg/libavcodec/encode.c:296:11
88 #4 0x304217e in do_encode ffmpeg/libavcodec/encode.c:365:15
89 #5 0x304185a in avcodec_send_frame ffmpeg/libavcodec/encode.c:414:12
90 #6 0x63230a in do_video_out ffmpeg/fftools/ffmpeg.c:1287:15
91 #7 0x629ec0 in reap_filters ffmpeg/fftools/ffmpeg.c:1504:17
92 #8 0x5bd8e3 in transcode_step ffmpeg/fftools/ffmpeg.c:4648:12
93 #9 0x5bd8e3 in transcode ffmpeg/fftools/ffmpeg.c:4692
94 #10 0x5b2feb in main ffmpeg/fftools/ffmpeg.c:4894:9
95 #11 0x7ffff4fb2b96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
96 #12 0x41fb39 in _start (ffmpeg/ffmpeg_g+0x41fb39)
97
980x7fffe3b097f0 is located 16 bytes to the left of 763424-byte region [0x7fffe3b09800,0x7fffe3bc3e20)
99allocated by thread T0 here:
100 #0 0x4ad2ad in posix_memalign opt/llvm/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cc:226
101 #1 0x833d8b5 in av_malloc ffmpeg/libavutil/mem.c:87:9
102 #2 0x833d8b5 in av_mallocz ffmpeg/libavutil/mem.c:238
103 #3 0x6328ef0 in encode_init ffmpeg/libavcodec/zmbvenc.c:413:25
104
105SUMMARY: AddressSanitizer: heap-buffer-overflow ffmpeg/libavcodec/zmbvenc.c:97:30 in block_cmp
106Shadow bytes around the buggy address:
107 0x10007c7592a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
108 0x10007c7592b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
109 0x10007c7592c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
110 0x10007c7592d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
111 0x10007c7592e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
112=>0x10007c7592f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa[fa]fa
113 0x10007c759300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
114 0x10007c759310: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
115 0x10007c759320: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
116 0x10007c759330: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
117 0x10007c759340: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
118Shadow byte legend (one shadow byte represents 8 application bytes):
119 Addressable: 00
120 Partially addressable: 01 02 03 04 05 06 07
121 Heap left redzone: fa
122 Freed heap region: fd
123 Stack left redzone: f1
124 Stack mid redzone: f2
125 Stack right redzone: f3
126 Stack after return: f5
127 Stack use after scope: f8
128 Global redzone: f9
129 Global init order: f6
130 Poisoned by user: f7
131 Container overflow: fc
132 Array cookie: ac
133 Intra object redzone: bb
134 ASan internal: fe
135 Left alloca redzone: ca
136 Right alloca redzone: cb
137 Shadow gap: cc
138==4870==ABORTING
139[Thread 0x7fffe4df5700 (LWP 5023) exited]
140[Thread 0x7fffe5df7700 (LWP 5021) exited]
141[Thread 0x7fffe6df9700 (LWP 5019) exited]
142[Thread 0x7fffe7dfb700 (LWP 5017) exited]
143[Thread 0x7fffe85fc700 (LWP 5015) exited]
144[Thread 0x7fffe8dfd700 (LWP 5013) exited]
145[Thread 0x7fffe95fe700 (LWP 5012) exited]
146[Thread 0x7fffe9dff700 (LWP 5011) exited]
147[Thread 0x7fffeaa4f700 (LWP 5001) exited]
148[Thread 0x7fffeb250700 (LWP 5000) exited]
149[Thread 0x7fffeba51700 (LWP 4999) exited]
150[Thread 0x7fffec252700 (LWP 4998) exited]
151[Thread 0x7fffeca53700 (LWP 4997) exited]
152[Thread 0x7fffed254700 (LWP 4996) exited]
153[Thread 0x7fffeda55700 (LWP 4995) exited]
154[Thread 0x7fffee256700 (LWP 4994) exited]
155[Thread 0x7fffeea57700 (LWP 4993) exited]
156[Thread 0x7fffef258700 (LWP 4992) exited]
157[Thread 0x7fffefa59700 (LWP 4991) exited]
158[Thread 0x7ffff025a700 (LWP 4990) exited]
159[Thread 0x7ffff7fad780 (LWP 4870) exited]
160[Thread 0x7fffe45f4700 (LWP 5024) exited]
161[Thread 0x7fffe55f6700 (LWP 5022) exited]
162[Thread 0x7fffe65f8700 (LWP 5020) exited]
163[Inferior 1 (process 4870) exited with code 01]
164(gdb) bt
165No stack.
166(gdb) disass $pc-32,$pc+32
167No registers.
168(gdb) info all-registers
169The program has no registers now.
170