| 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 48 -i tmp/tmp.wmv -map 0 -c:s:4 zmbv -c:v zmbv -disposition:a:19 fits -disposition:v:29 xwd -vframes 34 -ab 922k -ar 48000 -ac 3 -b:v 501k tmp_/tmp_.mov
|
|---|
| 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 | Guessed Channel Layout for Input Stream #0.1 : mono
|
|---|
| 31 | Input #0, asf, from 'tmp/tmp.wmv':
|
|---|
| 32 | Metadata:
|
|---|
| 33 | encoder : Lavf57.66.105
|
|---|
| 34 | Duration: 00:00:05.63, start: 0.000000, bitrate: 647 kb/s
|
|---|
| 35 | Stream #0:0: Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 560x320, SAR 1:1 DAR 7:4, 30 fps, 30 tbr, 1k tbn, 1k tbc
|
|---|
| 36 | Stream #0:1(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, mono, fltp, 128 kb/s
|
|---|
| 37 | Stream mapping:
|
|---|
| 38 | Stream #0:0 -> #0:0 (wmv2 (native) -> zmbv (native))
|
|---|
| 39 | Stream #0:1 -> #0:1 (wmav2 (native) -> aac (native))
|
|---|
| 40 | Press [q] to stop, [?] for help
|
|---|
| 41 | [New Thread 0x7ffff025a700 (LWP 31455)]
|
|---|
| 42 | [New Thread 0x7fffefa59700 (LWP 31456)]
|
|---|
| 43 | [New Thread 0x7fffef258700 (LWP 31457)]
|
|---|
| 44 | [New Thread 0x7fffeea57700 (LWP 31458)]
|
|---|
| 45 | [New Thread 0x7fffee256700 (LWP 31459)]
|
|---|
| 46 | [New Thread 0x7fffeda55700 (LWP 31460)]
|
|---|
| 47 | [New Thread 0x7fffed254700 (LWP 31461)]
|
|---|
| 48 | [New Thread 0x7fffeca53700 (LWP 31462)]
|
|---|
| 49 | [New Thread 0x7fffec252700 (LWP 31463)]
|
|---|
| 50 | [New Thread 0x7fffeba51700 (LWP 31464)]
|
|---|
| 51 | [New Thread 0x7fffeb250700 (LWP 31465)]
|
|---|
| 52 | [New Thread 0x7fffeaa4f700 (LWP 31466)]
|
|---|
| 53 | [aac @ 0x619000008280] Using a PCE to encode channel layout "2.1"
|
|---|
| 54 | [aac @ 0x619000008280] Too many bits 19669.333333 > 18432 per frame requested, clamping to max
|
|---|
| 55 | libavcodec/lpc.h:155:27: runtime error: division by zero
|
|---|
| 56 | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavcodec/lpc.h:155:27 in
|
|---|
| 57 | [New Thread 0x7fffe9dff700 (LWP 31467)]
|
|---|
| 58 | [New Thread 0x7fffe95fe700 (LWP 31468)]
|
|---|
| 59 | [New Thread 0x7fffe8dfd700 (LWP 31469)]
|
|---|
| 60 | [New Thread 0x7fffe85fc700 (LWP 31470)]
|
|---|
| 61 | [New Thread 0x7fffe7dfb700 (LWP 31471)]
|
|---|
| 62 | [New Thread 0x7fffe75fa700 (LWP 31472)]
|
|---|
| 63 | [New Thread 0x7fffe6df9700 (LWP 31473)]
|
|---|
| 64 | [New Thread 0x7fffe65f8700 (LWP 31474)]
|
|---|
| 65 | [New Thread 0x7fffe5df7700 (LWP 31475)]
|
|---|
| 66 | [New Thread 0x7fffe55f6700 (LWP 31476)]
|
|---|
| 67 | [New Thread 0x7fffe4df5700 (LWP 31477)]
|
|---|
| 68 | [New Thread 0x7fffe45ec700 (LWP 31478)]
|
|---|
| 69 | [mov @ 0x61b000000e80] Using MS style video codec tag, the file may be unplayable!
|
|---|
| 70 | Output #0, mov, to 'tmp_/tmp_.mov':
|
|---|
| 71 | Metadata:
|
|---|
| 72 | encoder : Lavf58.28.101
|
|---|
| 73 | Stream #0:0: Video: zmbv, bgr0, 560x320 [SAR 1:1 DAR 7:4], q=2-31, 501 kb/s, 48 fps, 12288 tbn, 48 tbc
|
|---|
| 74 | Metadata:
|
|---|
| 75 | encoder : Lavc58.53.101 zmbv
|
|---|
| 76 | Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 2.1, fltp, 864 kb/s
|
|---|
| 77 | Metadata:
|
|---|
| 78 | encoder : Lavc58.53.101 aac
|
|---|
| 79 | =================================================================
|
|---|
| 80 | ==31451==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x7fffe3aeb7f0 at pc 0x0000063316d5 bp 0x7fffffff9df0 sp 0x7fffffff9de8
|
|---|
| 81 | READ of size 1 at 0x7fffe3aeb7f0 thread T0
|
|---|
| 82 | #0 0x63316d4 in block_cmp ffmpeg/libavcodec/zmbvenc.c:97:30
|
|---|
| 83 | #1 0x632b02b in zmbv_me ffmpeg/libavcodec/zmbvenc.c:153:18
|
|---|
| 84 | #2 0x632b02b in encode_frame ffmpeg/libavcodec/zmbvenc.c:242
|
|---|
| 85 | #3 0x303c9a0 in avcodec_encode_video2 ffmpeg/libavcodec/encode.c:296:11
|
|---|
| 86 | #4 0x303fb3e in do_encode ffmpeg/libavcodec/encode.c:365:15
|
|---|
| 87 | #5 0x303f21a in avcodec_send_frame ffmpeg/libavcodec/encode.c:414:12
|
|---|
| 88 | #6 0x63230a in do_video_out ffmpeg/fftools/ffmpeg.c:1287:15
|
|---|
| 89 | #7 0x629ec0 in reap_filters ffmpeg/fftools/ffmpeg.c:1504:17
|
|---|
| 90 | #8 0x5bd8e3 in transcode_step ffmpeg/fftools/ffmpeg.c:4648:12
|
|---|
| 91 | #9 0x5bd8e3 in transcode ffmpeg/fftools/ffmpeg.c:4692
|
|---|
| 92 | #10 0x5b2feb in main ffmpeg/fftools/ffmpeg.c:4894:9
|
|---|
| 93 | #11 0x7ffff4fb2b96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
|
|---|
| 94 | #12 0x41fb39 in _start (ffmpeg/ffmpeg_g+0x41fb39)
|
|---|
| 95 |
|
|---|
| 96 | 0x7fffe3aeb7f0 is located 16 bytes to the left of 763424-byte region [0x7fffe3aeb800,0x7fffe3ba5e20)
|
|---|
| 97 | allocated by thread T0 here:
|
|---|
| 98 | #0 0x4ad2ad in posix_memalign opt/llvm/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cc:226
|
|---|
| 99 | #1 0x833b2e5 in av_malloc ffmpeg/libavutil/mem.c:87:9
|
|---|
| 100 | #2 0x833b2e5 in av_mallocz ffmpeg/libavutil/mem.c:238
|
|---|
| 101 | #3 0x63268b0 in encode_init ffmpeg/libavcodec/zmbvenc.c:413:25
|
|---|
| 102 |
|
|---|
| 103 | SUMMARY: AddressSanitizer: heap-buffer-overflow ffmpeg/libavcodec/zmbvenc.c:97:30 in block_cmp
|
|---|
| 104 | Shadow bytes around the buggy address:
|
|---|
| 105 | 0x10007c7556a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
|---|
| 106 | 0x10007c7556b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
|---|
| 107 | 0x10007c7556c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
|---|
| 108 | 0x10007c7556d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
|---|
| 109 | 0x10007c7556e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
|---|
| 110 | =>0x10007c7556f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa[fa]fa
|
|---|
| 111 | 0x10007c755700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|---|
| 112 | 0x10007c755710: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|---|
| 113 | 0x10007c755720: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|---|
| 114 | 0x10007c755730: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|---|
| 115 | 0x10007c755740: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|---|
| 116 | Shadow byte legend (one shadow byte represents 8 application bytes):
|
|---|
| 117 | Addressable: 00
|
|---|
| 118 | Partially addressable: 01 02 03 04 05 06 07
|
|---|
| 119 | Heap left redzone: fa
|
|---|
| 120 | Freed heap region: fd
|
|---|
| 121 | Stack left redzone: f1
|
|---|
| 122 | Stack mid redzone: f2
|
|---|
| 123 | Stack right redzone: f3
|
|---|
| 124 | Stack after return: f5
|
|---|
| 125 | Stack use after scope: f8
|
|---|
| 126 | Global redzone: f9
|
|---|
| 127 | Global init order: f6
|
|---|
| 128 | Poisoned by user: f7
|
|---|
| 129 | Container overflow: fc
|
|---|
| 130 | Array cookie: ac
|
|---|
| 131 | Intra object redzone: bb
|
|---|
| 132 | ASan internal: fe
|
|---|
| 133 | Left alloca redzone: ca
|
|---|
| 134 | Right alloca redzone: cb
|
|---|
| 135 | Shadow gap: cc
|
|---|
| 136 | ==31451==ABORTING
|
|---|
| 137 | [Thread 0x7fffe45ec700 (LWP 31478) exited]
|
|---|
| 138 | [Thread 0x7fffe4df5700 (LWP 31477) exited]
|
|---|
| 139 | [Thread 0x7fffe55f6700 (LWP 31476) exited]
|
|---|
| 140 | [Thread 0x7fffe5df7700 (LWP 31475) exited]
|
|---|
| 141 | [Thread 0x7fffe65f8700 (LWP 31474) exited]
|
|---|
| 142 | [Thread 0x7fffe6df9700 (LWP 31473) exited]
|
|---|
| 143 | [Thread 0x7fffe75fa700 (LWP 31472) exited]
|
|---|
| 144 | [Thread 0x7fffe7dfb700 (LWP 31471) exited]
|
|---|
| 145 | [Thread 0x7fffe85fc700 (LWP 31470) exited]
|
|---|
| 146 | [Thread 0x7fffe95fe700 (LWP 31468) exited]
|
|---|
| 147 | [Thread 0x7fffe9dff700 (LWP 31467) exited]
|
|---|
| 148 | [Thread 0x7fffeaa4f700 (LWP 31466) exited]
|
|---|
| 149 | [Thread 0x7fffeb250700 (LWP 31465) exited]
|
|---|
| 150 | [Thread 0x7fffeba51700 (LWP 31464) exited]
|
|---|
| 151 | [Thread 0x7fffec252700 (LWP 31463) exited]
|
|---|
| 152 | [Thread 0x7fffeca53700 (LWP 31462) exited]
|
|---|
| 153 | [Thread 0x7fffed254700 (LWP 31461) exited]
|
|---|
| 154 | [Thread 0x7fffeda55700 (LWP 31460) exited]
|
|---|
| 155 | [Thread 0x7fffee256700 (LWP 31459) exited]
|
|---|
| 156 | [Thread 0x7fffeea57700 (LWP 31458) exited]
|
|---|
| 157 | [Thread 0x7fffef258700 (LWP 31457) exited]
|
|---|
| 158 | [Thread 0x7fffefa59700 (LWP 31456) exited]
|
|---|
| 159 | [Thread 0x7ffff025a700 (LWP 31455) exited]
|
|---|
| 160 | [Thread 0x7ffff7fad780 (LWP 31451) exited]
|
|---|
| 161 | [Inferior 1 (process 31451) exited with code 01]
|
|---|
| 162 | (gdb) bt
|
|---|
| 163 | No stack.
|
|---|
| 164 | (gdb) disass $pc-32,$pc+32
|
|---|
| 165 | No registers.
|
|---|
| 166 | (gdb) info all-registers
|
|---|
| 167 | The program has no registers now.
|
|---|
| 168 |
|
|---|