Ticket #7983: gdb_log_7983

File gdb_log_7983, 13.1 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...rdone.
16(gdb) r
17Starting program: ffmpeg/ffmpeg_g -y -r 56 -i tmp.avi -map 0 -c:v jpeg2000 -c:a v308 -disposition:a:124 g722 -disposition:s cinepak -vframes 59 -aframes 21 -r 2 -ar 48000 -ac 19 -strict 3 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) -> jpeg2000 (native))
35Press [q] to stop, [?] for help
36[New Thread 0x7ffff025b700 (LWP 15547)]
37[New Thread 0x7fffefa5a700 (LWP 15548)]
38[New Thread 0x7fffef259700 (LWP 15549)]
39[New Thread 0x7fffeea58700 (LWP 15550)]
40[New Thread 0x7fffee257700 (LWP 15551)]
41[New Thread 0x7fffeda56700 (LWP 15552)]
42[New Thread 0x7fffed255700 (LWP 15553)]
43[New Thread 0x7fffeca54700 (LWP 15554)]
44[New Thread 0x7fffec253700 (LWP 15555)]
45[New Thread 0x7fffeba52700 (LWP 15556)]
46[New Thread 0x7fffeb251700 (LWP 15557)]
47[New Thread 0x7fffeaa50700 (LWP 15558)]
48libavcodec/j2kenc.c:524:31: runtime error: left shift of negative value -288
49SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavcodec/j2kenc.c:524:31 in
50libavcodec/j2kenc.c:530:31: runtime error: left shift of negative value -3
51SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavcodec/j2kenc.c:530:31 in
52libavcodec/j2kenc.c:530:31: runtime error: left shift of negative value -3
53SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavcodec/j2kenc.c:530:31 in
54libavcodec/j2kenc.c:528:31: runtime error: left shift of negative value -1
55SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavcodec/j2kenc.c:528:31 in
56Output #0, adx, to 'tmp/tmp_.adx':
57 Metadata:
58 encoder : Lavf58.28.101
59 Stream #0:0: Video: jpeg2000, yuv410p, 256x240, q=2-31, 200 kb/s, 2 fps, 2 tbn, 2 tbc
60 Metadata:
61 encoder : Lavc58.53.100 jpeg2000
62libavcodec/jpeg2000dwt.c:258:14: runtime error: left shift of negative value -82
63SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavcodec/jpeg2000dwt.c:258:14 in
64libavformat/rawenc.c:70:50: runtime error: division by zero bitrate= 208.8kbits/s dup=0 drop=104 speed=2.78x
65SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavformat/rawenc.c:70:50 in
66
67Thread 1 "ffmpeg_g" received signal SIGFPE, Arithmetic exception.
680x000000000240b7fe in adx_write_trailer (s=<optimized out>) at libavformat/rawenc.c:70
6970 uint64_t sample_count = (file_size - 36) / par->channels / 18 * 32;
70(gdb) bt
71#0 0x000000000240b7fe in adx_write_trailer (s=<optimized out>) at libavformat/rawenc.c:70
72#1 0x0000000002242f86 in av_write_trailer (s=0x61b000001580) at libavformat/mux.c:1283
73#2 0x00000000005c553a in transcode () at fftools/ffmpeg.c:4726
74#3 0x00000000005b2c0c in main (argc=<optimized out>, argv=<optimized out>) at fftools/ffmpeg.c:4894
75(gdb) disass $pc-32,$pc+32
76Dump of assembler code from 0x240b7de to 0x240b81e:
77 0x000000000240b7de <adx_write_trailer+926>: test %r13,%r13
78 0x000000000240b7e1 <adx_write_trailer+929>: je 0x240ba98 <adx_write_trailer+1624>
79 0x000000000240b7e7 <adx_write_trailer+935>: test %al,%al
80 0x000000000240b7e9 <adx_write_trailer+937>: je 0x240ba98 <adx_write_trailer+1624>
81 0x000000000240b7ef <adx_write_trailer+943>: mov $0xb280f20,%edi
82 0x000000000240b7f4 <adx_write_trailer+948>:
83 callq 0x4dc3f0 <__sanitizer_cov_trace_pc_guard(__sanitizer::u32*)>
84 0x000000000240b7f9 <adx_write_trailer+953>: mov %r12,%rax
85 0x000000000240b7fc <adx_write_trailer+956>: cqto
86=> 0x000000000240b7fe <adx_write_trailer+958>: idiv %r13
87 0x000000000240b801 <adx_write_trailer+961>: movabs $0xe38e38e38e38e39,%rcx
88 0x000000000240b80b <adx_write_trailer+971>: imul %rcx
89 0x000000000240b80e <adx_write_trailer+974>: mov %rdx,%rbx
90 0x000000000240b811 <adx_write_trailer+977>: shr $0x3f,%rbx
91 0x000000000240b815 <adx_write_trailer+981>: add %rdx,%rbx
92 0x000000000240b818 <adx_write_trailer+984>: imul $0x20,%rbx,%r12
93 0x000000000240b81c <adx_write_trailer+988>: jo 0x240ba5b <adx_write_trailer+1563>
94End of assembler dump.
95(gdb) info all-registers
96rax 0x131b3 78259
97rbx 0xffffffffffffffff -1
98rcx 0x7fffffffb2a0 140737488335520
99rdx 0x0 0
100rsi 0x7fffffffb2a0 140737488335520
101rdi 0x7fffffffb311 140737488335633
102rbp 0xffffffffffffffff 0xffffffffffffffff
103rsp 0x7fffffffb5a0 0x7fffffffb5a0
104r8 0x6a6cb03abcebc041 7668698031829270593
105r9 0x0 0
106r10 0x7ffff1a7a3cb 140737247683531
107r11 0x206 518
108r12 0x131b3 78259
109r13 0x0 0
110r14 0x613000000200 106858786324992
111r15 0x131d7 78295
112rip 0x240b7fe 0x240b7fe <adx_write_trailer+958>
113eflags 0x10202 [ IF RF ]
114cs 0x33 51
115ss 0x2b 43
116ds 0x0 0
117es 0x0 0
118fs 0x0 0
119gs 0x0 0
120st0 0 (raw 0x00000000000000000000)
121st1 0 (raw 0x00000000000000000000)
122st2 0 (raw 0x00000000000000000000)
123st3 0 (raw 0x00000000000000000000)
124st4 0 (raw 0x00000000000000000000)
125st5 0 (raw 0x00000000000000000000)
126st6 0 (raw 0x00000000000000000000)
127st7 0 (raw 0x00000000000000000000)
128fctrl 0x37f 895
129fstat 0x0 0
130ftag 0xffff 65535
131fiseg 0x0 0
132fioff 0x0 0
133foseg 0x0 0
134fooff 0x0 0
135fop 0x0 0
136mxcsr 0x1fa8 [ OE PE IM DM ZM OM UM PM ]
137bndcfgu {raw = 0x0, config = {base = 0x0, reserved = 0x0, preserved = 0x0, enabled = 0x0}} {
138 raw = 0x0, config = {base = 0, reserved = 0, preserved = 0, enabled = 0}}
139bndstatus {raw = 0x0, status = {bde = 0x0, error = 0x0}} {raw = 0x0, status = {bde = 0, error = 0}}
140ymm0 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
141 v32_int8 = {0x8, 0x0, 0x0, 0x0, 0x30, 0x0, 0x0, 0x0, 0x90, 0xb1, 0xff, 0xff, 0xff, 0x7f,
142 0x0 <repeats 18 times>}, v16_int16 = {0x8, 0x0, 0x30, 0x0, 0xb190, 0xffff, 0x7fff, 0x0, 0x0, 0x0, 0x0, 0x0,
143 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0x8, 0x30, 0xffffb190, 0x7fff, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {
144 0x3000000008, 0x7fffffffb190, 0x0, 0x0}, v2_int128 = {0x7fffffffb1900000003000000008, 0x0}}
145ymm1 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
146 v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0,
147 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
148ymm2 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
149 v32_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x20, 0xab, 0xff, 0xff, 0xff, 0x7f,
150 0x0 <repeats 18 times>}, v16_int16 = {0x0, 0x0, 0x0, 0x0, 0xab20, 0xffff, 0x7fff, 0x0, 0x0, 0x0, 0x0, 0x0,
151 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0x0, 0x0, 0xffffab20, 0x7fff, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x0,
152 0x7fffffffab20, 0x0, 0x0}, v2_int128 = {0x7fffffffab200000000000000000, 0x0}}
153---Type <return> to continue, or q <return> to quit---
154ymm3 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
155 v32_int8 = {0xd, 0x0, 0x0, 0x0, 0x40, 0x61, 0x0 <repeats 26 times>}, v16_int16 = {0xd, 0x0, 0x6140,
156 0x0 <repeats 13 times>}, v8_int32 = {0xd, 0x6140, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x61400000000d,
157 0x0, 0x0, 0x0}, v2_int128 = {0x61400000000d, 0x0}}
158ymm4 {v8_float = {0x0, 0x0, 0xffffffff, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
159 v32_int8 = {0x61, 0x74, 0x65, 0x3d, 0x20, 0x32, 0x30, 0x38, 0x2e, 0x38, 0x6b, 0x62, 0x69, 0x74, 0x73, 0x2f,
160 0x0 <repeats 16 times>}, v16_int16 = {0x7461, 0x3d65, 0x3220, 0x3830, 0x382e, 0x626b, 0x7469, 0x2f73, 0x0,
161 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0x3d657461, 0x38303220, 0x626b382e, 0x2f737469, 0x0, 0x0,
162 0x0, 0x0}, v4_int64 = {0x383032203d657461, 0x2f737469626b382e, 0x0, 0x0}, v2_int128 = {
163 0x2f737469626b382e383032203d657461, 0x0}}
164ymm5 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
165 v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0,
166 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
167ymm6 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
168 v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0,
169 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
170ymm7 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
171 v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0,
172 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
173ymm8 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
174 v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0,
175 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
176ymm9 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
177 v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0,
178 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
179ymm10 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
180 v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0,
181 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
182ymm11 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
183 v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0,
184 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
185ymm12 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
186 v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0,
187 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
188ymm13 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
189 v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0,
190 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
191ymm14 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
192 v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0,
193 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
194ymm15 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0},
195 v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0,
196 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
197bnd0 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1
198bnd1 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1
199bnd2 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1
200bnd3 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1
201