Ticket #8141: gdb-log-null_pointer

File gdb-log-null_pointer, 14.0 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_g -loglevel 99 -stream_loop 18 -y -r 97 -i gizmo-frag-cencinit.mp4 -map 0 -c copy -disposition: s:5 pcx -aframes 13 -ac 6 -b:v 919k -strict 0 output/tmp.avi
18[Thread debugging using libthread_db enabled]
19Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
20ffmpeg version N-94887-ge55018ee11 Copyright (c) 2000-2019 the FFmpeg developers
21 built with clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
22 configuration: --cc=afl-clang --cxx=afl-clang++ --ld=afl-clang -enable-debug --toolchain=clang-asan
23 libavutil 56. 35.100 / 56. 35.100
24 libavcodec 58. 56.101 / 58. 56.101
25 libavformat 58. 32.104 / 58. 32.104
26 libavdevice 58. 9.100 / 58. 9.100
27 libavfilter 7. 58.102 / 7. 58.102
28 libswscale 5. 6.100 / 5. 6.100
29 libswresample 3. 6.100 / 3. 6.100
30Splitting the commandline.
31Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
32Reading option '-stream_loop' ... matched as option 'stream_loop' (set number of times input stream shall be looped) with argument '18'.
33Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
34Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '97'.
35Reading option '-i' ... matched as input url with argument 'samples/mp4/gizmo-frag-cencinit.mp4'.
36Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0'.
37Reading option '-c' ... matched as option 'c' (codec name) with argument 'copy'.
38Reading option '-disposition:' ... matched as option 'disposition' (disposition) with argument 's:5'.
39Reading option 'pcx' ... matched as output url.
40Reading option '-aframes' ... matched as option 'aframes' (set the number of audio frames to output) with argument '13'.
41Reading option '-ac' ... matched as option 'ac' (set number of audio channels) with argument '6'.
42Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '919k'.
43Reading option '-strict' ...Routing option strict to both codec and muxer layer
44 matched as AVOption 'strict' with argument '0'.
45Reading option 'output/tmp.avi' ... matched as output url.
46Finished splitting the commandline.
47Parsing a group of options: global .
48Applying option loglevel (set logging level) with argument 99.
49Applying option y (overwrite output files) with argument 1.
50Successfully parsed a group of options.
51Parsing a group of options: input url samples/mp4/gizmo-frag-cencinit.mp4.
52Applying option stream_loop (set number of times input stream shall be looped) with argument 18.
53Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 97.
54Successfully parsed a group of options.
55Opening an input file: samples/mp4/gizmo-frag-cencinit.mp4.
56[NULL @ 0x61b000000080] Opening 'samples/mp4/gizmo-frag-cencinit.mp4' for reading
57[file @ 0x611000000180] Setting default whitelist 'file,crypto'
58Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:1924
59[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
60[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'ftyp' parent:'root' sz: 28 8 1924
61[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] ISO: File Type Major Brand: iso5
62[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'free' parent:'root' sz: 132 36 1924
63[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'free' parent:'root' sz: 132 168 1924
64[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'free' parent:'root' sz: 59 300 1924
65[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'moov' parent:'root' sz: 1573 359 1924
66[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'mvhd' parent:'moov' sz: 108 8 1565
67[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] time scale = 90000
68[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'iods' parent:'moov' sz: 21 116 1565
69[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'mvex' parent:'moov' sz: 88 137 1565
70[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'mehd' parent:'mvex' sz: 16 8 80
71[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'trex' parent:'mvex' sz: 32 24 80
72[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'trex' parent:'mvex' sz: 32 56 80
73[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'trak' parent:'moov' sz: 622 225 1565
74[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'tkhd' parent:'trak' sz: 92 8 614
75[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'mdia' parent:'trak' sz: 522 100 614
76[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'mdhd' parent:'mdia' sz: 32 8 514
77[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'hdlr' parent:'mdia' sz: 33 40 514
78[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] ctype=[0][0][0][0]
79[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] stype=vide
80[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'minf' parent:'mdia' sz: 449 73 514
81[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'vmhd' parent:'minf' sz: 20 8 441
82[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'dinf' parent:'minf' sz: 36 28 441
83[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'dref' parent:'dinf' sz: 28 8 28
84[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] Unknown dref type 0x206c7275 size 12
85[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'stbl' parent:'minf' sz: 385 64 441
86[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'stsd' parent:'stbl' sz: 265 8 377
87[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] size=249 4CC=encv codec_type=0
88[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'pasp' parent:'stsd' sz: 16 8 163
89[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'avcC' parent:'stsd' sz: 49 24 163
90[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'sinf' parent:'stsd' sz: 80 73 163
91[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'frma' parent:'sinf' sz: 12 8 72
92[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'schm' parent:'sinf' sz: 20 20 72
93[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'schi' parent:'sinf' sz: 40 40 72
94[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'tenc' parent:'schi' sz: 32 8 32
95[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'colr' parent:'stsd' sz: 18 153 163
96[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] nclc: pri 1 trc 1 matrix 1
97[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'stts' parent:'stbl' sz: 16 273 377
98[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] track[0].stts.entries = 0
99[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'stsc' parent:'stbl' sz: 16 289 377
100[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] track[0].stsc.entries = 0
101[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'stsz' parent:'stbl' sz: 20 305 377
102[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] sample_size = 0 sample_count = 0
103[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'stco' parent:'stbl' sz: 16 325 377
104[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'sgpd' parent:'stbl' sz: 44 341 377
105[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'trak' parent:'moov' sz: 547 847 1565
106[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'tkhd' parent:'trak' sz: 92 8 539
107[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'mdia' parent:'trak' sz: 424 100 539
108[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'mdhd' parent:'mdia' sz: 32 8 416
109[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'hdlr' parent:'mdia' sz: 33 40 416
110[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] ctype=[0][0][0][0]
111[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] stype=soun
112[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'minf' parent:'mdia' sz: 351 73 416
113[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'smhd' parent:'minf' sz: 16 8 343
114[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'dinf' parent:'minf' sz: 36 24 343
115[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'dref' parent:'dinf' sz: 28 8 28
116[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] Unknown dref type 0x206c7275 size 12
117[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'stbl' parent:'minf' sz: 291 60 343
118[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'stsd' parent:'stbl' sz: 171 8 283
119[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] size=155 4CC=enca codec_type=1
120[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] audio channels 1
121[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] version =0, isom =1
122[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'esds' parent:'stsd' sz: 39 8 119
123[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] MPEG-4 description: tag=0x03 len=25
124[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] MPEG-4 description: tag=0x04 len=17
125[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] esds object type id 0x40
126[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] MPEG-4 description: tag=0x05 len=2
127[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] Specific MPEG-4 header len=2
128[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] mp4a config channels 1 obj 2 ext obj 0 sample rate 48000 ext sample rate 0
129[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'sinf' parent:'stsd' sz: 80 47 119
130[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'frma' parent:'sinf' sz: 12 8 72
131[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'schm' parent:'sinf' sz: 20 20 72
132[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'schi' parent:'sinf' sz: 40 40 72
133[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'tenc' parent:'schi' sz: 32 8 32
134[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'stts' parent:'stbl' sz: 16 179 283
135[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] track[1].stts.entries = 0
136[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'stsc' parent:'stbl' sz: 16 195 283
137[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] track[1].stsc.entries = 0
138[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'stsz' parent:'stbl' sz: 20 211 283
139[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] sample_size = 0 sample_count = 0
140[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'stco' parent:'stbl' sz: 16 231 283
141[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'sgpd' parent:'stbl' sz: 44 247 283
142[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'udta' parent:'trak' sz: 23 524 539
143[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'name' parent:'udta' sz: 15 8 15
144[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'udta' parent:'moov' sz: 111 1394 1565
145[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'meta' parent:'udta' sz: 103 8 103
146[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'hdlr' parent:'meta' sz: 33 8 91
147[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] ctype=[0][0][0][0]
148[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] stype=mdir
149[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'ilst' parent:'meta' sz: 58 41 91
150[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'[169]too' parent:'ilst' sz: 50 8 50
151[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] type:'pssh' parent:'moov' sz: 68 1505 1565
152libavutil/encryption_info.c:334:28: runtime error: null pointer passed as argument 2, which is declared to never be null
153/usr/include/string.h:43:28: note: nonnull attribute specified here
154SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavutil/encryption_info.c:334:28 in
155[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] on_parse_exit_offset=1924
156[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] Before avformat_find_stream_info() pos: 1924 bytes read:1924 seeks:0 nb_streams:2
157[h264 @ 0x619000000580] nal_unit_type: 7(SPS), nal_ref_idc: 3
158[h264 @ 0x619000000580] nal_unit_type: 8(PPS), nal_ref_idc: 3
159[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] stream 0: start_time: -102481911520608.625 duration: 0.000
160[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] stream 1: start_time: -192153584101141.156 duration: 0.000
161[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] format: start_time: -9223372036854.775 duration: -9223372036854.775 bitrate=0 kb/s
162[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] Could not find codec parameters for stream 0 (Video: h264, 1 reference frame (avc1 / 0x31637661), none(bt709, left), 560x320, 1/180000): unspecified pixel format
163Consider increasing the value for the 'analyzeduration' and 'probesize' options
164[mov,mp4,m4a,3gp,3g2,mj2 @ 0x61b000000080] After avformat_find_stream_info() pos: 1924 bytes read:1924 seeks:0 frames:0
165Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'samples/mp4/gizmo-frag-cencinit.mp4':
166 Metadata:
167 major_brand : iso5
168 minor_version : 1
169 compatible_brands: avc1iso5dash
170 creation_time : 2014-03-26T00:20:53.000000Z
171 encoder : HandBrake 0.9.9 2013052900
172 Duration: N/A, bitrate: N/A
173 Stream #0:0(und), 0, 1/90000: Video: h264, 1 reference frame (avc1 / 0x31637661), none(bt709, left), 560x320, 0/1, SAR 1:1 DAR 7:4, 90k tbr, 90k tbn, 180k tbc (default)
174 Metadata:
175 creation_time : 2014-03-26T00:20:53.000000Z
176 encoder : JVT/AVC Coding
177 Stream #0:1(eng), 0, 1/48000: Audio: aac (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 157 kb/s (default)
178 Metadata:
179 creation_time : 2014-03-26T00:20:53.000000Z
180 Side data:
181 unknown side data type 24 (68 bytes)
182Successfully opened the file.
183Parsing a group of options: output url pcx.
184Applying option map (set input stream mapping) with argument 0.
185Applying option c (codec name) with argument copy.
186Applying option disposition: (disposition) with argument s:5.
187Successfully parsed a group of options.
188Opening an output file: pcx.
189[NULL @ 0x61b000001580] Unable to find a suitable output format for 'pcx'
190pcx: Invalid argument
191[AVIOContext @ 0x613000000040] Statistics: 1924 bytes read, 0 seeks
192==11274==LeakSanitizer has encountered a fatal error.
193==11274==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1
194==11274==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc)
195[Inferior 1 (process 11274) exited with code 01]
196(gdb) bt
197No stack.
198(gdb) disass $pc-32,$pc+32
199No registers.
200(gdb) info all-registers
201The program has no registers now.
202