Ticket #7982: gdb_log_7982

File gdb_log_7982, 14.8 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 -t 3 -y -i tmp.avi -map 0 -c:s:1 h263p -c:v r10k -disposition:a r10k -disposition:s adpcm_adx -vframes 64 -aframes 81 tmp/tmp_.adx
18[Thread debugging using libthread_db enabled]
19Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
20ffmpeg version N-94142-g3b2082c663 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++ --extra-cflags=-g --extra-cxxflags=-g --extra-ldflags='-fsanitize=address -g' --prefix=ffmpeg/install --enable-debug --toolchain=clang-asan
23 libavutil 56. 30.100 / 56. 30.100
24 libavcodec 58. 53.100 / 58. 53.100
25 libavformat 58. 28.101 / 58. 28.101
26 libavdevice 58. 7.100 / 58. 7.100
27 libavfilter 7. 55.100 / 7. 55.100
28 libswscale 5. 4.101 / 5. 4.101
29 libswresample 3. 4.100 / 3. 4.100
30Input #0, avi, from 'tmp.avi':
31 Duration: 00:00:03.14, start: 0.000000, bitrate: 736 kb/s
32 Stream #0:0: Video: indeo4 (IV41 / 0x31345649), yuv410p, 256x240, 731 kb/s, 35 fps, 35 tbr, 35 tbn, 35 tbc
33Stream mapping:
34 Stream #0:0 -> #0:0 (indeo4 (native) -> r10k (native))
35Press [q] to stop, [?] for help
36[New Thread 0x7ffff025b700 (LWP 13900)]
37[New Thread 0x7fffefa5a700 (LWP 13901)]
38[New Thread 0x7fffef259700 (LWP 13902)]
39[New Thread 0x7fffeea58700 (LWP 13903)]
40[New Thread 0x7fffee257700 (LWP 13904)]
41[New Thread 0x7fffeda56700 (LWP 13905)]
42[New Thread 0x7fffed255700 (LWP 13906)]
43[New Thread 0x7fffeca54700 (LWP 13907)]
44[New Thread 0x7fffec253700 (LWP 13908)]
45[New Thread 0x7fffeba52700 (LWP 13909)]
46[New Thread 0x7fffeb251700 (LWP 13910)]
47[New Thread 0x7fffeaa50700 (LWP 13911)]
48libavcodec/frame_thread_encoder.c:213:20: runtime error: null pointer passed as argument 1, which is declared to never be null
49/usr/include/string.h:43:28: note: nonnull attribute specified here
50SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavcodec/frame_thread_encoder.c:213:20 in
51libavcodec/frame_thread_encoder.c:213:45: runtime error: null pointer passed as argument 2, which is declared to never be null
52/usr/include/string.h:43:28: note: nonnull attribute specified here
53SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavcodec/frame_thread_encoder.c:213:45 in
54[New Thread 0x7fffe9eff700 (LWP 13912)]
55[New Thread 0x7fffe96fe700 (LWP 13913)]
56[New Thread 0x7fffe8efd700 (LWP 13914)]
57[New Thread 0x7fffe86fc700 (LWP 13915)]
58[New Thread 0x7fffe7efb700 (LWP 13916)]
59[New Thread 0x7fffe76fa700 (LWP 13917)]
60[New Thread 0x7fffe6ef9700 (LWP 13918)]
61[New Thread 0x7fffe66f8700 (LWP 13919)]
62[New Thread 0x7fffe5ef7700 (LWP 13920)]
63[New Thread 0x7fffe56f6700 (LWP 13921)]
64[New Thread 0x7fffe4ef5700 (LWP 13922)]
65[New Thread 0x7fffe46f4700 (LWP 13923)]
66Output #0, adx, to 'tmp/tmp_.adx':
67 Metadata:
68 encoder : Lavf58.28.101
69 Stream #0:0: Video: r10k, gbrp10le, 256x240, q=2-31, 68812 kb/s, 35 fps, 35 tbn, 35 tbc
70 Metadata:
71 encoder : Lavc58.53.100 r10k
72libavcodec/r210enc.c:69:28: runtime error: left shift of 522 by 22 places cannot be represented in type 'int'
73SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavcodec/r210enc.c:69:28 in
74libavformat/rawenc.c:70:50: runtime error: division by zero bitrate=68507.0kbits/s speed=0.669x
75SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavformat/rawenc.c:70:50 in
76
77Thread 1 "ffmpeg_g" received signal SIGFPE, Arithmetic exception.
780x000000000240b7fe in adx_write_trailer (s=<optimized out>) at libavformat/rawenc.c:70
7970 uint64_t sample_count = (file_size - 36) / par->channels / 18 * 32;
80(gdb) bt
81#0 0x000000000240b7fe in adx_write_trailer (s=<optimized out>) at libavformat/rawenc.c:70
82#1 0x0000000002242f86 in av_write_trailer (s=0x61b000001580) at libavformat/mux.c:1283
83#2 0x00000000005c553a in transcode () at fftools/ffmpeg.c:4726
84#3 0x00000000005b2c0c in main (argc=<optimized out>, argv=<optimized out>) at fftools/ffmpeg.c:4894
85(gdb) disass $pc-32,$pc+32
86Dump of assembler code from 0x240b7de to 0x240b81e:
87 0x000000000240b7de <adx_write_trailer+926>: test %r13,%r13
88 0x000000000240b7e1 <adx_write_trailer+929>: je 0x240ba98 <adx_write_trailer+1624>
89 0x000000000240b7e7 <adx_write_trailer+935>: test %al,%al
90 0x000000000240b7e9 <adx_write_trailer+937>: je 0x240ba98 <adx_write_trailer+1624>
91 0x000000000240b7ef <adx_write_trailer+943>: mov $0xb280f20,%edi
92 0x000000000240b7f4 <adx_write_trailer+948>:
93 callq 0x4dc3f0 <__sanitizer_cov_trace_pc_guard(__sanitizer::u32*)>
94 0x000000000240b7f9 <adx_write_trailer+953>: mov %r12,%rax
95 0x000000000240b7fc <adx_write_trailer+956>: cqto
96=> 0x000000000240b7fe <adx_write_trailer+958>: idiv %r13
97 0x000000000240b801 <adx_write_trailer+961>: movabs $0xe38e38e38e38e39,%rcx
98 0x000000000240b80b <adx_write_trailer+971>: imul %rcx
99 0x000000000240b80e <adx_write_trailer+974>: mov %rdx,%rbx
100 0x000000000240b811 <adx_write_trailer+977>: shr $0x3f,%rbx
101 0x000000000240b815 <adx_write_trailer+981>: add %rdx,%rbx
102 0x000000000240b818 <adx_write_trailer+984>: imul $0x20,%rbx,%r12
103 0x000000000240b81c <adx_write_trailer+988>: jo 0x240ba5b <adx_write_trailer+1563>
104End of assembler dump.
105(gdb) info all-registers
106rax 0xefffdc 15728604
107rbx 0xffffffffffffffff -1
108rcx 0x7fffffffb300 140737488335616
109rdx 0x0 0
110rsi 0x7fffffffb300 140737488335616
111rdi 0x7fffffffb371 140737488335729
112rbp 0xffffffffffffffff 0xffffffffffffffff
113rsp 0x7fffffffb600 0x7fffffffb600
114r8 0x6a6cb03abcebc041 7668698031829270593
115r9 0x0 0
116r10 0x7ffff1a113a9 140737247253417
117r11 0x202 514
118r12 0xefffdc 15728604
119r13 0x0 0
120r14 0x613000000200 106858786324992
121r15 0xf00000 15728640
122rip 0x240b7fe 0x240b7fe <adx_write_trailer+958>
123eflags 0x10202 [ IF RF ]
124cs 0x33 51
125ss 0x2b 43
126ds 0x0 0
127es 0x0 0
128fs 0x0 0
129gs 0x0 0
130st0 0 (raw 0x00000000000000000000)
131st1 0 (raw 0x00000000000000000000)
132st2 0 (raw 0x00000000000000000000)
133st3 0 (raw 0x00000000000000000000)
134st4 0 (raw 0x00000000000000000000)
135st5 0 (raw 0x00000000000000000000)
136st6 0 (raw 0x00000000000000000000)
137st7 0 (raw 0x00000000000000000000)
138fctrl 0x37f 895
139fstat 0x0 0
140ftag 0xffff 65535
141fiseg 0x0 0
142fioff 0x0 0
143foseg 0x0 0
144fooff 0x0 0
145fop 0x0 0
146mxcsr 0x1fa8 [ OE PE IM DM ZM OM UM PM ]
147bndcfgu {raw = 0x0, config = {base = 0x0, reserved = 0x0, preserved = 0x0, enabled = 0x0}} {
148 raw = 0x0, config = {base = 0, reserved = 0, preserved = 0, enabled = 0}}
149bndstatus {raw = 0x0, status = {bde = 0x0, error = 0x0}} {raw = 0x0, status = {bde = 0, error = 0}}
150ymm0 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
151 v32_int8 = {0x8, 0x0, 0x0, 0x0, 0x30, 0x0, 0x0, 0x0, 0xf0, 0xb1, 0xff, 0xff, 0xff, 0x7f,
152 0x0 <repeats 18 times>}, v16_int16 = {0x8, 0x0, 0x30, 0x0, 0xb1f0, 0xffff, 0x7fff, 0x0, 0x0, 0x0, 0x0, 0x0,
153 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0x8, 0x30, 0xffffb1f0, 0x7fff, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {
154 0x3000000008, 0x7fffffffb1f0, 0x0, 0x0}, v2_int128 = {0x7fffffffb1f00000003000000008, 0x0}}
155ymm1 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
156 v32_int8 = {0x0, 0xda, 0x6f, 0xf0, 0xff, 0x7f, 0x0, 0x0, 0xa0, 0xb1, 0xff, 0xff, 0xff, 0x7f,
157 0x0 <repeats 18 times>}, v16_int16 = {0xda00, 0xf06f, 0x7fff, 0x0, 0xb1a0, 0xffff, 0x7fff, 0x0, 0x0, 0x0,
158 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0xf06fda00, 0x7fff, 0xffffb1a0, 0x7fff, 0x0, 0x0, 0x0, 0x0},
159 v4_int64 = {0x7ffff06fda00, 0x7fffffffb1a0, 0x0, 0x0}, v2_int128 = {0x7fffffffb1a000007ffff06fda00, 0x0}}
160ymm2 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
161 v32_int8 = {0x0, 0x2, 0x0, 0x0, 0x30, 0x61, 0x0 <repeats 26 times>}, v16_int16 = {0x200, 0x0, 0x6130,
162 0x0 <repeats 13 times>}, v8_int32 = {0x200, 0x6130, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {
163---Type <return> to continue, or q <return> to quit---
164 0x613000000200, 0x0, 0x0, 0x0}, v2_int128 = {0x613000000200, 0x0}}
165ymm3 {v8_float = {0x0, 0x0, 0x0, 0xffffffff, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x7fffffffffffffff,
166 0x0, 0x0}, v32_int8 = {0x1a, 0xc6, 0xb1, 0xac, 0x19, 0x86, 0x61, 0x98, 0x18, 0x86, 0x21, 0x88, 0x17, 0x45,
167 0xd1, 0x74, 0x0 <repeats 16 times>}, v16_int16 = {0xc61a, 0xacb1, 0x8619, 0x9861, 0x8618, 0x8821, 0x4517,
168 0x74d1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0xacb1c61a, 0x98618619, 0x88218618, 0x74d14517,
169 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x98618619acb1c61a, 0x74d1451788218618, 0x0, 0x0}, v2_int128 = {
170 0x74d145178821861898618619acb1c61a, 0x0}}
171ymm4 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
172 v32_int8 = {0x1a, 0xc6, 0xb1, 0xac, 0x1a, 0xc6, 0xb1, 0xac, 0x1a, 0xc6, 0xb1, 0xac, 0x1a, 0xc6, 0xb1, 0xac,
173 0x0 <repeats 16 times>}, v16_int16 = {0xc61a, 0xacb1, 0xc61a, 0xacb1, 0xc61a, 0xacb1, 0xc61a, 0xacb1, 0x0,
174 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0xacb1c61a, 0xacb1c61a, 0xacb1c61a, 0xacb1c61a, 0x0, 0x0,
175 0x0, 0x0}, v4_int64 = {0xacb1c61aacb1c61a, 0xacb1c61aacb1c61a, 0x0, 0x0}, v2_int128 = {
176 0xacb1c61aacb1c61aacb1c61aacb1c61a, 0x0}}
177ymm5 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
178 v32_int8 = {0x1a, 0xc6, 0xb1, 0xac, 0x1a, 0xc6, 0xb1, 0xac, 0x1a, 0xc6, 0xb1, 0xac, 0x1a, 0xc6, 0xb1, 0xac,
179 0x0 <repeats 16 times>}, v16_int16 = {0xc61a, 0xacb1, 0xc61a, 0xacb1, 0xc61a, 0xacb1, 0xc61a, 0xacb1, 0x0,
180 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0xacb1c61a, 0xacb1c61a, 0xacb1c61a, 0xacb1c61a, 0x0, 0x0,
181 0x0, 0x0}, v4_int64 = {0xacb1c61aacb1c61a, 0xacb1c61aacb1c61a, 0x0, 0x0}, v2_int128 = {
182 0xacb1c61aacb1c61aacb1c61aacb1c61a, 0x0}}
183ymm6 {v8_float = {0xffffffff, 0x0, 0x0, 0xfffffffe, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0,
184 0xfffffffffffffffe, 0x0, 0x0}, v32_int8 = {0x17, 0x45, 0xd1, 0x74, 0x18, 0x86, 0x21, 0x88, 0x19, 0x86, 0x61,
185 0x98, 0x1c, 0x7, 0x1, 0xc0, 0x0 <repeats 16 times>}, v16_int16 = {0x4517, 0x74d1, 0x8618, 0x8821, 0x8619,
186 0x9861, 0x71c, 0xc001, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0x74d14517, 0x88218618,
187 0x98618619, 0xc001071c, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x8821861874d14517, 0xc001071c98618619, 0x0, 0x0},
188 v2_int128 = {0xc001071c986186198821861874d14517, 0x0}}
189ymm7 {v8_float = {0xfbe38c00, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x8000000000000000, 0x0,
190 0x0, 0x0}, v32_int8 = {0x1d, 0x7, 0x41, 0xd0, 0x1e, 0x47, 0x91, 0xe4, 0x1f, 0x87, 0xe1, 0xf8, 0x21, 0xc8,
191 0x72, 0x1c, 0x0 <repeats 16 times>}, v16_int16 = {0x71d, 0xd041, 0x471e, 0xe491, 0x871f, 0xf8e1, 0xc821,
192 0x1c72, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0xd041071d, 0xe491471e, 0xf8e1871f, 0x1c72c821,
193 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0xe491471ed041071d, 0x1c72c821f8e1871f, 0x0, 0x0}, v2_int128 = {
194 0x1c72c821f8e1871fe491471ed041071d, 0x0}}
195ymm8 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
196 v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0,
197 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
198ymm9 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
199 v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0,
200 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
201ymm10 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
202 v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0,
203 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
204ymm11 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
205 v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0,
206 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
207ymm12 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
208 v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0,
209 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
210ymm13 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
211 v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0,
212 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
213ymm14 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
214 v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0,
215 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
216ymm15 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
217 v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0,
218 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
219bnd0 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1
220---Type <return> to continue, or q <return> to quit---
221bnd1 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1
222bnd2 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1
223bnd3 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1
224