| 1 | GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
|
|---|
| 2 | Copyright (C) 2018 Free Software Foundation, Inc.
|
|---|
| 3 | License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
|
|---|
| 4 | This is free software: you are free to change and redistribute it.
|
|---|
| 5 | There is NO WARRANTY, to the extent permitted by law. Type "show copying"
|
|---|
| 6 | and "show warranty" for details.
|
|---|
| 7 | This GDB was configured as "x86_64-linux-gnu".
|
|---|
| 8 | Type "show configuration" for configuration details.
|
|---|
| 9 | For bug reporting instructions, please see:
|
|---|
| 10 | <http://www.gnu.org/software/gdb/bugs/>.
|
|---|
| 11 | Find the GDB manual and other documentation resources online at:
|
|---|
| 12 | <http://www.gnu.org/software/gdb/documentation/>.
|
|---|
| 13 | For help, type "help".
|
|---|
| 14 | Type "apropos word" to search for commands related to "word"...
|
|---|
| 15 | Reading symbols from ./ffmpeg_g...done.
|
|---|
| 16 | (gdb) r
|
|---|
| 17 | Starting program: ffmpeg/ffmpeg_g -y -r 73 -i tmp/tmp.pbm -map 0 -c:v apng -c:a pcm_dvd -disposition:a ac3_fixed -disposition:s:13 ac3_fixed -ac 16 tmp_/tmp_.pgm
|
|---|
| 18 | [Thread debugging using libthread_db enabled]
|
|---|
| 19 | Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
|
|---|
| 20 | ffmpeg 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
|
|---|
| 30 | Input #0, pbm_pipe, from 'tmp/tmp.pbm':
|
|---|
| 31 | Duration: N/A, bitrate: N/A
|
|---|
| 32 | Stream #0:0: Video: pbm, monow, 560x320, 25 tbr, 25 tbn, 25 tbc
|
|---|
| 33 | Stream mapping:
|
|---|
| 34 | Stream #0:0 -> #0:0 (pbm (native) -> apng (native))
|
|---|
| 35 | Press [q] to stop, [?] for help
|
|---|
| 36 | [New Thread 0x7ffff025a700 (LWP 19725)]
|
|---|
| 37 | [New Thread 0x7fffefa59700 (LWP 19726)]
|
|---|
| 38 | [New Thread 0x7fffef258700 (LWP 19727)]
|
|---|
| 39 | [New Thread 0x7fffeea57700 (LWP 19728)]
|
|---|
| 40 | [New Thread 0x7fffee256700 (LWP 19729)]
|
|---|
| 41 | [New Thread 0x7fffeda55700 (LWP 19730)]
|
|---|
| 42 | [New Thread 0x7fffed254700 (LWP 19731)]
|
|---|
| 43 | [New Thread 0x7fffeca53700 (LWP 19732)]
|
|---|
| 44 | [New Thread 0x7fffec252700 (LWP 19733)]
|
|---|
| 45 | [New Thread 0x7fffeba51700 (LWP 19734)]
|
|---|
| 46 | [New Thread 0x7fffeb250700 (LWP 19735)]
|
|---|
| 47 | [New Thread 0x7fffeaa4f700 (LWP 19736)]
|
|---|
| 48 | [swscaler @ 0x62f000000400] full chroma interpolation for destination format 'monob' not yet implemented
|
|---|
| 49 | Output #0, image2, to 'tmp_/tmp_.pgm':
|
|---|
| 50 | Metadata:
|
|---|
| 51 | encoder : Lavf58.28.101
|
|---|
| 52 | Stream #0:0: Video: apng, monob, 560x320, q=2-31, 200 kb/s, 73 fps, 73 tbn, 73 tbc
|
|---|
| 53 | Metadata:
|
|---|
| 54 | encoder : Lavc58.53.101 apng
|
|---|
| 55 | =================================================================
|
|---|
| 56 | ==19721==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x62c000007a1f at pc 0x00000048bd15 bp 0x7fffffff9f90 sp 0x7fffffff9740
|
|---|
| 57 | READ of size 1 at 0x62c000007a1f thread T0
|
|---|
| 58 | #0 0x48bd14 in MemcmpInterceptorCommon(void*, int (*)(void const*, void const*, unsigned long), void const*, void const*, unsigned long) opt/llvm/llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:834
|
|---|
| 59 | #1 0x48c118 in bcmp opt/llvm/llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:880
|
|---|
| 60 | #2 0x45e0d09 in apng_do_inverse_blend ffmpeg/libavcodec/pngenc.c:588:18
|
|---|
| 61 | #3 0x45e0d09 in apng_encode_frame ffmpeg/libavcodec/pngenc.c:796
|
|---|
| 62 | #4 0x45e0d09 in encode_apng ffmpeg/libavcodec/pngenc.c:910
|
|---|
| 63 | #5 0x303c9a0 in avcodec_encode_video2 ffmpeg/libavcodec/encode.c:296:11
|
|---|
| 64 | #6 0x303fb3e in do_encode ffmpeg/libavcodec/encode.c:365:15
|
|---|
| 65 | #7 0x303f21a in avcodec_send_frame ffmpeg/libavcodec/encode.c:414:12
|
|---|
| 66 | #8 0x63230a in do_video_out ffmpeg/fftools/ffmpeg.c:1287:15
|
|---|
| 67 | #9 0x629ec0 in reap_filters ffmpeg/fftools/ffmpeg.c:1504:17
|
|---|
| 68 | #10 0x5bd8e3 in transcode_step ffmpeg/fftools/ffmpeg.c:4648:12
|
|---|
| 69 | #11 0x5bd8e3 in transcode ffmpeg/fftools/ffmpeg.c:4692
|
|---|
| 70 | #12 0x5b2feb in main ffmpeg/fftools/ffmpeg.c:4894:9
|
|---|
| 71 | #13 0x7ffff4fb2b96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
|
|---|
| 72 | #14 0x41fb39 in _start (ffmpeg/ffmpeg_g+0x41fb39)
|
|---|
| 73 |
|
|---|
| 74 | 0x62c000007a1f is located 0 bytes to the right of 30751-byte region [0x62c000000200,0x62c000007a1f)
|
|---|
| 75 | allocated by thread T0 here:
|
|---|
| 76 | #0 0x4ad2ad in posix_memalign opt/llvm/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cc:226
|
|---|
| 77 | #1 0x833a1a1 in av_malloc ffmpeg/libavutil/mem.c:87:9
|
|---|
| 78 | #2 0x82a2c41 in av_buffer_alloc ffmpeg/libavutil/buffer.c:72:12
|
|---|
| 79 | #3 0x82a2c41 in av_buffer_allocz ffmpeg/libavutil/buffer.c:85
|
|---|
| 80 | #4 0x82a73e6 in pool_alloc_buffer ffmpeg/libavutil/buffer.c:313:26
|
|---|
| 81 | #5 0x82a73e6 in av_buffer_pool_get ffmpeg/libavutil/buffer.c:349
|
|---|
| 82 | #6 0x8ff179 in ff_frame_pool_get ffmpeg/libavfilter/framepool.c:222:29
|
|---|
| 83 | #7 0x14e3512 in ff_default_get_video_buffer ffmpeg/libavfilter/video.c:90:13
|
|---|
| 84 | #8 0x14e29a1 in ff_get_video_buffer ffmpeg/libavfilter/video.c:106:15
|
|---|
| 85 |
|
|---|
| 86 | SUMMARY: AddressSanitizer: heap-buffer-overflow opt/llvm/llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:834 in MemcmpInterceptorCommon(void*, int (*)(void const*, void const*, unsigned long), void const*, void const*, unsigned long)
|
|---|
| 87 | Shadow bytes around the buggy address:
|
|---|
| 88 | 0x0c587fff8ef0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|---|
| 89 | 0x0c587fff8f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|---|
| 90 | 0x0c587fff8f10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|---|
| 91 | 0x0c587fff8f20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|---|
| 92 | 0x0c587fff8f30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|---|
| 93 | =>0x0c587fff8f40: 00 00 00[07]fa fa fa fa fa fa fa fa fa fa fa fa
|
|---|
| 94 | 0x0c587fff8f50: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
|---|
| 95 | 0x0c587fff8f60: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
|---|
| 96 | 0x0c587fff8f70: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
|---|
| 97 | 0x0c587fff8f80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
|---|
| 98 | 0x0c587fff8f90: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
|---|
| 99 | Shadow byte legend (one shadow byte represents 8 application bytes):
|
|---|
| 100 | Addressable: 00
|
|---|
| 101 | Partially addressable: 01 02 03 04 05 06 07
|
|---|
| 102 | Heap left redzone: fa
|
|---|
| 103 | Freed heap region: fd
|
|---|
| 104 | Stack left redzone: f1
|
|---|
| 105 | Stack mid redzone: f2
|
|---|
| 106 | Stack right redzone: f3
|
|---|
| 107 | Stack after return: f5
|
|---|
| 108 | Stack use after scope: f8
|
|---|
| 109 | Global redzone: f9
|
|---|
| 110 | Global init order: f6
|
|---|
| 111 | Poisoned by user: f7
|
|---|
| 112 | Container overflow: fc
|
|---|
| 113 | Array cookie: ac
|
|---|
| 114 | Intra object redzone: bb
|
|---|
| 115 | ASan internal: fe
|
|---|
| 116 | Left alloca redzone: ca
|
|---|
| 117 | Right alloca redzone: cb
|
|---|
| 118 | Shadow gap: cc
|
|---|
| 119 | ==19721==ABORTING
|
|---|
| 120 | [Thread 0x7fffeb250700 (LWP 19735) exited]
|
|---|
| 121 | [Thread 0x7fffeba51700 (LWP 19734) exited]
|
|---|
| 122 | [Thread 0x7fffec252700 (LWP 19733) exited]
|
|---|
| 123 | [Thread 0x7fffeca53700 (LWP 19732) exited]
|
|---|
| 124 | [Thread 0x7fffed254700 (LWP 19731) exited]
|
|---|
| 125 | [Thread 0x7fffeda55700 (LWP 19730) exited]
|
|---|
| 126 | [Thread 0x7fffee256700 (LWP 19729) exited]
|
|---|
| 127 | [Thread 0x7fffeea57700 (LWP 19728) exited]
|
|---|
| 128 | [Thread 0x7fffef258700 (LWP 19727) exited]
|
|---|
| 129 | [Thread 0x7fffefa59700 (LWP 19726) exited]
|
|---|
| 130 | [Thread 0x7ffff025a700 (LWP 19725) exited]
|
|---|
| 131 | [Thread 0x7ffff7fad780 (LWP 19721) exited]
|
|---|
| 132 | [Inferior 1 (process 19721) exited with code 01]
|
|---|
| 133 | (gdb) bt
|
|---|
| 134 | No stack.
|
|---|
| 135 | (gdb) disass $pc-32,$pc+32
|
|---|
| 136 | No registers.
|
|---|
| 137 | (gdb) info all-registers
|
|---|
| 138 | The program has no registers now.
|
|---|
| 139 |
|
|---|