Ticket #7995: gdb_log_7995

File gdb_log_7995, 7.9 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 -i tmp/tmp.flv -map 0 -c:v zmbv -c:s:3 ayuv -disposition:v:109 dpx -disposition:s pcm_mulaw -r 6 -ab 945 -ac 3 -level 37 tmp_/tmp_.loas
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, flv, from 'tmp/tmp.flv':
31 Metadata:
32 encoder : Lavf57.66.105
33 Duration: 00:00:05.60, start: 0.000000, bitrate: 627 kb/s
34 Stream #0:0: Audio: mp3, 48000 Hz, mono, fltp, 64 kb/s
35 Stream #0:1: Video: flv1, yuv420p, 560x320, 200 kb/s, 30 fps, 30 tbr, 1k tbn
36Stream mapping:
37 Stream #0:0 -> #0:0 (mp3 (mp3float) -> aac (native))
38 Stream #0:1 -> #0:1 (flv1 (flv) -> zmbv (native))
39Press [q] to stop, [?] for help
40[New Thread 0x7ffff0057700 (LWP 30217)]
41[New Thread 0x7fffef856700 (LWP 30218)]
42[New Thread 0x7fffef055700 (LWP 30219)]
43[New Thread 0x7fffee854700 (LWP 30220)]
44[New Thread 0x7fffee053700 (LWP 30221)]
45[New Thread 0x7fffed852700 (LWP 30222)]
46[New Thread 0x7fffed051700 (LWP 30223)]
47[New Thread 0x7fffec850700 (LWP 30224)]
48[New Thread 0x7fffec04f700 (LWP 30225)]
49[New Thread 0x7fffeb84e700 (LWP 30226)]
50[New Thread 0x7fffeb04d700 (LWP 30227)]
51[New Thread 0x7fffea84c700 (LWP 30228)]
52[aac @ 0x619000003c80] Bitrate 945 is extremely low, maybe you mean 945k
53[aac @ 0x619000003c80] Using a PCE to encode channel layout "2.1"
54The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s
55[New Thread 0x7fffe9f3d700 (LWP 30229)]
56[New Thread 0x7fffe973c700 (LWP 30230)]
57[New Thread 0x7fffe8f3b700 (LWP 30231)]
58[New Thread 0x7fffe873a700 (LWP 30232)]
59[New Thread 0x7fffe7f23700 (LWP 30233)]
60[New Thread 0x7fffe770c700 (LWP 30234)]
61[New Thread 0x7fffe6ef5700 (LWP 30235)]
62[New Thread 0x7fffe66de700 (LWP 30236)]
63[New Thread 0x7fffe5ec7700 (LWP 30237)]
64[New Thread 0x7fffe56b0700 (LWP 30238)]
65[New Thread 0x7fffe4e99700 (LWP 30239)]
66[New Thread 0x7fffe4682700 (LWP 30240)]
67Output #0, latm, to 'tmp_/tmp_.loas':
68 Metadata:
69 encoder : Lavf58.28.101
70 Stream #0:0: Audio: aac (LC), 48000 Hz, 2.1, fltp, 0 kb/s
71 Metadata:
72 encoder : Lavc58.53.101 aac
73 Stream #0:1: Video: zmbv, bgr0, 560x320, q=2-31, 200 kb/s, 6 fps, 6 tbn, 6 tbc
74 Metadata:
75 encoder : Lavc58.53.101 zmbv
76libavcodec/aacpsy.c:797:29: runtime error: division by zero
77SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavcodec/aacpsy.c:797:29 in
78=================================================================
79==30213==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x7fffe3b817f0 at pc 0x0000063316d5 bp 0x7fffffff9e30 sp 0x7fffffff9e28
80READ of size 1 at 0x7fffe3b817f0 thread T0
81 #0 0x63316d4 in block_cmp ffmpeg/libavcodec/zmbvenc.c:97:30
82 #1 0x632b02b in zmbv_me ffmpeg/libavcodec/zmbvenc.c:153:18
83 #2 0x632b02b in encode_frame ffmpeg/libavcodec/zmbvenc.c:242
84 #3 0x303c9a0 in avcodec_encode_video2 ffmpeg/libavcodec/encode.c:296:11
85 #4 0x303fb3e in do_encode ffmpeg/libavcodec/encode.c:365:15
86 #5 0x303f21a in avcodec_send_frame ffmpeg/libavcodec/encode.c:414:12
87 #6 0x63230a in do_video_out ffmpeg/fftools/ffmpeg.c:1287:15
88 #7 0x629ec0 in reap_filters ffmpeg/fftools/ffmpeg.c:1504:17
89 #8 0x5bd8e3 in transcode_step ffmpeg/fftools/ffmpeg.c:4648:12
90 #9 0x5bd8e3 in transcode ffmpeg/fftools/ffmpeg.c:4692
91 #10 0x5b2feb in main ffmpeg/fftools/ffmpeg.c:4894:9
92 #11 0x7ffff4fb2b96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
93 #12 0x41fb39 in _start (ffmpeg/ffmpeg_g+0x41fb39)
94
950x7fffe3b817f0 is located 16 bytes to the left of 763424-byte region [0x7fffe3b81800,0x7fffe3c3be20)
96allocated by thread T0 here:
97 #0 0x4ad2ad in posix_memalign opt/llvm/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cc:226
98 #1 0x833b2e5 in av_malloc ffmpeg/libavutil/mem.c:87:9
99 #2 0x833b2e5 in av_mallocz ffmpeg/libavutil/mem.c:238
100 #3 0x63268b0 in encode_init ffmpeg/libavcodec/zmbvenc.c:413:25
101
102SUMMARY: AddressSanitizer: heap-buffer-overflow ffmpeg/libavcodec/zmbvenc.c:97:30 in block_cmp
103Shadow bytes around the buggy address:
104 0x10007c7682a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
105 0x10007c7682b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
106 0x10007c7682c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
107 0x10007c7682d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
108 0x10007c7682e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
109=>0x10007c7682f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa[fa]fa
110 0x10007c768300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
111 0x10007c768310: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
112 0x10007c768320: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
113 0x10007c768330: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
114 0x10007c768340: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
115Shadow byte legend (one shadow byte represents 8 application bytes):
116 Addressable: 00
117 Partially addressable: 01 02 03 04 05 06 07
118 Heap left redzone: fa
119 Freed heap region: fd
120 Stack left redzone: f1
121 Stack mid redzone: f2
122 Stack right redzone: f3
123 Stack after return: f5
124 Stack use after scope: f8
125 Global redzone: f9
126 Global init order: f6
127 Poisoned by user: f7
128 Container overflow: fc
129 Array cookie: ac
130 Intra object redzone: bb
131 ASan internal: fe
132 Left alloca redzone: ca
133 Right alloca redzone: cb
134 Shadow gap: cc
135==30213==ABORTING
136[Thread 0x7fffe4682700 (LWP 30240) exited]
137[Thread 0x7fffe4e99700 (LWP 30239) exited]
138[Thread 0x7fffe56b0700 (LWP 30238) exited]
139[Thread 0x7fffe5ec7700 (LWP 30237) exited]
140[Thread 0x7fffe66de700 (LWP 30236) exited]
141[Thread 0x7fffe6ef5700 (LWP 30235) exited]
142[Thread 0x7fffe770c700 (LWP 30234) exited]
143[Thread 0x7fffe7f23700 (LWP 30233) exited]
144[Thread 0x7fffe8f3b700 (LWP 30231) exited]
145[Thread 0x7fffe973c700 (LWP 30230) exited]
146[Thread 0x7fffe9f3d700 (LWP 30229) exited]
147[Thread 0x7fffea84c700 (LWP 30228) exited]
148[Thread 0x7fffeb04d700 (LWP 30227) exited]
149[Thread 0x7fffeb84e700 (LWP 30226) exited]
150[Thread 0x7fffec04f700 (LWP 30225) exited]
151[Thread 0x7fffec850700 (LWP 30224) exited]
152[Thread 0x7fffed051700 (LWP 30223) exited]
153[Thread 0x7fffed852700 (LWP 30222) exited]
154[Thread 0x7fffee053700 (LWP 30221) exited]
155[Thread 0x7fffee854700 (LWP 30220) exited]
156[Thread 0x7fffef055700 (LWP 30219) exited]
157[Thread 0x7fffef856700 (LWP 30218) exited]
158[Thread 0x7ffff0057700 (LWP 30217) exited]
159[Thread 0x7ffff7fad780 (LWP 30213) exited]
160[Inferior 1 (process 30213) exited with code 01]
161(gdb) bt
162No stack.
163(gdb) disass $pc-32,$pc+32
164No registers.
165(gdb) info all-registers
166The program has no registers now.
167