Ticket #8163: gdb-sdsdec71

File gdb-sdsdec71, 15.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/ffmpeg_g...done.
16(gdb) b sdsdec.c:71
17Breakpoint 1 at 0x193d3b0: file libavformat/sdsdec.c, line 71.
18(gdb) ignore 1 10
19Will ignore next 10 crossings of breakpoint 1.
20(gdb) r
21Starting program: ffmpeg_g -y -r 64 -i samples/samples.mplayerhq.hu/A-codecs/libsndfile-samples/sds-pcm24.sds -loglevel 99 -map 0 -c: s:8 wmv1 -c: v:42 aptx -disposition: a:80 avui -disposition: a:7 h263_v4l2m2m -vframes 72 -ab 326k -ac 10 output/tmp.paf
22[Thread debugging using libthread_db enabled]
23Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
24ffmpeg version N-94943-g1db6e47e85 Copyright (c) 2000-2019 the FFmpeg developers
25 built with clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
26 configuration: --cc=clang --cxx=clang++ --ld=clang --enable-debug --toolchain=clang-usan
27 libavutil 56. 35.100 / 56. 35.100
28 libavcodec 58. 56.102 / 58. 56.102
29 libavformat 58. 32.104 / 58. 32.104
30 libavdevice 58. 9.100 / 58. 9.100
31 libavfilter 7. 58.102 / 7. 58.102
32 libswscale 5. 6.100 / 5. 6.100
33 libswresample 3. 6.100 / 3. 6.100
34Splitting the commandline.
35Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
36Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '64'.
37Reading option '-i' ... matched as input url with argument 'samples/samples.mplayerhq.hu/A-codecs/libsndfile-samples/sds-pcm24.sds'.
38Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
39Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0'.
40Reading option '-c:' ... matched as option 'c' (codec name) with argument 's:8'.
41Reading option 'wmv1' ... matched as output url.
42Reading option '-c:' ... matched as option 'c' (codec name) with argument 'v:42'.
43Reading option 'aptx' ... matched as output url.
44Reading option '-disposition:' ... matched as option 'disposition' (disposition) with argument 'a:80'.
45Reading option 'avui' ... matched as output url.
46Reading option '-disposition:' ... matched as option 'disposition' (disposition) with argument 'a:7'.
47Reading option 'h263_v4l2m2m' ... matched as output url.
48Reading option '-vframes' ... matched as option 'vframes' (set the number of video frames to output) with argument '72'.
49Reading option '-ab' ... matched as option 'ab' (audio bitrate (please use -b:a)) with argument '326k'.
50Reading option '-ac' ... matched as option 'ac' (set number of audio channels) with argument '10'.
51Reading option 'output/tmp.paf' ... matched as output url.
52Finished splitting the commandline.
53Parsing a group of options: global .
54Applying option y (overwrite output files) with argument 1.
55Applying option loglevel (set logging level) with argument 99.
56Successfully parsed a group of options.
57Parsing a group of options: input url samples/samples.mplayerhq.hu/A-codecs/libsndfile-samples/sds-pcm24.sds.
58Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 64.
59Successfully parsed a group of options.
60Opening an input file: samples/samples.mplayerhq.hu/A-codecs/libsndfile-samples/sds-pcm24.sds.
61[NULL @ 0x9231fc0] Opening 'samples/samples.mplayerhq.hu/A-codecs/libsndfile-samples/sds-pcm24.sds' for reading
62[file @ 0x9232b40] Setting default whitelist 'file,crypto'
63Probing sds score:50 size:2048
64[sds @ 0x9231fc0] Format sds probed with size=2048 and score=50
65[sds @ 0x9231fc0] Before avformat_find_stream_info() pos: 21 bytes read:32768 seeks:0 nb_streams:1
66
67Breakpoint 1, byte4_read (src=0x9232f00 ">?@", dst=0x92356c0) at libavformat/sdsdec.c:71
6871 sample = (src[i + 0] << 25) | (src[i + 1] << 18) | (src[i + 2] << 11) | (src[i + 3] << 4);
69(gdb) n
70libavformat/sdsdec.c:71:30: runtime error: left shift of 64 by 25 places cannot be represented in type 'int'
7172 dst[i / 4] = sample;
72(gdb) bt
73#0 byte4_read (src=0x9232f00 ">?@", dst=0x92356c0) at libavformat/sdsdec.c:72
74#1 0x000000000193cdd6 in sds_read_packet (ctx=<optimized out>, pkt=0x7fffffffd6a8) at libavformat/sdsdec.c:143
75#2 0x00000000019d4b91 in ff_read_packet (s=0x9231fc0, pkt=0x7fffffffd6a8) at libavformat/utils.c:856
76#3 0x00000000019dea6f in read_frame_internal (s=0x9231fc0, pkt=0x7fffffffd908) at libavformat/utils.c:1582
77#4 0x00000000019f55b2 in avformat_find_stream_info (ic=<optimized out>, options=<optimized out>)
78 at libavformat/utils.c:3786
79#5 0x0000000000431ffa in open_input_file (o=0x7fffffffdbb8,
80 filename=0x7fffffffe590 "samples/samples.mplayerhq.hu/A-codecs/libsndfile-samples/sds-pcm24.sds")
81 at fftools/ffmpeg_opt.c:1126
82#6 0x000000000042fb4f in open_files (l=0x92312d8, inout=0x5c01184 "input", open_file=0x430710 <open_input_file>)
83 at fftools/ffmpeg_opt.c:3275
84#7 0x000000000042f840 in ffmpeg_parse_options (argc=<optimized out>, argv=<optimized out>) at fftools/ffmpeg_opt.c:3315
85#8 0x0000000000489a24 in main (argc=29, argv=0x7fffffffe1f8) at fftools/ffmpeg.c:4872
86(gdb) disass $pc-32,$pc+32
87Dump of assembler code from 0x193d406 to 0x193d446:
88 0x000000000193d406 <byte4_read+118>: add %cl,%al
89 0x000000000193d408 <byte4_read+120>: jrcxz 0x193d415 <byte4_read+133>
90 0x000000000193d40a <byte4_read+122>: lea (%r15,%r12,1),%r13
91 0x000000000193d40e <byte4_read+126>: add $0x3,%r13
92 0x000000000193d412 <byte4_read+130>: cmp %r15,%r13
93 0x000000000193d415 <byte4_read+133>: jb 0x193d4d4 <byte4_read+324>
94 0x000000000193d41b <byte4_read+139>: or %ebx,%ebp
95 0x000000000193d41d <byte4_read+141>: movzbl 0x0(%r13),%r13d
96 0x000000000193d422 <byte4_read+146>: shl $0x4,%r13d
97=> 0x000000000193d426 <byte4_read+150>: mov %r14,%rbx
98 0x000000000193d429 <byte4_read+153>: add %r12,%rbx
99 0x000000000193d42c <byte4_read+156>: jb 0x193d4e9 <byte4_read+345>
100 0x000000000193d432 <byte4_read+162>: or %r13d,%ebp
101 0x000000000193d435 <byte4_read+165>: test $0x3,%bl
102 0x000000000193d438 <byte4_read+168>: jne 0x193d505 <byte4_read+373>
103 0x000000000193d43e <byte4_read+174>: test %rbx,%rbx
104 0x000000000193d441 <byte4_read+177>: je 0x193d505 <byte4_read+373>
105End of assembler dump.
106(gdb) info all-registers
107rax 0x823b780 136558464
108rbx 0x0 0
109rcx 0x419397 4297623
110rdx 0x9232f2a 153300778
111rsi 0x7fffffffd480 140737488344192
112rdi 0x7fffffffd261 140737488343649
113rbp 0x80000000 0x80000000
114rsp 0x7fffffffd490 0x7fffffffd490
115r8 0x1 1
116r9 0x0 0
117r10 0x0 0
118r11 0x206 518
119r12 0x28 40
120r13 0x0 0
121r14 0x92356c0 153310912
122r15 0x9232f00 153300736
123rip 0x193d426 0x193d426 <byte4_read+150>
124eflags 0x246 [ PF ZF IF ]
125cs 0x33 51
126ss 0x2b 43
127ds 0x0 0
128es 0x0 0
129fs 0x0 0
130gs 0x0 0
131st0 0 (raw 0x00000000000000000000)
132st1 0 (raw 0x00000000000000000000)
133st2 0 (raw 0x00000000000000000000)
134st3 0 (raw 0x00000000000000000000)
135st4 0 (raw 0x00000000000000000000)
136st5 0 (raw 0x00000000000000000000)
137st6 0 (raw 0x00000000000000000000)
138st7 0 (raw 0x00000000000000000000)
139fctrl 0xffff 65535
140fstat 0xffff 65535
141ftag 0xaaaa 43690
142fiseg 0x1 1
143fioff 0x0 0
144foseg 0x55eb 21995
145fooff 0xa 10
146fop 0x7ff 2047
147mxcsr 0x1fa0 [ PE IM DM ZM OM UM PM ]
148bndcfgu {raw = 0x0, config = {base = 0x0, reserved = 0x0, preserved = 0x0, enabled = 0x0}} {raw = 0x0,
149 config = {base = 0, reserved = 0, preserved = 0, enabled = 0}}
150bndstatus {raw = 0x0, status = {bde = 0x0, error = 0x0}} {raw = 0x0, status = {bde = 0, error = 0}}
151ymm0 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x8,
152 0x0, 0x0, 0x0, 0x30, 0x0, 0x0, 0x0, 0x50, 0xd1, 0xff, 0xff, 0xff, 0x7f, 0x0 <repeats 18 times>}, v16_int16 = {0x8, 0x0,
153 0x30, 0x0, 0xd150, 0xffff, 0x7fff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0x8, 0x30, 0xffffd150,
154 0x7fff, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x3000000008, 0x7fffffffd150, 0x0, 0x0}, v2_int128 = {
155 0x7fffffffd1500000003000000008, 0x0}}
156ymm1 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x3e,
157 0x7f, 0x60, 0x0, 0x3f, 0x40, 0x0, 0x0, 0x40, 0x0, 0x0, 0x0, 0x3f, 0x3f, 0x60, 0x0 <repeats 17 times>}, v16_int16 = {
158 0x7f3e, 0x60, 0x403f, 0x0, 0x40, 0x0, 0x3f3f, 0x60, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0x607f3e,
159 0x403f, 0x40, 0x603f3f, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x403f00607f3e, 0x603f3f00000040, 0x0, 0x0}, v2_int128 = {
160 0x603f3f000000400000403f00607f3e, 0x0}}
161---Type <return> to continue, or q <return> to quit---
162ymm2 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x42,
163 0x3f, 0x60, 0x0, 0x43, 0x40, 0x0, 0x0, 0x44, 0x0, 0x20, 0x0, 0x43, 0x7f, 0x60, 0x0 <repeats 17 times>}, v16_int16 = {
164 0x3f42, 0x60, 0x4043, 0x0, 0x44, 0x20, 0x7f43, 0x60, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0x603f42,
165 0x4043, 0x200044, 0x607f43, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x404300603f42, 0x607f4300200044, 0x0, 0x0}, v2_int128 = {
166 0x607f43002000440000404300603f42, 0x0}}
167ymm3 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x40,
168 0x0, 0x0, 0x0, 0x40, 0x7f, 0x60, 0x0, 0x40, 0x40, 0x20, 0x0, 0x41, 0x40, 0x0 <repeats 18 times>}, v16_int16 = {0x40,
169 0x0, 0x7f40, 0x60, 0x4040, 0x20, 0x4041, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0x40, 0x607f40,
170 0x204040, 0x4041, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x607f4000000040, 0x404100204040, 0x0, 0x0}, v2_int128 = {
171 0x40410020404000607f4000000040, 0x0}}
172ymm4 {v8_float = {0x0, 0xffffffff, 0xffffffff, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x7fffffffffffffff, 0x0,
173 0x0, 0x0}, v32_int8 = {0x25, 0x64, 0x3a, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x3a, 0x20,
174 0x0 <repeats 16 times>}, v16_int16 = {0x6425, 0x203a, 0x7473, 0x7261, 0x5f74, 0x6974, 0x656d, 0x203a, 0x0, 0x0, 0x0,
175 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0x203a6425, 0x72617473, 0x69745f74, 0x203a656d, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {
176 0x72617473203a6425, 0x203a656d69745f74, 0x0, 0x0}, v2_int128 = {0x203a656d69745f7472617473203a6425, 0x0}}
177ymm5 {v8_float = {0xffffffff, 0xffffffff, 0xffffffff, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x7fffffffffffffff,
178 0x0, 0x0, 0x0}, v32_int8 = {0x78, 0x74, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x0, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d,
179 0x20, 0x0 <repeats 16 times>}, v16_int16 = {0x7478, 0x6172, 0x6164, 0x6174, 0x7300, 0x7274, 0x6165, 0x206d, 0x0, 0x0,
180 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0x61727478, 0x61746164, 0x72747300, 0x206d6165, 0x0, 0x0, 0x0, 0x0},
181 v4_int64 = {0x6174616461727478, 0x206d616572747300, 0x0, 0x0}, v2_int128 = {0x206d6165727473006174616461727478, 0x0}}
182ymm6 {v8_float = {0xffffffff, 0x0, 0xffffffff, 0xffffffff, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0,
183 0x7fffffffffffffff, 0x0, 0x0}, v32_int8 = {0x61, 0x0, 0x21, 0x73, 0x74, 0x69, 0x2d, 0x3e, 0x61, 0x76, 0x63, 0x74, 0x78,
184 0x2d, 0x3e, 0x65, 0x0 <repeats 16 times>}, v16_int16 = {0x61, 0x7321, 0x6974, 0x3e2d, 0x7661, 0x7463, 0x2d78, 0x653e,
185 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0x73210061, 0x3e2d6974, 0x74637661, 0x653e2d78, 0x0, 0x0, 0x0,
186 0x0}, v4_int64 = {0x3e2d697473210061, 0x653e2d7874637661, 0x0, 0x0}, v2_int128 = {0x653e2d78746376613e2d697473210061,
187 0x0}}
188ymm7 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {
189 0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
190 v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
191ymm8 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x0,
192 0x1b, 0x5b, 0x34, 0x38, 0x3b, 0x35, 0x3b, 0x25, 0x75, 0x6d, 0x1b, 0x5b, 0x33, 0x38, 0x3b, 0x0 <repeats 16 times>},
193 v16_int16 = {0x1b00, 0x345b, 0x3b38, 0x3b35, 0x7525, 0x1b6d, 0x335b, 0x3b38, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
194 v8_int32 = {0x345b1b00, 0x3b353b38, 0x1b6d7525, 0x3b38335b, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x3b353b38345b1b00,
195 0x3b38335b1b6d7525, 0x0, 0x0}, v2_int128 = {0x3b38335b1b6d75253b353b38345b1b00, 0x0}}
196ymm9 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {
197 0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
198 v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
199ymm10 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {
200 0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
201 v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
202ymm11 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {
203 0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
204 v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
205ymm12 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {
206 0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
207 v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
208ymm13 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {
209 0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
210 v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
211ymm14 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {
212 0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
213 v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
214ymm15 {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {
215 0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
216---Type <return> to continue, or q <return> to quit---
217 v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
218bnd0 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1
219bnd1 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1
220bnd2 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1
221bnd3 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1 {lbound = 0x0, ubound = 0xffffffffffffffff} : size -1