Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#4943 closed defect (fixed)

Crash with LTP AAC encode

Reported by: ubitux Owned by:
Priority: important Component: avcodec
Version: git-master Keywords: aac crash SIGSEGV
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

[~/src/ffmpeg]☭ ./ffmpeg -i feathers.flac -strict -2 -profile:a aac_ltp -y /tmp/test.aac
ffmpeg version N-76114-g0128075 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 5.2.0 (GCC)
  configuration: --enable-gpl --enable-fontconfig --enable-libfreetype --enable-libmp3lame --enable-libvorbis --enable-libx264 --enable-libvpx --enable-x11grab --samples=/home/ux/fate-samples --assert-level=2 --enable-libass --enable-libpulse --enable-libopenjpeg --enable-x11grab
  libavutil      55.  4.100 / 55.  4.100
  libavcodec     57.  7.100 / 57.  7.100
  libavformat    57.  8.100 / 57.  8.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 11.100 /  6. 11.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.100 /  2.  0.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, flac, from 'feathers.flac':
  Metadata:
    ENCODER         : Lavf57.8.100
  Duration: 00:02:55.37, start: 19.957551, bitrate: 69 kb/s
    Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
Output #0, adts, to '/tmp/test.aac':
  Metadata:
    encoder         : Lavf57.8.100
    Stream #0:0: Audio: aac, 44100 Hz, stereo, fltp (16 bit), 128 kb/s
    Metadata:
      encoder         : Lavc57.7.100 aac
Stream mapping:
  Stream #0:0 -> #0:0 (flac (native) -> aac (native))
Press [q] to stop, [?] for help
*** Error in `./ffmpeg': corrupted double-linked list: 0x0000000001de8660 ***
======= Backtrace: =========
/usr/lib/libc.so.6(+0x72055)[0x7fdfc59b5055]
/usr/lib/libc.so.6(+0x779a6)[0x7fdfc59ba9a6]
/usr/lib/libc.so.6(+0x77c71)[0x7fdfc59bac71]
/usr/lib/libc.so.6(+0x798a0)[0x7fdfc59bc8a0]
/usr/lib/libc.so.6(__libc_malloc+0x54)[0x7fdfc59be3d4]
./ffmpeg[0xee84cf]
./ffmpeg[0x6d1250]
./ffmpeg[0x63ff49]
./ffmpeg[0x688aef]
./ffmpeg[0x68bcec]
./ffmpeg[0x68ccb2]
./ffmpeg(main+0x144a)[0x47dd1a]
/usr/lib/libc.so.6(__libc_start_main+0xf0)[0x7fdfc5963610]
./ffmpeg[0x47fad9]
======= Memory map: ========
00400000-01331000 r-xp 00000000 08:02 12458655                           /home/ux/src/ffmpeg/ffmpeg
01530000-01571000 rw-p 00f30000 08:02 12458655                           /home/ux/src/ffmpeg/ffmpeg
01571000-01c0c000 rw-p 00000000 00:00 0 
01dae000-01ea5000 rw-p 00000000 00:00 0                                  [heap]
7fdf8c000000-7fdf8c021000 rw-p 00000000 00:00 0 
7fdf8c021000-7fdf90000000 ---p 00000000 00:00 0 
7fdf94000000-7fdf94026000 rw-p 00000000 00:00 0 
7fdf94026000-7fdf98000000 ---p 00000000 00:00 0 
7fdf98000000-7fdf98026000 rw-p 00000000 00:00 0 
7fdf98026000-7fdf9c000000 ---p 00000000 00:00 0 
7fdf9c000000-7fdf9c026000 rw-p 00000000 00:00 0 
7fdf9c026000-7fdfa0000000 ---p 00000000 00:00 0 
7fdfa0000000-7fdfa0026000 rw-p 00000000 00:00 0 
7fdfa0026000-7fdfa4000000 ---p 00000000 00:00 0 
7fdfa4000000-7fdfa4026000 rw-p 00000000 00:00 0 
7fdfa4026000-7fdfa8000000 ---p 00000000 00:00 0 
7fdfa8000000-7fdfa8026000 rw-p 00000000 00:00 0 
7fdfa8026000-7fdfac000000 ---p 00000000 00:00 0 
7fdfac000000-7fdfac026000 rw-p 00000000 00:00 0 
7fdfac026000-7fdfb0000000 ---p 00000000 00:00 0 
7fdfb0000000-7fdfb0026000 rw-p 00000000 00:00 0 
7fdfb0026000-7fdfb4000000 ---p 00000000 00:00 0 
7fdfb4000000-7fdfb4021000 rw-p 00000000 00:00 0 
7fdfb4021000-7fdfb8000000 ---p 00000000 00:00 0 
7fdfb8b98000-7fdfb8bae000 r-xp 00000000 08:01 789968                     /usr/lib/libgcc_s.so.1
7fdfb8bae000-7fdfb8dad000 ---p 00016000 08:01 789968                     /usr/lib/libgcc_s.so.1
7fdfb8dad000-7fdfb8dae000 rw-p 00015000 08:01 789968                     /usr/lib/libgcc_s.so.1
7fdfb8dd6000-7fdfb8dd7000 ---p 00000000 00:00 0 
7fdfb8dd7000-7fdfb95d7000 rw-p 00000000 00:00 0                          [stack:24134]
7fdfb95d7000-7fdfb95d8000 ---p 00000000 00:00 0 
7fdfb95d8000-7fdfb9dd8000 rw-p 00000000 00:00 0                          [stack:24133]
7fdfb9dd8000-7fdfb9dd9000 ---p 00000000 00:00 0 
7fdfb9dd9000-7fdfba5d9000 rw-p 00000000 00:00 0                          [stack:24132]
7fdfba5d9000-7fdfba5da000 ---p 00000000 00:00 0 
7fdfba5da000-7fdfbadda000 rw-p 00000000 00:00 0                          [stack:24131]
7fdfbadda000-7fdfbaddb000 ---p 00000000 00:00 0 
7fdfbaddb000-7fdfbb5db000 rw-p 00000000 00:00 0                          [stack:24130]
7fdfbb5db000-7fdfbb5dc000 ---p 00000000 00:00 0 
7fdfbb5dc000-7fdfbbddc000 rw-p 00000000 00:00 0                          [stack:24129]
7fdfbbddc000-7fdfbbddd000 ---p 00000000 00:00 0 
7fdfbbddd000-7fdfbc5dd000 rw-p 00000000 00:00 0                          [stack:24128]
7fdfbc5dd000-7fdfbc5de000 ---p 00000000 00:00 0 
7fdfbc5de000-7fdfbcdde000 rw-p 00000000 00:00 0                          [stack:24127]
7fdfbcdde000-7fdfbcddf000 ---p 00000000 00:00 0 
7fdfbcddf000-7fdfbd5df000 rw-p 00000000 00:00 0                          [stack:24126]
7fdfbd5df000-7fdfbd5e0000 ---p 00000000 00:00 0 
7fdfbd5e0000-7fdfbdde0000 rw-p 00000000 00:00 0                          [stack:24125]
7fdfbdde0000-7fdfbdde1000 ---p 00000000 00:00 0 
7fdfbdde1000-7fdfbe5e1000 rw-p 00000000 00:00 0                          [stack:24124]
7fdfbe5e1000-7fdfbe5e2000 ---p 00000000 00:00 0 
7fdfbe5e2000-7fdfbede2000 rw-p 00000000 00:00 0                          [stack:24123]
7fdfbede2000-7fdfbede3000 ---p 00000000 00:00 0 
7fdfbede3000-7fdfbf5e3000 rw-p 00000000 00:00 0                          [stack:24122]
7fdfbf5e3000-7fdfbf5e4000 ---p 00000000 00:00 0 
7fdfbf5e4000-7fdfbfde4000 rw-p 00000000 00:00 0                          [stack:24121]
7fdfbfde4000-7fdfbfde5000 ---p 00000000 00:00 0 
7fdfbfde5000-7fdfc05e5000 rw-p 00000000 00:00 0                          [stack:24120]
7fdfc05e5000-7fdfc05e6000 ---p 00000000 00:00 0 
7fdfc05e6000-7fdfc0de6000 rw-p 00000000 00:00 0                          [stack:24119]
7fdfc0de6000-7fdfc0de7000 ---p 00000000 00:00 0 
7fdfc0de7000-7fdfc15e7000 rw-p 00000000 00:00 0                          [stack:24118]
7fdfc15e7000-7fdfc15e8000 ---p 00000000 00:00 0 
7fdfc15e8000-7fdfc1de8000 rw-p 00000000 00:00 0                          [stack:24117]
7fdfc1de8000-7fdfc1dec000 r-xp 00000000 08:01 792706                     /usr/lib/libattr.so.1.1.0
7fdfc1dec000-7fdfc1feb000 ---p 00004000 08:01 792706                     /usr/lib/libattr.so.1.1.0
7fdfc1feb000-7fdfc1fec000 r--p 00003000 08:01 792706                     /usr/lib/libattr.so.1.1.0
7fdfc1fec000-7fdfc1fed000 rw-p 00004000 08:01 792706                     /usr/lib/libattr.so.1.1.0
7fdfc1fed000-7fdfc2002000 r-xp 00000000 08:01 789703                     /usr/lib/libnsl-2.22.so
7fdfc2002000-7fdfc2201000 ---p 00015000 08:01 789703                     /usr/lib/libnsl-2.22.so
7fdfc2201000-7fdfc2202000 r--p 00014000 08:01 789703                     /usr/lib/libnsl-2.22.so
7fdfc2202000-7fdfc2203000 rw-p 00015000 08:01 789703                     /usr/lib/libnsl-2.22.so
7fdfc2203000-7fdfc2205000 rw-p 00000000 00:00 0 
7fdfc2205000-7fdfc2277000 r-xp 00000000 08:01 816431                     /usr/lib/libFLAC.so.8.3.0
7fdfc2277000-7fdfc2476000 ---p 00072000 08:01 816431                     /usr/lib/libFLAC.so.8.3.0
7fdfc2476000-7fdfc2477000 r--p 00071000 08:01 816431                     /usr/lib/libFLAC.so.8.3.0
7fdfc2477000-7fdfc2478000 rw-p 00072000 08:01 816431                     /usr/lib/libFLAC.so.8.3.0
7fdfc2478000-7fdfc247c000 r-xp 00000000 08:01 792852                     /usr/lib/libcap.so.2.24
7fdfc247c000-7fdfc267b000 ---p 00004000 08:01 792852                     /usr/lib/libcap.so.2.24
7fdfc267b000-7fdfc267c000 rw-p 00003000 08:01 792852                     /usr/lib/libcap.so.2.24
7fdfc267c000-7fdfc268e000 r-xp 00000000 08:01 798382                     /usr/lib/libgpg-error.so.0.16.0
7fdfc268e000-7fdfc288d000 ---p 00012000 08:01 798382                     /usr/lib/libgpg-error.so.0.16.0
7fdfc288d000-7fdfc288e000 r--p 00011000 08:01 798382                     /usr/lib/libgpg-error.so.0.16.0
7fdfc288e000-7fdfc288f000 rw-p 00012000 08:01 798382                     /usr/lib/libgpg-error.so.0.16.0
7fdfc288f000-7fdfc2967000 r-xp 00000000 08:01 798391                     /usr/lib/libgcrypt.so.20.0.4
7fdfc2967000-7fdfc2b67000 ---p 000d8000 08:01 798391                     /usr/lib/libgcrypt.so.20.0.4
7fdfc2b67000-7fdfc2b68000 r--p 000d8000 08:01 798391                     /usr/lib/libgcrypt.so.20.0.4
7fdfc2b68000-7fdfc2b70000 rw-p 000d9000 08:01 798391                     /usr/lib/libgcrypt.so.20.0.4
7fdfc2b70000-7fdfc2b71000 rw-p 00000000 00:00 0 
7fdfc2b71000-7fdfc2b82000 r-xp 00000000 08:01 798407                     /usr/lib/liblz4.so.1.7.1
7fdfc2b82000-7fdfc2d81000 ---p 00011000 08:01 798407                     /usr/lib/liblz4.so.1.7.1
7fdfc2d81000-7fdfc2d82000 r--p 00010000 08:01 798407                     /usr/lib/liblz4.so.1.7.1
7fdfc2d82000-7fdfc2d83000 rw-p 00011000 08:01 798407                     /usr/lib/liblz4.so.1.7.1
7fdfc2d83000-7fdfc2d97000 r-xp 00000000 08:01 789704                     /usr/lib/libresolv-2.22.so
7fdfc2d97000-7fdfc2f96000 ---p 00014000 08:01 789704                     /usr/lib/libresolv-2.22.so
7fdfc2f96000-7fdfc2f97000 r--p 00013000 08:01 789704                     /usr/lib/libresolv-2.22.so
7fdfc2f97000-7fdfc2f98000 rw-p 00014000 08:01 789704                     /usr/lib/libresolv-2.22.so
7fdfc2f98000-7fdfc2f9a000 rw-p 00000000 00:00 0 
7fdfc2f9a000-7fdfc3009000 r-xp 00000000 08:01 796997                     /usr/lib/libpcre.so.1.2.5
7fdfc3009000-7fdfc3208000 ---p 0006f000 08:01 796997                     /usr/lib/libpcre.so.1.2.5
7fdfc3208000-7fdfc3209000 r--p 0006e000 08:01 796997                     /usr/lib/libpcre.so.1.2.5
7fdfc3209000-7fdfc320a000 rw-p 0006f000 08:01 796997                     /usr/lib/libpcre.so.1.2.5
7fdfc320a000-7fdfc3233000 r-xp 00000000 08:01 811000                     /usr/lib/libgraphite2.so.3.0.1
7fdfc3233000-7fdfc3432000 ---p 00029000 08:01 811000                     /usr/lib/libgraphite2.so.3.0.1
7fdfc3432000-7fdfc3434000 r--p 00028000 08:01 811000                     /usr/lib/libgraphite2.so.3.0.1
7fdfc3434000-7fdfc3435000 rw-p 0002a000 08:01 811000                     /usr/lib/libgraphite2.so.3.0.1
7fdfc3435000-7fdfc343a000 r-xp 00000000 08:01 816394                     /usr/lib/libasyncns.so.0.3.1
7fdfc343a000-7fdfc3639000 ---p 00005000 08:01 816394                     /usr/lib/libasyncns.so.0.3.1
7fdfc3639000-7fdfc363a000 r--p 00004000 08:01 816394                     /usr/lib/libasyncns.so.0.3.1
7fdfc363a000-7fdfc363b000 rw-p 00005000 08:01 816394                     /usr/lib/libasyncns.so.0.3.1
7fdfc363b000-7fdfc369c000 r-xp 00000000 08:01 816474                     /usr/lib/libsndfile.so.1.0.25
7fdfc369c000-7fdfc389c000 ---p 00061000 08:01 816474                     /usr/lib/libsndfile.so.1.0.25
7fdfc389c000-7fdfc389e000 r--p 00061000 08:01 816474                     /usr/lib/libsndfile.so.1.0.25
7fdfc389e000-7fdfc389f000 rw-p 00063000 08:01 816474                     /usr/lib/libsndfile.so.1.0.25
7fdfc389f000-7fdfc38a3000 rw-p 00000000 00:00 0 
7fdfc38a3000-7fdfc39af000 r-xp 00000000 08:01 797192                     /usr/lib/libglib-2.0.so.0.4600.0
7fdfc39af000-7fdfc3bae000 ---p 0010c000 08:01 797192                     /usr/lib/libglib-2.0.so.0.4600.0
7fdfc3bae000-7fdfc3baf000 r--p 0010b000 08:01 797192                     /usr/lib/libglib-2.0.so.0.4600.0
7fdfc3baf000-7fdfc3bb0000 rw-p 0010c000 08:01 797192                     /usr/lib/libglib-2.0.so.0.4600.0
7fdfc3bb0000-7fdfc3bb1000 rw-p 00000000 00:00 0 
7fdfc3bb1000-7fdfc3bc8000 r-xp 00000000 08:01 820004                     /usr/lib/libfribidi.so.0.3.6
7fdfc3bc8000-7fdfc3dc7000 ---p 00017000 08:01 820004                     /usr/lib/libfribidi.so.0.3.6
7fdfc3dc7000-7fdfc3dc8000 r--p 00016000 08:01 820004                     /usr/lib/libfribidi.so.0.3.6
7fdfc3dc8000-7fdfc3dc9000 rw-p 00017000 08:01 820004                     /usr/lib/libfribidi.so.0.3.6
7fdfc3dc9000-7fdfc3df0000 r-xp 00000000 08:01 796966                     /usr/lib/libexpat.so.1.6.0
7fdfc3df0000-7fdfc3fef000 ---p 00027000 08:01 796966                     /usr/lib/libexpat.so.1.6.0
7fdfc3fef000-7fdfc3ff2000 r--p 00026000 08:01 796966                     /usr/lib/libexpat.so.1.6.0
7fdfc3ff2000-7fdfc3ff3000 rw-p 00029000 08:01 796966                     /usr/lib/libexpat.so.1.6.0
7fdfc3ff3000-7fdfc4053000 r-xp 00000000 08:01 811010                     /usr/lib/libharfbuzz.so.0.10000.4
7fdfc4053000-7fdfc4253000 ---p 00060000 08:01 811010                     /usr/lib/libharfbuzz.so.0.10000.4
7fdfc4253000-7fdfc4254000 r--p 00060000 08:01 811010                     /usr/lib/libharfbuzz.so.0.10000.4
7fdfc4254000-7fdfc4255000 rw-p 00061000 08:01 811010                     /usr/lib/libharfbuzz.so.0.10000.4
7fdfc4255000-7fdfc4289000 r-xp 00000000 08:01 810812                     /usr/lib/libpng16.so.16.18.0
7fdfc4289000-7fdfc4488000 ---p 00034000 08:01 810812                     /usr/lib/libpng16.so.16.18.0
7fdfc4488000-7fdfc4489000 r--p 00033000 08:01 810812                     /usr/lib/libpng16.so.16.18.0
7fdfc4489000-7fdfc448a000 rw-p 00034000 08:01 810812                     /usr/lib/libpng16.so.16.18.0
7fdfc448a000-7fdfc44d8000 r-xp 00000000 08:01 796957                     /usr/lib/libdbus-1.so.3.14.3
7fdfc44d8000-7fdfc46d8000 ---p 0004e000 08:01 796957                     /usr/lib/libdbus-1.so.3.14.3
7fdfc46d8000-7fdfc46d9000 r--p 0004e000 08:01 796957                     /usr/lib/libdbus-1.so.3.14.3
7fdfc46d9000-7fdfc46da000 rw-p 0004f000 08:01 796957                     /usr/lib/libdbus-1.so.3.14.3
7fdfc46da000-7fdfc46db000 rw-p 00000000 00:00 0 
7fdfc46db000-7fdfc46e5000 r-xp 00000000 08:01 816494                     /usr/lib/libjson-c.so.2.0.1
7fdfc46e5000-7fdfc48e4000 ---p 0000a000 08:01 816494                     /usr/lib/libjson-c.so.2.0.1
7fdfc48e4000-7fdfc48e5000 r--p 00009000 08:01 816494                     /usr/lib/libjson-c.so.2.0.1
7fdfc48e5000-7fdfc48e6000 rw-p 0000a000 08:01 816494                     /usr/lib/libjson-c.so.2.0.1
7fdfc48e6000-7fdfc4964000 r-xp 00000000 08:01 816556                     /usr/lib/pulseaudio/libpulsecommon-7.0.so
7fdfc4964000-7fdfc4b63000 ---p 0007e000 08:01 816556                     /usr/lib/pulseaudio/libpulsecommon-7.0.so
7fdfc4b63000-7fdfc4b64000 r--p 0007d000 08:01 816556                     /usr/lib/pulseaudio/libpulsecommon-7.0.so
7fdfc4b64000-7fdfc4b66000 rw-p 0007e000 08:01 816556                     /usr/lib/pulseaudio/libpulsecommon-7.0.so
7fdfc4b66000-7fdfc4b6c000 r-xp 00000000 08:01 816404                     /usr/lib/libogg.so.0.8.2
7fdfc4b6c000-7fdfc4d6b000 ---p 00006000 08:01 816404                     /usr/lib/libogg.so.0.8.2
7fdfc4d6b000-7fdfc4d6c000 r--p 00005000 08:01 816404                     /usr/lib/libogg.so.0.8.2
7fdfc4d6c000-7fdfc4d6d000 rw-p 00006000 08:01 816404                     /usr/lib/libogg.so.0.8.2
7fdfc4d6d000-7fdfc4d74000 r-xp 00000000 08:01 789705                     /usr/lib/librt-2.22.so
7fdfc4d74000-7fdfc4f73000 ---p 00007000 08:01 789705                     /usr/lib/librt-2.22.so
7fdfc4f73000-7fdfc4f74000 r--p 00006000 08:01 789705                     /usr/lib/librt-2.22.so
7fdfc4f74000-7fdfc4f75000 rw-p 00007000 08:01 789705                     /usr/lib/librt-2.22.so
7fdfc4f75000-7fdfc512a000 r-xp 00000000 08:01 792919                     /usr/lib/libdb-5.3.so
7fdfc512a000-7fdfc532a000 ---p 001b5000 08:01 792919                     /usr/lib/libdb-5.3.so
7fdfc532a000-7fdfc5332000 r--p 001b5000 08:01 792919                     /usr/lib/libdb-5.3.so
7fdfc5332000-7fdfc5335000 rw-p 001bd000 08:01 792919                     /usr/lib/libdb-5.3.so
7fdfc5335000-7fdfc533a000 r-xp 00000000 08:01 807236                     /usr/lib/libXdmcp.so.6.0.0
7fdfc533a000-7fdfc5539000 ---p 00005000 08:01 807236                     /usr/lib/libXdmcp.so.6.0.0
7fdfc5539000-7fdfc553a000 r--p 00004000 08:01 807236                     /usr/lib/libXdmcp.so.6.0.0
7fdfc553a000-7fdfc553b000 rw-p 00005000 08:01 807236                     /usr/lib/libXdmcp.so.6.0.0
7fdfc553b000-7fdfc553d000 r-xp 00000000 08:01 807241                     /usr/lib/libXau.so.6.0.0
7fdfc553d000-7fdfc573d000 ---p 00002000 08:01 807241                     /usr/lib/libXau.so.6.0.0
7fdfc573d000-7fdfc573e000 r--p 00002000 08:01 807241                     /usr/lib/libXau.so.6.0.0
7fdfc573e000-7fdfc573f000 rw-p 00003000 08:01 807241                     /usr/lib/libXau.so.6.0.0
7fdfc573f000-7fdfc5742000 r-xp 00000000 08:01 789701                     /usr/lib/libdl-2.22.so
7fdfc5742000-7fdfc5941000 ---p 00003000 08:01 789701                     /usr/lib/libdl-2.22.so
7fdfc5941000-7fdfc5942000 r--p 00002000 08:01 789701                     /usr/lib/libdl-2.22.so
7fdfc5942000-7fdfc5943000 rw-p 00003000 08:01 789701                     /usr/lib/libdl-2.22.so
7fdfc5943000-7fdfc5ade000 r-xp 00000000 08:01 789648                     /usr/lib/libc-2.22.so
7fdfc5ade000-7fdfc5cdd000 ---p 0019b000 08:01 789648                     /usr/lib/libc-2.22.so
7fdfc5cdd000-7fdfc5ce1000 r--p 0019a000 08:01 789648                     /usr/lib/libc-2.22.so
7fdfc5ce1000-7fdfc5ce3000 rw-p 0019e000 08:01 789648                     /usr/lib/libc-2.22.so
7fdfc5ce3000-7fdfc5ce7000 rw-p 00000000 00:00 0 
7fdfc5ce7000-7fdfc5cea000 r-xp 00000000 08:01 820060                     /usr/lib/libvdpau.so.1.0.0
7fdfc5cea000-7fdfc5ee9000 ---p 00003000 08:01 820060                     /usr/lib/libvdpau.so.1.0.0
7fdfc5ee9000-7fdfc5eea000 r--p 00002000 08:01 820060                     /usr/lib/libvdpau.so.1.0.0
7fdfc5eea000-7fdfc5eeb000 rw-p 00003000 08:01 820060                     /usr/lib/libvdpau.so.1.0.0
7fdfc5eeb000-7fdfc5f00000 r-xp 00000000 08:01 792857                     /usr/lib/libz.so.1.2.8
7fdfc5f00000-7fdfc60ff000 ---p 00015000 08:01 792857                     /usr/lib/libz.so.1.2.8
7fdfc60ff000-7fdfc6100000 r--p 00014000 08:01 792857                     /usr/lib/libz.so.1.2.8
7fdfc6100000-7fdfc6101000 rw-p 00015000 08:01 792857                     /usr/lib/libz.so.1.2.8
7fdfc6101000-7fdfc6110000 r-xp 00000000 08:01 792696                     /usr/lib/libbz2.so.1.0.6
7fdfc6110000-7fdfc630f000 ---p 0000f000 08:01 792696                     /usr/lib/libbz2.so.1.0.6
7fdfc630f000-7fdfc6311000 rw-p 0000e000 08:01 792696                     /usr/lib/libbz2.so.1.0.6
7fdfc6311000-7fdfc6336000 r-xp 00000000 08:01 798277                     /usr/lib/liblzma.so.5.2.2
7fdfc6336000-7fdfc6535000 ---p 00025000 08:01 798277                     /usr/lib/liblzma.so.5.2.2
7fdfc6535000-7fdfc6536000 r--p 00024000 08:01 798277                     /usr/lib/liblzma.so.5.2.2
7fdfc6536000-7fdfc6537000 rw-p 00025000 08:01 798277                     /usr/lib/liblzma.so.5.2.2
7fdfc6537000-7fdfc6566000 r-xp 00000000 08:01 820054                     /usr/lib/libass.so.5.2.0
7fdfc6566000-7fdfc6765000 ---p 0002f000 08:01 820054                     /usr/lib/libass.so.5.2.0
7fdfc6765000-7fdfc6766000 r--p 0002e000 08:01 820054                     /usr/lib/libass.so.5.2.0
7fdfc6766000-7fdfc6767000 rw-p 0002f000 08:01 820054                     /usr/lib/libass.so.5.2.0
7fdfc6767000-7fdfc67a4000 r-xp 00000000 08:01 811505                     /usr/lib/libfontconfig.so.1.8.0
7fdfc67a4000-7fdfc69a3000 ---p 0003d000 08:01 811505                     /usr/lib/libfontconfig.so.1.8.0
7fdfc69a3000-7fdfc69a5000 r--p 0003c000 08:01 811505                     /usr/lib/libfontconfig.so.1.8.0
7fdfc69a5000-7fdfc69a6000 rw-p 0003e000 08:01 811505                     /usr/lib/libfontconfig.so.1.8.0
7fdfc69a6000-7fdfc6a5d000 r-xp 00000000 08:01 831987                     /usr/lib/libfreetype.so.6.12.1
7fdfc6a5d000-7fdfc6c5c000 ---p 000b7000 08:01 831987                     /usr/lib/libfreetype.so.6.12.1
7fdfc6c5c000-7fdfc6c62000 r--p 000b6000 08:01 831987                     /usr/lib/libfreetype.so.6.12.1
7fdfc6c62000-7fdfc6c63000 rw-p 000bc000 08:01 831987                     /usr/lib/libfreetype.so.6.12.1
7fdfc6c63000-7fdfc6cab000 r-xp 00000000 08:01 819971                     /usr/lib/libmp3lame.so.0.0.0
7fdfc6cab000-7fdfc6eaa000 ---p 00048000 08:01 819971                     /usr/lib/libmp3lame.so.0.0.0
7fdfc6eaa000-7fdfc6eab000 r--p 00047000 08:01 819971                     /usr/lib/libmp3lame.so.0.0.0
7fdfc6eab000-7fdfc6eac000 rw-p 00048000 08:01 819971                     /usr/lib/libmp3lame.so.0.0.0
7fdfc6eac000-7fdfc6eda000 rw-p 00000000 00:00 0 
7fdfc6eda000-7fdfc6f02000 r-xp 00000000 08:01 820137                     /usr/lib/libopenjpeg.so.1.5.2
7fdfc6f02000-7fdfc7101000 ---p 00028000 08:01 820137                     /usr/lib/libopenjpeg.so.1.5.2
7fdfc7101000-7fdfc7102000 r--p 00027000 08:01 820137                     /usr/lib/libopenjpeg.so.1.5.2
7fdfc7102000-7fdfc7103000 rw-p 00028000 08:01 820137                     /usr/lib/libopenjpeg.so.1.5.2
7fdfc7103000-7fdfc7152000 r-xp 00000000 08:01 816545                     /usr/lib/libpulse.so.0.18.2
7fdfc7152000-7fdfc7352000 ---p 0004f000 08:01 816545                     /usr/lib/libpulse.so.0.18.2
7fdfc7352000-7fdfc7353000 r--p 0004f000 08:01 816545                     /usr/lib/libpulse.so.0.18.2
7fdfc7353000-7fdfc7354000 rw-p 00050000 08:01 816545                     /usr/lib/libpulse.so.0.18.2
7fdfc7354000-7fdfc737f000 r-xp 00000000 08:01 816442                     /usr/lib/libvorbis.so.0.4.8
7fdfc737f000-7fdfc757f000 ---p 0002b000 08:01 816442                     /usr/lib/libvorbis.so.0.4.8
7fdfc757f000-7fdfc7580000 r--p 0002b000 08:01 816442                     /usr/lib/libvorbis.so.0.4.8
7fdfc7580000-7fdfc7581000 rw-p 0002c000 08:01 816442                     /usr/lib/libvorbis.so.0.4.8
7fdfc7581000-7fdfc7612000 r-xp 00000000 08:01 816439                     /usr/lib/libvorbisenc.so.2.0.11
7fdfc7612000-7fdfc7811000 ---p 00091000 08:01 816439                     /usr/lib/libvorbisenc.so.2.0.11
7fdfc7811000-7fdfc7833000 r--p 00090000 08:01 816439                     /usr/lib/libvorbisenc.so.2.0.11
7fdfc7833000-7fdfc7834000 rw-p 000b2000 08:01 816439                     /usr/lib/libvorbisenc.so.2.0.11
7fdfc7834000-7fdfc7931000 r-xp 00000000 08:01 789702                     /usr/lib/libm-2.22.so
7fdfc7931000-7fdfc7b30000 ---p 000fd000 08:01 789702                     /usr/lib/libm-2.22.so
7fdfc7b30000-7fdfc7b31000 r--p 000fc000 08:01 789702                     /usr/lib/libm-2.22.so
7fdfc7b31000-7fdfc7b32000 rw-p 000fd000 08:01 789702                     /usr/lib/libm-2.22.so
7fdfc7b32000-7fdfc7d27000 r-xp 00000000 08:01 813301                     /usr/lib/libvpx.so.2.0.0
7fdfc7d27000-7fdfc7f26000 ---p 001f5000 08:01 813301                     /usr/lib/libvpx.so.2.0.0
7fdfc7f26000-7fdfc7f28000 r--p 001f4000 08:01 813301                     /usr/lib/libvpx.so.2.0.0
7fdfc7f28000-7fdfc7f29000 rw-p 001f6000 08:01 813301                     /usr/lib/libvpx.so.2.0.0
7fdfc7f29000-7fdfc7f2c000 rw-p 00000000 00:00 0 
7fdfc7f2c000-7fdfc8026000 r-xp 00000000 08:01 820466                     /usr/lib/libx264.so.148
7fdfc8026000-7fdfc8225000 ---p 000fa000 08:01 820466                     /usr/lib/libx264.so.148
7fdfc8225000-7fdfc8226000 r--p 000f9000 08:01 820466                     /usr/lib/libx264.so.148
7fdfc8226000-7fdfc8227000 rw-p 000fa000 08:01 820466                     /usr/lib/libx264.so.148
7fdfc8227000-7fdfc82a2000 rw-p 00000000 00:00 0 
7fdfc82a2000-7fdfc82ba000 r-xp 00000000 08:01 789623                     /usr/lib/libpthread-2.22.so
7fdfc82ba000-7fdfc84b9000 ---p 00018000 08:01 789623                     /usr/lib/libpthread-2.22.so
7fdfc84b9000-7fdfc84ba000 r--p 00017000 08:01 789623                     /usr/lib/libpthread-2.22.so
7fdfc84ba000-7fdfc84bb000 rw-p 00018000 08:01 789623                     /usr/lib/libpthread-2.22.so
7fdfc84bb000-7fdfc84bf000 rw-p 00000000 00:00 0 
7fdfc84bf000-7fdfc8528000 r-xp 00000000 08:01 820150                     /usr/lib/libSDL-1.2.so.0.11.4
7fdfc8528000-7fdfc8728000 ---p 00069000 08:01 820150                     /usr/lib/libSDL-1.2.so.0.11.4
7fdfc8728000-7fdfc8729000 r--p 00069000 08:01 820150                     /usr/lib/libSDL-1.2.so.0.11.4
7fdfc8729000-7fdfc872a000 rw-p 0006a000 08:01 820150                     /usr/lib/libSDL-1.2.so.0.11.4
7fdfc872a000-7fdfc8758000 rw-p 00000000 00:00 0 
7fdfc8758000-7fdfc884b000 r-xp 00000000 08:01 812143                     /usr/lib/libasound.so.2.0.0
7fdfc884b000-7fdfc8a4a000 ---p 000f3000 08:01 812143                     /usr/lib/libasound.so.2.0.0
7fdfc8a4a000-7fdfc8a51000 r--p 000f2000 08:01 812143                     /usr/lib/libasound.so.2.0.0
7fdfc8a51000-7fdfc8a53000 rw-p 000f9000 08:01 812143                     /usr/lib/libasound.so.2.0.0
7fdfc8a53000-7fdfc8a69000 r-xp 00000000 08:01 820727                     /usr/lib/libjack.so.0.0.28
7fdfc8a69000-7fdfc8c68000 ---p 00016000 08:01 820727                     /usr/lib/libjack.so.0.0.28
7fdfc8c68000-7fdfc8c69000 r--p 00015000 08:01 820727                     /usr/lib/libjack.so.0.0.28
7fdfc8c69000-7fdfc8c6a000 rw-p 00016000 08:01 820727                     /usr/lib/libjack.so.0.0.28
7fdfc8c6a000-7fdfc8c73000 rw-p 00000000 00:00 0 
7fdfc8c73000-7fdfc8c76000 r-xp 00000000 08:01 809570                     /usr/lib/libxcb-shape.so.0.0.0
7fdfc8c76000-7fdfc8e75000 ---p 00003000 08:01 809570                     /usr/lib/libxcb-shape.so.0.0.0
7fdfc8e75000-7fdfc8e76000 r--p 00002000 08:01 809570                     /usr/lib/libxcb-shape.so.0.0.0
7fdfc8e76000-7fdfc8e77000 rw-p 00003000 08:01 809570                     /usr/lib/libxcb-shape.so.0.0.0
7fdfc8e77000-7fdfc8e7d000 r-xp 00000000 08:01 809550                     /usr/lib/libxcb-xfixes.so.0.0.0
7fdfc8e7d000-7fdfc907d000 ---p 00006000 08:01 809550                     /usr/lib/libxcb-xfixes.so.0.0.0
7fdfc907d000-7fdfc907e000 r--p 00006000 08:01 809550                     /usr/lib/libxcb-xfixes.so.0.0.0
7fdfc907e000-7fdfc907f000 rw-p 00007000 08:01 809550                     /usr/lib/libxcb-xfixes.so.0.0.0
7fdfc907f000-7fdfc9081000 r-xp 00000000 08:01 809584                     /usr/lib/libxcb-shm.so.0.0.0
7fdfc9081000-7fdfc9281000 ---p 00002000 08:01 809584                     /usr/lib/libxcb-shm.so.0.0.0
7fdfc9281000-7fdfc9282000 r--p 00002000 08:01 809584                     /usr/lib/libxcb-shm.so.0.0.0
7fdfc9282000-7fdfc9283000 rw-p 00003000 08:01 809584                     /usr/lib/libxcb-shm.so.0.0.0
7fdfc9283000-7fdfc92a4000 r-xp 00000000 08:01 809574                     /usr/lib/libxcb.so.1.1.0
7fdfc92a4000-7fdfc94a4000 ---p 00021000 08:01 809574                     /usr/lib/libxcb.so.1.1.0
7fdfc94a4000-7fdfc94a5000 r--p 00021000 08:01 809574                     /usr/lib/libxcb.so.1.1.0
7fdfc94a5000-7fdfc94a6000 rw-p 00022000 08:01 809574                     /usr/lib/libxcb.so.1.1.0
7fdfc94a6000-7fdfc94c1000 r-xp 00000000 08:01 820107                     /usr/lib/libva.so.1.3800.0
7fdfc94c1000-7fdfc96c0000 ---p 0001b000 08:01 820107                     /usr/lib/libva.so.1.3800.0
7fdfc96c0000-7fdfc96c1000 r--p 0001a000 08:01 820107                     /usr/lib/libva.so.1.3800.0
7fdfc96c1000-7fdfc96c2000 rw-p 0001b000 08:01 820107                     /usr/lib/libva.so.1.3800.0
7fdfc96c2000-7fdfc96d3000 r-xp 00000000 08:01 810985                     /usr/lib/libXext.so.6.4.0
7fdfc96d3000-7fdfc98d2000 ---p 00011000 08:01 810985                     /usr/lib/libXext.so.6.4.0
7fdfc98d2000-7fdfc98d3000 r--p 00010000 08:01 810985                     /usr/lib/libXext.so.6.4.0
7fdfc98d3000-7fdfc98d4000 rw-p 00011000 08:01 810985                     /usr/lib/libXext.so.6.4.0
7fdfc98d4000-7fdfc9a0f000 r-xp 00000000 08:01 809770                     /usr/lib/libX11.so.6.3.0
7fdfc9a0f000-7fdfc9c0e000 ---p 0013b000 08:01 809770                     /usr/lib/libX11.so.6.3.0
7fdfc9c0e000-7fdfc9c10000 r--p 0013a000 08:01 809770                     /usr/lib/libX11.so.6.3.0
7fdfc9c10000-7fdfc9c15000 rw-p 0013c000 08:01 809770                     /usr/lib/libX11.so.6.3.0
7fdfc9c15000-7fdfc9c16000 rw-p 00000000 00:00 0 
7fdfc9c16000-7fdfc9c1a000 r-xp 00000000 08:01 815823                     /usr/lib/libXv.so.1.0.0
7fdfc9c1a000-7fdfc9e19000 ---p 00004000 08:01 815823                     /usr/lib/libXv.so.1.0.0
7fdfc9e19000-7fdfc9e1a000 r--p 00003000 08:01 815823                     /usr/lib/libXv.so.1.0.0
7fdfc9e1a000-7fdfc9e1b000 rw-p 00004000 08:01 815823                     /usr/lib/libXv.so.1.0.0
7fdfc9e1b000-7fdfc9e3d000 r-xp 00000000 08:01 789647                     /usr/lib/ld-2.22.so
7fdfc9e63000-7fdfc9f7f000 rw-p 00000000 00:00 0 
7fdfc9f7f000-7fdfca001000 r-xp 00000000 08:01 798413                     /usr/lib/libsystemd.so.0.11.0
7fdfca001000-7fdfca004000 r--p 00081000 08:01 798413                     /usr/lib/libsystemd.so.0.11.0
7fdfca004000-7fdfca005000 rw-p 00084000 08:01 798413                     /usr/lib/libsystemd.so.0.11.0
7fdfca005000-7fdfca014000 rw-p 00000000 00:00 0 
7fdfca03b000-7fdfca03c000 rw-p 00000000 00:00 0 
7fdfca03c000-7fdfca03d000 r--p 00021000 08:01 789647                     /usr/lib/ld-2.22.so
7fdfca03d000-7fdfca03e000 rw-p 00022000 08:01 789647                     /usr/lib/ld-2.22.so
7fdfca03e000-7fdfca03f000 rw-p 00000000 00:00 0 
7ffeef674000-7ffeef695000 rw-p 00000000 00:00 0                          [stack]
7ffeef6d2000-7ffeef6d4000 r--p 00000000 00:00 0                          [vvar]
7ffeef6d4000-7ffeef6d6000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
zsh: abort (core dumped)  ./ffmpeg -i feathers.flac -strict -2 -profile:a aac_ltp -y /tmp/test.aac
[~/src/ffmpeg]☠
*** Error in `/home/ux/src/ffmpeg/ffmpeg_g': corrupted double-linked list: 0x0000000001c46660 ***

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe7d97700 (LWP 24212)]
0x00007ffff626f04f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
(gdb) bt
#0  0x00007ffff626f04f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00000000009ced06 in frame_worker_thread (arg=0x1c686a0) at libavcodec/pthread_frame.c:145
#2  0x00007ffff62694a4 in start_thread () from /usr/lib/libpthread.so.0
#3  0x00007ffff39ec13d in clone () from /usr/lib/libc.so.6
(gdb) 

Attachments (1)

feathers.flac (1.4 MB) - added by ubitux 4 years ago.

Download all attachments as: .zip

Change History (8)

Changed 4 years ago by ubitux

comment:1 Changed 4 years ago by ubitux

This might help:

==950== Invalid write of size 86 bitrate= 131.6kbits/s    
==950==    at 0x90C102: ff_lpc_calc_ref_coefs_f (lpc.c:181)
==950==    by 0xE3DB4C: ff_aac_search_for_tns (aacenc_tns.c:208)
==950==    by 0xCFDB78: aac_encode_frame (aacenc.c:675)
==950==    by 0xA91AD8: avcodec_encode_audio2 (utils.c:1750)
==950==    by 0x49AFB5: do_audio_out (ffmpeg.c:836)
==950==    by 0x49AFB5: reap_filters (ffmpeg.c:1388)
==950==    by 0x47D07C: transcode_step (ffmpeg.c:4030)
==950==    by 0x47D07C: transcode (ffmpeg.c:4073)
==950==    by 0x47D07C: main (ffmpeg.c:4256)
==950==  Address 0xd015830 is 0 bytes after a block of size 16,560 alloc'd
==950==    at 0x4C2AD45: memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==950==    by 0x4C2AE0D: posix_memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==950==    by 0xF0224F: av_malloc (mem.c:97)
==950==    by 0xF0224F: av_mallocz (mem.c:254)
==950==    by 0x439A57: ff_lpc_init (lpc.c:303)
==950==    by 0x464B05: aac_encode_init (aacenc.c:978)
==950==    by 0xA9637C: avcodec_open2 (utils.c:1472)
==950==    by 0x49604D: init_output_stream (ffmpeg.c:2608)
==950==    by 0x49604D: transcode_init (ffmpeg.c:3173)
==950==    by 0x47C9B2: transcode (ffmpeg.c:4044)
==950==    by 0x47C9B2: main (ffmpeg.c:4256)
==950== 
==950== Invalid read of size 16
==950==    at 0xC37DA2: lpc_compute_autocorr_sse2 (lpc.c:124)
==950==    by 0x90C12C: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==950==    by 0xE3DB4C: ff_aac_search_for_tns (aacenc_tns.c:208)
==950==    by 0xCFDB78: aac_encode_frame (aacenc.c:675)
==950==    by 0xA91AD8: avcodec_encode_audio2 (utils.c:1750)
==950==    by 0x49AFB5: do_audio_out (ffmpeg.c:836)
==950==    by 0x49AFB5: reap_filters (ffmpeg.c:1388)
==950==    by 0x47D07C: transcode_step (ffmpeg.c:4030)
==950==    by 0x47D07C: transcode (ffmpeg.c:4073)
==950==    by 0x47D07C: main (ffmpeg.c:4256)
==950==  Address 0xd015830 is 0 bytes after a block of size 16,560 alloc'd
==950==    at 0x4C2AD45: memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==950==    by 0x4C2AE0D: posix_memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==950==    by 0xF0224F: av_malloc (mem.c:97)
==950==    by 0xF0224F: av_mallocz (mem.c:254)
==950==    by 0x439A57: ff_lpc_init (lpc.c:303)
==950==    by 0x464B05: aac_encode_init (aacenc.c:978)
==950==    by 0xA9637C: avcodec_open2 (utils.c:1472)
==950==    by 0x49604D: init_output_stream (ffmpeg.c:2608)
==950==    by 0x49604D: transcode_init (ffmpeg.c:3173)
==950==    by 0x47C9B2: transcode (ffmpeg.c:4044)
==950==    by 0x47C9B2: main (ffmpeg.c:4256)
==950== 
==950== Invalid read of size 16
==950==    at 0xC37DA8: lpc_compute_autocorr_sse2 (lpc.c:124)
==950==    by 0x90C12C: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==950==    by 0xE3DB4C: ff_aac_search_for_tns (aacenc_tns.c:208)
==950==    by 0xCFDB78: aac_encode_frame (aacenc.c:675)
==950==    by 0xA91AD8: avcodec_encode_audio2 (utils.c:1750)
==950==    by 0x49AFB5: do_audio_out (ffmpeg.c:836)
==950==    by 0x49AFB5: reap_filters (ffmpeg.c:1388)
==950==    by 0x47D07C: transcode_step (ffmpeg.c:4030)
==950==    by 0x47D07C: transcode (ffmpeg.c:4073)
==950==    by 0x47D07C: main (ffmpeg.c:4256)
==950==  Address 0xd015828 is 16,552 bytes inside a block of size 16,560 alloc'd
==950==    at 0x4C2AD45: memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==950==    by 0x4C2AE0D: posix_memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==950==    by 0xF0224F: av_malloc (mem.c:97)
==950==    by 0xF0224F: av_mallocz (mem.c:254)
==950==    by 0x439A57: ff_lpc_init (lpc.c:303)
==950==    by 0x464B05: aac_encode_init (aacenc.c:978)
==950==    by 0xA9637C: avcodec_open2 (utils.c:1472)
==950==    by 0x49604D: init_output_stream (ffmpeg.c:2608)
==950==    by 0x49604D: transcode_init (ffmpeg.c:3173)
==950==    by 0x47C9B2: transcode (ffmpeg.c:4044)
==950==    by 0x47C9B2: main (ffmpeg.c:4256)
==950== 
==950== Invalid read of size 16
==950==    at 0xC37DB2: lpc_compute_autocorr_sse2 (lpc.c:124)
==950==    by 0x90C12C: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==950==    by 0xE3DB4C: ff_aac_search_for_tns (aacenc_tns.c:208)
==950==    by 0xCFDB78: aac_encode_frame (aacenc.c:675)
==950==    by 0xA91AD8: avcodec_encode_audio2 (utils.c:1750)
==950==    by 0x49AFB5: do_audio_out (ffmpeg.c:836)
==950==    by 0x49AFB5: reap_filters (ffmpeg.c:1388)
==950==    by 0x47D07C: transcode_step (ffmpeg.c:4030)
==950==    by 0x47D07C: transcode (ffmpeg.c:4073)
==950==    by 0x47D07C: main (ffmpeg.c:4256)
==950==  Address 0xd015830 is 0 bytes after a block of size 16,560 alloc'd
==950==    at 0x4C2AD45: memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==950==    by 0x4C2AE0D: posix_memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==950==    by 0xF0224F: av_malloc (mem.c:97)
==950==    by 0xF0224F: av_mallocz (mem.c:254)
==950==    by 0x439A57: ff_lpc_init (lpc.c:303)
==950==    by 0x464B05: aac_encode_init (aacenc.c:978)
==950==    by 0xA9637C: avcodec_open2 (utils.c:1472)
==950==    by 0x49604D: init_output_stream (ffmpeg.c:2608)
==950==    by 0x49604D: transcode_init (ffmpeg.c:3173)
==950==    by 0x47C9B2: transcode (ffmpeg.c:4044)
==950==    by 0x47C9B2: main (ffmpeg.c:4256)
==950== 
==950== Invalid read of size 16
==950==    at 0xC37DC3: lpc_compute_autocorr_sse2 (lpc.c:124)
==950==    by 0x90C12C: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==950==    by 0xE3DB4C: ff_aac_search_for_tns (aacenc_tns.c:208)
==950==    by 0xCFDB78: aac_encode_frame (aacenc.c:675)
==950==    by 0xA91AD8: avcodec_encode_audio2 (utils.c:1750)
==950==    by 0x49AFB5: do_audio_out (ffmpeg.c:836)
==950==    by 0x49AFB5: reap_filters (ffmpeg.c:1388)
==950==    by 0x47D07C: transcode_step (ffmpeg.c:4030)
==950==    by 0x47D07C: transcode (ffmpeg.c:4073)
==950==    by 0x47D07C: main (ffmpeg.c:4256)
==950==  Address 0xd015840 is 16 bytes after a block of size 16,560 alloc'd
==950==    at 0x4C2AD45: memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==950==    by 0x4C2AE0D: posix_memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==950==    by 0xF0224F: av_malloc (mem.c:97)
==950==    by 0xF0224F: av_mallocz (mem.c:254)
==950==    by 0x439A57: ff_lpc_init (lpc.c:303)
==950==    by 0x464B05: aac_encode_init (aacenc.c:978)
==950==    by 0xA9637C: avcodec_open2 (utils.c:1472)
==950==    by 0x49604D: init_output_stream (ffmpeg.c:2608)
==950==    by 0x49604D: transcode_init (ffmpeg.c:3173)
==950==    by 0x47C9B2: transcode (ffmpeg.c:4044)
==950==    by 0x47C9B2: main (ffmpeg.c:4256)
==950== 
==950== Invalid read of size 16
==950==    at 0xC37E08: lpc_compute_autocorr_sse2 (lpc.c:93)
==950==    by 0x90C12C: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==950==    by 0xE3DB4C: ff_aac_search_for_tns (aacenc_tns.c:208)
==950==    by 0xCFDB78: aac_encode_frame (aacenc.c:675)
==950==    by 0xA91AD8: avcodec_encode_audio2 (utils.c:1750)
==950==    by 0x49AFB5: do_audio_out (ffmpeg.c:836)
==950==    by 0x49AFB5: reap_filters (ffmpeg.c:1388)
==950==    by 0x47D07C: transcode_step (ffmpeg.c:4030)
==950==    by 0x47D07C: transcode (ffmpeg.c:4073)
==950==    by 0x47D07C: main (ffmpeg.c:4256)
==950==  Address 0xd015830 is 0 bytes after a block of size 16,560 alloc'd
==950==    at 0x4C2AD45: memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==950==    by 0x4C2AE0D: posix_memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==950==    by 0xF0224F: av_malloc (mem.c:97)
==950==    by 0xF0224F: av_mallocz (mem.c:254)
==950==    by 0x439A57: ff_lpc_init (lpc.c:303)
==950==    by 0x464B05: aac_encode_init (aacenc.c:978)
==950==    by 0xA9637C: avcodec_open2 (utils.c:1472)
==950==    by 0x49604D: init_output_stream (ffmpeg.c:2608)
==950==    by 0x49604D: transcode_init (ffmpeg.c:3173)
==950==    by 0x47C9B2: transcode (ffmpeg.c:4044)
==950==    by 0x47C9B2: main (ffmpeg.c:4256)
==950== 
==950== Invalid read of size 16
==950==    at 0xC37E37: lpc_compute_autocorr_sse2 (lpc.c:93)
==950==    by 0x90C12C: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==950==    by 0xE3DB4C: ff_aac_search_for_tns (aacenc_tns.c:208)
==950==    by 0xCFDB78: aac_encode_frame (aacenc.c:675)
==950==    by 0xA91AD8: avcodec_encode_audio2 (utils.c:1750)
==950==    by 0x49AFB5: do_audio_out (ffmpeg.c:836)
==950==    by 0x49AFB5: reap_filters (ffmpeg.c:1388)
==950==    by 0x47D07C: transcode_step (ffmpeg.c:4030)
==950==    by 0x47D07C: transcode (ffmpeg.c:4073)
==950==    by 0x47D07C: main (ffmpeg.c:4256)
==950==  Address 0xd015840 is 16 bytes after a block of size 16,560 alloc'd
==950==    at 0x4C2AD45: memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==950==    by 0x4C2AE0D: posix_memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==950==    by 0xF0224F: av_malloc (mem.c:97)
==950==    by 0xF0224F: av_mallocz (mem.c:254)
==950==    by 0x439A57: ff_lpc_init (lpc.c:303)
==950==    by 0x464B05: aac_encode_init (aacenc.c:978)
==950==    by 0xA9637C: avcodec_open2 (utils.c:1472)
==950==    by 0x49604D: init_output_stream (ffmpeg.c:2608)
==950==    by 0x49604D: transcode_init (ffmpeg.c:3173)
==950==    by 0x47C9B2: transcode (ffmpeg.c:4044)
==950==    by 0x47C9B2: main (ffmpeg.c:4256)
==950== 
==950== Invalid read of size 16
==950==    at 0xC37E0E: lpc_compute_autocorr_sse2 (lpc.c:93)
==950==    by 0x90C12C: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==950==    by 0xE3DB4C: ff_aac_search_for_tns (aacenc_tns.c:208)
==950==    by 0xCFDB78: aac_encode_frame (aacenc.c:675)
==950==    by 0xA91AD8: avcodec_encode_audio2 (utils.c:1750)
==950==    by 0x49AFB5: do_audio_out (ffmpeg.c:836)
==950==    by 0x49AFB5: reap_filters (ffmpeg.c:1388)
==950==    by 0x47D07C: transcode_step (ffmpeg.c:4030)
==950==    by 0x47D07C: transcode (ffmpeg.c:4073)
==950==    by 0x47D07C: main (ffmpeg.c:4256)
==950==  Address 0xd015828 is 16,552 bytes inside a block of size 16,560 alloc'd
==950==    at 0x4C2AD45: memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==950==    by 0x4C2AE0D: posix_memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==950==    by 0xF0224F: av_malloc (mem.c:97)
==950==    by 0xF0224F: av_mallocz (mem.c:254)
==950==    by 0x439A57: ff_lpc_init (lpc.c:303)
==950==    by 0x464B05: aac_encode_init (aacenc.c:978)
==950==    by 0xA9637C: avcodec_open2 (utils.c:1472)
==950==    by 0x49604D: init_output_stream (ffmpeg.c:2608)
==950==    by 0x49604D: transcode_init (ffmpeg.c:3173)
==950==    by 0x47C9B2: transcode (ffmpeg.c:4044)
==950==    by 0x47C9B2: main (ffmpeg.c:4256)
==950== 
==950== Invalid read of size 16
==950==    at 0xC37E14: lpc_compute_autocorr_sse2 (lpc.c:93)
==950==    by 0x90C12C: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==950==    by 0xE3DB4C: ff_aac_search_for_tns (aacenc_tns.c:208)
==950==    by 0xCFDB78: aac_encode_frame (aacenc.c:675)
==950==    by 0xA91AD8: avcodec_encode_audio2 (utils.c:1750)
==950==    by 0x49AFB5: do_audio_out (ffmpeg.c:836)
==950==    by 0x49AFB5: reap_filters (ffmpeg.c:1388)
==950==    by 0x47D07C: transcode_step (ffmpeg.c:4030)
==950==    by 0x47D07C: transcode (ffmpeg.c:4073)
==950==    by 0x47D07C: main (ffmpeg.c:4256)
==950==  Address 0xd015830 is 0 bytes after a block of size 16,560 alloc'd
==950==    at 0x4C2AD45: memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==950==    by 0x4C2AE0D: posix_memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==950==    by 0xF0224F: av_malloc (mem.c:97)
==950==    by 0xF0224F: av_mallocz (mem.c:254)
==950==    by 0x439A57: ff_lpc_init (lpc.c:303)
==950==    by 0x464B05: aac_encode_init (aacenc.c:978)
==950==    by 0xA9637C: avcodec_open2 (utils.c:1472)
==950==    by 0x49604D: init_output_stream (ffmpeg.c:2608)
==950==    by 0x49604D: transcode_init (ffmpeg.c:3173)
==950==    by 0x47C9B2: transcode (ffmpeg.c:4044)
==950==    by 0x47C9B2: main (ffmpeg.c:4256)
==950== 
==950== Invalid read of size 16
==950==    at 0xC37E21: lpc_compute_autocorr_sse2 (lpc.c:93)
==950==    by 0x90C12C: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==950==    by 0xE3DB4C: ff_aac_search_for_tns (aacenc_tns.c:208)
==950==    by 0xCFDB78: aac_encode_frame (aacenc.c:675)
==950==    by 0xA91AD8: avcodec_encode_audio2 (utils.c:1750)
==950==    by 0x49AFB5: do_audio_out (ffmpeg.c:836)
==950==    by 0x49AFB5: reap_filters (ffmpeg.c:1388)
==950==    by 0x47D07C: transcode_step (ffmpeg.c:4030)
==950==    by 0x47D07C: transcode (ffmpeg.c:4073)
==950==    by 0x47D07C: main (ffmpeg.c:4256)
==950==  Address 0xd015830 is 0 bytes after a block of size 16,560 alloc'd
==950==    at 0x4C2AD45: memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==950==    by 0x4C2AE0D: posix_memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==950==    by 0xF0224F: av_malloc (mem.c:97)
==950==    by 0xF0224F: av_mallocz (mem.c:254)
==950==    by 0x439A57: ff_lpc_init (lpc.c:303)
==950==    by 0x464B05: aac_encode_init (aacenc.c:978)
==950==    by 0xA9637C: avcodec_open2 (utils.c:1472)
==950==    by 0x49604D: init_output_stream (ffmpeg.c:2608)
==950==    by 0x49604D: transcode_init (ffmpeg.c:3173)
==950==    by 0x47C9B2: transcode (ffmpeg.c:4044)
==950==    by 0x47C9B2: main (ffmpeg.c:4256)
==950== 
==950== Conditional jump or move depends on uninitialised value(s)
==950==    at 0xE3DB59: ff_aac_search_for_tns (aacenc_tns.c:211)
==950==    by 0xCFDB78: aac_encode_frame (aacenc.c:675)
==950==    by 0xA91AD8: avcodec_encode_audio2 (utils.c:1750)
==950==    by 0x49AFB5: do_audio_out (ffmpeg.c:836)
==950==    by 0x49AFB5: reap_filters (ffmpeg.c:1388)
==950==    by 0x47D07C: transcode_step (ffmpeg.c:4030)
==950==    by 0x47D07C: transcode (ffmpeg.c:4073)
==950==    by 0x47D07C: main (ffmpeg.c:4256)
==950== 
--950-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--950-- si_code=1;  Faulting address: 0x0;  sp: 0x802f10df0

valgrind: the 'impossible' happened:
   Killed by fatal signal

comment:2 Changed 4 years ago by cehoyos

  • Keywords crash SIGSEGV added; ltp removed
  • Reproduced by developer set
  • Status changed from new to open

comment:3 follow-up: Changed 4 years ago by atomnuker

  • Priority changed from important to normal
  • Reproduced by developer unset

I still cannot reproduce the crash.
I just pushed some optimization and calculation fixes, could you check if you still have the crash? Did it reappear?

comment:4 Changed 4 years ago by cehoyos

  • Priority changed from normal to important
  • Reproduced by developer set
$ ffmpeg -i feathers.flac -strict -2 -profile:a aac_ltp -acodec aac -f null -
ffmpeg version N-76122-g62144b2 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      55.  4.100 / 55.  4.100
  libavcodec     57.  7.100 / 57.  7.100
  libavformat    57.  8.102 / 57.  8.102
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 11.100 /  6. 11.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.100 /  2.  0.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, flac, from 'feathers.flac':
  Metadata:
    ENCODER         : Lavf57.8.100
  Duration: 00:02:55.37, start: 19.957551, bitrate: 69 kb/s
    Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf57.8.102
    Stream #0:0: Audio: aac, 44100 Hz, stereo, fltp (16 bit), 128 kb/s
    Metadata:
      encoder         : Lavc57.7.100 aac
Stream mapping:
  Stream #0:0 -> #0:0 (flac (native) -> aac (native))
Press [q] to stop, [?] for help
*** glibc detected *** ffmpeg: malloc(): memory corruption: 0x0000000002875b80 ***
$ valgrind ffmpeg_g -i feathers.flac -strict -2 -profile:a aac_ltp -acodec aac -f null -
==16936== Memcheck, a memory error detector
==16936== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==16936== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==16936== Command: ffmpeg_g -i feathers.flac -strict -2 -profile:a aac_ltp -acodec aac -f null -
==16936==
ffmpeg version N-76122-g62144b2 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      55.  4.100 / 55.  4.100
  libavcodec     57.  7.100 / 57.  7.100
  libavformat    57.  8.102 / 57.  8.102
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 11.100 /  6. 11.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.100 /  2.  0.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, flac, from 'feathers.flac':
  Metadata:
    ENCODER         : Lavf57.8.100
  Duration: 00:02:55.37, start: 19.957551, bitrate: 69 kb/s
    Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf57.8.102
    Stream #0:0: Audio: aac, 44100 Hz, stereo, fltp (16 bit), 128 kb/s
    Metadata:
      encoder         : Lavc57.7.100 aac
Stream mapping:
  Stream #0:0 -> #0:0 (flac (native) -> aac (native))
Press [q] to stop, [?] for help
==16936== Invalid write of size 8=N/A
==16936==    at 0x995934: ff_lpc_calc_ref_coefs_f (lpc.c:181)
==16936==    by 0xF2EECB: ff_aac_search_for_tns (aacenc_tns.c:208)
==16936==    by 0xDEDF4F: aac_encode_frame (aacenc.c:675)
==16936==    by 0xB445BB: avcodec_encode_audio2 (utils.c:1750)
==16936==    by 0x492E8A: reap_filters (ffmpeg.c:836)
==16936==    by 0x495689: transcode (ffmpeg.c:4030)
==16936==    by 0x4787CA: main (ffmpeg.c:4256)
==16936==  Address 0xb8b9710 is 0 bytes after a block of size 16,560 alloc'd
==16936==    at 0x4C290FE: memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==16936==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==16936==    by 0xFF3FD1: av_mallocz (mem.c:97)
==16936==    by 0x431610: ff_lpc_init (lpc.c:303)
==16936==    by 0x45DC45: aac_encode_init (aacenc.c:978)
==16936==    by 0xB49581: avcodec_open2 (utils.c:1472)
==16936==    by 0x48E47D: transcode_init (ffmpeg.c:2608)
==16936==    by 0x494BD5: transcode (ffmpeg.c:4044)
==16936==    by 0x4787CA: main (ffmpeg.c:4256)
==16936==
==16936== Invalid read of size 8
==16936==    at 0xD1C8D3: lpc_compute_autocorr_sse2 (lpc.c:124)
==16936==    by 0x99595D: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==16936==    by 0xF2EECB: ff_aac_search_for_tns (aacenc_tns.c:208)
==16936==    by 0xDEDF4F: aac_encode_frame (aacenc.c:675)
==16936==    by 0xB445BB: avcodec_encode_audio2 (utils.c:1750)
==16936==    by 0x492E8A: reap_filters (ffmpeg.c:836)
==16936==    by 0x495689: transcode (ffmpeg.c:4030)
==16936==    by 0x4787CA: main (ffmpeg.c:4256)
==16936==  Address 0xb8b9710 is 0 bytes after a block of size 16,560 alloc'd
==16936==    at 0x4C290FE: memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==16936==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==16936==    by 0xFF3FD1: av_mallocz (mem.c:97)
==16936==    by 0x431610: ff_lpc_init (lpc.c:303)
==16936==    by 0x45DC45: aac_encode_init (aacenc.c:978)
==16936==    by 0xB49581: avcodec_open2 (utils.c:1472)
==16936==    by 0x48E47D: transcode_init (ffmpeg.c:2608)
==16936==    by 0x494BD5: transcode (ffmpeg.c:4044)
==16936==    by 0x4787CA: main (ffmpeg.c:4256)
==16936==
==16936== Invalid read of size 8
==16936==    at 0xD1C8D9: lpc_compute_autocorr_sse2 (lpc.c:124)
==16936==    by 0x99595D: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==16936==    by 0xF2EECB: ff_aac_search_for_tns (aacenc_tns.c:208)
==16936==    by 0xDEDF4F: aac_encode_frame (aacenc.c:675)
==16936==    by 0xB445BB: avcodec_encode_audio2 (utils.c:1750)
==16936==    by 0x492E8A: reap_filters (ffmpeg.c:836)
==16936==    by 0x495689: transcode (ffmpeg.c:4030)
==16936==    by 0x4787CA: main (ffmpeg.c:4256)
==16936==  Address 0xb8b9710 is 0 bytes after a block of size 16,560 alloc'd
==16936==    at 0x4C290FE: memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==16936==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==16936==    by 0xFF3FD1: av_mallocz (mem.c:97)
==16936==    by 0x431610: ff_lpc_init (lpc.c:303)
==16936==    by 0x45DC45: aac_encode_init (aacenc.c:978)
==16936==    by 0xB49581: avcodec_open2 (utils.c:1472)
==16936==    by 0x48E47D: transcode_init (ffmpeg.c:2608)
==16936==    by 0x494BD5: transcode (ffmpeg.c:4044)
==16936==    by 0x4787CA: main (ffmpeg.c:4256)
==16936==
==16936== Invalid read of size 8
==16936==    at 0xD1C8E4: lpc_compute_autocorr_sse2 (lpc.c:124)
==16936==    by 0x99595D: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==16936==    by 0xF2EECB: ff_aac_search_for_tns (aacenc_tns.c:208)
==16936==    by 0xDEDF4F: aac_encode_frame (aacenc.c:675)
==16936==    by 0xB445BB: avcodec_encode_audio2 (utils.c:1750)
==16936==    by 0x492E8A: reap_filters (ffmpeg.c:836)
==16936==    by 0x495689: transcode (ffmpeg.c:4030)
==16936==    by 0x4787CA: main (ffmpeg.c:4256)
==16936==  Address 0xb8b9710 is 0 bytes after a block of size 16,560 alloc'd
==16936==    at 0x4C290FE: memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==16936==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==16936==    by 0xFF3FD1: av_mallocz (mem.c:97)
==16936==    by 0x431610: ff_lpc_init (lpc.c:303)
==16936==    by 0x45DC45: aac_encode_init (aacenc.c:978)
==16936==    by 0xB49581: avcodec_open2 (utils.c:1472)
==16936==    by 0x48E47D: transcode_init (ffmpeg.c:2608)
==16936==    by 0x494BD5: transcode (ffmpeg.c:4044)
==16936==    by 0x4787CA: main (ffmpeg.c:4256)
==16936==
==16936== Invalid read of size 8
==16936==    at 0xD1C8F6: lpc_compute_autocorr_sse2 (lpc.c:124)
==16936==    by 0x99595D: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==16936==    by 0xF2EECB: ff_aac_search_for_tns (aacenc_tns.c:208)
==16936==    by 0xDEDF4F: aac_encode_frame (aacenc.c:675)
==16936==    by 0xB445BB: avcodec_encode_audio2 (utils.c:1750)
==16936==    by 0x492E8A: reap_filters (ffmpeg.c:836)
==16936==    by 0x495689: transcode (ffmpeg.c:4030)
==16936==    by 0x4787CA: main (ffmpeg.c:4256)
==16936==  Address 0xb8b9720 is not stack'd, malloc'd or (recently) free'd
==16936==
==16936== Invalid read of size 8
==16936==    at 0xD1C943: lpc_compute_autocorr_sse2 (lpc.c:93)
==16936==    by 0x99595D: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==16936==    by 0xF2EECB: ff_aac_search_for_tns (aacenc_tns.c:208)
==16936==    by 0xDEDF4F: aac_encode_frame (aacenc.c:675)
==16936==    by 0xB445BB: avcodec_encode_audio2 (utils.c:1750)
==16936==    by 0x492E8A: reap_filters (ffmpeg.c:836)
==16936==    by 0x495689: transcode (ffmpeg.c:4030)
==16936==    by 0x4787CA: main (ffmpeg.c:4256)
==16936==  Address 0xb8b9710 is 0 bytes after a block of size 16,560 alloc'd
==16936==    at 0x4C290FE: memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==16936==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==16936==    by 0xFF3FD1: av_mallocz (mem.c:97)
==16936==    by 0x431610: ff_lpc_init (lpc.c:303)
==16936==    by 0x45DC45: aac_encode_init (aacenc.c:978)
==16936==    by 0xB49581: avcodec_open2 (utils.c:1472)
==16936==    by 0x48E47D: transcode_init (ffmpeg.c:2608)
==16936==    by 0x494BD5: transcode (ffmpeg.c:4044)
==16936==    by 0x4787CA: main (ffmpeg.c:4256)
==16936==
==16936== Invalid read of size 8
==16936==    at 0xD1C972: lpc_compute_autocorr_sse2 (lpc.c:93)
==16936==    by 0x99595D: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==16936==    by 0xF2EECB: ff_aac_search_for_tns (aacenc_tns.c:208)
==16936==    by 0xDEDF4F: aac_encode_frame (aacenc.c:675)
==16936==    by 0xB445BB: avcodec_encode_audio2 (utils.c:1750)
==16936==    by 0x492E8A: reap_filters (ffmpeg.c:836)
==16936==    by 0x495689: transcode (ffmpeg.c:4030)
==16936==    by 0x4787CA: main (ffmpeg.c:4256)
==16936==  Address 0xb8b9720 is not stack'd, malloc'd or (recently) free'd
==16936==
==16936== Invalid read of size 8
==16936==    at 0xD1C949: lpc_compute_autocorr_sse2 (lpc.c:93)
==16936==    by 0x99595D: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==16936==    by 0xF2EECB: ff_aac_search_for_tns (aacenc_tns.c:208)
==16936==    by 0xDEDF4F: aac_encode_frame (aacenc.c:675)
==16936==    by 0xB445BB: avcodec_encode_audio2 (utils.c:1750)
==16936==    by 0x492E8A: reap_filters (ffmpeg.c:836)
==16936==    by 0x495689: transcode (ffmpeg.c:4030)
==16936==    by 0x4787CA: main (ffmpeg.c:4256)
==16936==  Address 0xb8b9710 is 0 bytes after a block of size 16,560 alloc'd
==16936==    at 0x4C290FE: memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==16936==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==16936==    by 0xFF3FD1: av_mallocz (mem.c:97)
==16936==    by 0x431610: ff_lpc_init (lpc.c:303)
==16936==    by 0x45DC45: aac_encode_init (aacenc.c:978)
==16936==    by 0xB49581: avcodec_open2 (utils.c:1472)
==16936==    by 0x48E47D: transcode_init (ffmpeg.c:2608)
==16936==    by 0x494BD5: transcode (ffmpeg.c:4044)
==16936==    by 0x4787CA: main (ffmpeg.c:4256)
==16936==
==16936== Invalid read of size 8
==16936==    at 0xD1C94F: lpc_compute_autocorr_sse2 (lpc.c:93)
==16936==    by 0x99595D: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==16936==    by 0xF2EECB: ff_aac_search_for_tns (aacenc_tns.c:208)
==16936==    by 0xDEDF4F: aac_encode_frame (aacenc.c:675)
==16936==    by 0xB445BB: avcodec_encode_audio2 (utils.c:1750)
==16936==    by 0x492E8A: reap_filters (ffmpeg.c:836)
==16936==    by 0x495689: transcode (ffmpeg.c:4030)
==16936==    by 0x4787CA: main (ffmpeg.c:4256)
==16936==  Address 0xb8b9710 is 0 bytes after a block of size 16,560 alloc'd
==16936==    at 0x4C290FE: memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==16936==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==16936==    by 0xFF3FD1: av_mallocz (mem.c:97)
==16936==    by 0x431610: ff_lpc_init (lpc.c:303)
==16936==    by 0x45DC45: aac_encode_init (aacenc.c:978)
==16936==    by 0xB49581: avcodec_open2 (utils.c:1472)
==16936==    by 0x48E47D: transcode_init (ffmpeg.c:2608)
==16936==    by 0x494BD5: transcode (ffmpeg.c:4044)
==16936==    by 0x4787CA: main (ffmpeg.c:4256)
==16936==
==16936== Invalid read of size 8
==16936==    at 0xD1C95C: lpc_compute_autocorr_sse2 (lpc.c:93)
==16936==    by 0x99595D: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==16936==    by 0xF2EECB: ff_aac_search_for_tns (aacenc_tns.c:208)
==16936==    by 0xDEDF4F: aac_encode_frame (aacenc.c:675)
==16936==    by 0xB445BB: avcodec_encode_audio2 (utils.c:1750)
==16936==    by 0x492E8A: reap_filters (ffmpeg.c:836)
==16936==    by 0x495689: transcode (ffmpeg.c:4030)
==16936==    by 0x4787CA: main (ffmpeg.c:4256)
==16936==  Address 0xb8b9710 is 0 bytes after a block of size 16,560 alloc'd
==16936==    at 0x4C290FE: memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==16936==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==16936==    by 0xFF3FD1: av_mallocz (mem.c:97)
==16936==    by 0x431610: ff_lpc_init (lpc.c:303)
==16936==    by 0x45DC45: aac_encode_init (aacenc.c:978)
==16936==    by 0xB49581: avcodec_open2 (utils.c:1472)
==16936==    by 0x48E47D: transcode_init (ffmpeg.c:2608)
==16936==    by 0x494BD5: transcode (ffmpeg.c:4044)
==16936==    by 0x4787CA: main (ffmpeg.c:4256)
==16936==
==16936==
==16936== Process terminating with default action of signal 8 (SIGFPE)
==16936==  Integer divide by zero at address 0x405C747CC
==16936==    at 0x61A399: compute_pkt_fields2 (mux.c:96)
==16936==    by 0x61BFC6: av_interleaved_write_frame (mux.c:947)
==16936==    by 0x48FE29: write_frame (ffmpeg.c:774)
==16936==    by 0x492EF0: reap_filters (ffmpeg.c:852)
==16936==    by 0x495689: transcode (ffmpeg.c:4030)
==16936==    by 0x4787CA: main (ffmpeg.c:4256)
==16936==
==16936== HEAP SUMMARY:
==16936==     in use at exit: 2,100,561 bytes in 325 blocks
==16936==   total heap usage: 5,779 allocs, 5,454 frees, 7,068,687 bytes allocated
==16936==
==16936== LEAK SUMMARY:
==16936==    definitely lost: 330,520 bytes in 63 blocks
==16936==    indirectly lost: 232,105 bytes in 43 blocks
==16936==      possibly lost: 17,485 bytes in 19 blocks
==16936==    still reachable: 1,520,451 bytes in 200 blocks
==16936==         suppressed: 0 bytes in 0 blocks
==16936== Rerun with --leak-check=full to see details of leaked memory
==16936==
==16936== For counts of detected and suppressed errors, rerun with: -v
==16936== ERROR SUMMARY: 246606 errors from 10 contexts (suppressed: 2 from 2)
Killed
$ valgrind ffmpeg_g -cpuflags 0 -i feathers.flac -strict -2 -profile:a aac_ltp -acodec aac -f null -
==17014== Memcheck, a memory error detector
==17014== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==17014== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==17014== Command: ffmpeg_g -cpuflags 0 -i feathers.flac -strict -2 -profile:a aac_ltp -acodec aac -f null -
==17014==
ffmpeg version N-76122-g62144b2 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      55.  4.100 / 55.  4.100
  libavcodec     57.  7.100 / 57.  7.100
  libavformat    57.  8.102 / 57.  8.102
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 11.100 /  6. 11.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.100 /  2.  0.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, flac, from 'feathers.flac':
  Metadata:
    ENCODER         : Lavf57.8.100
  Duration: 00:02:55.37, start: 19.957551, bitrate: 69 kb/s
    Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf57.8.102
    Stream #0:0: Audio: aac, 44100 Hz, stereo, fltp (16 bit), 128 kb/s
    Metadata:
      encoder         : Lavc57.7.100 aac
Stream mapping:
  Stream #0:0 -> #0:0 (flac (native) -> aac (native))
Press [q] to stop, [?] for help
==17014== Invalid write of size 8=N/A
==17014==    at 0x995934: ff_lpc_calc_ref_coefs_f (lpc.c:181)
==17014==    by 0xF2EECB: ff_aac_search_for_tns (aacenc_tns.c:208)
==17014==    by 0xDEDF4F: aac_encode_frame (aacenc.c:675)
==17014==    by 0xB445BB: avcodec_encode_audio2 (utils.c:1750)
==17014==    by 0x492E8A: reap_filters (ffmpeg.c:836)
==17014==    by 0x495689: transcode (ffmpeg.c:4030)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==  Address 0xb8b98b0 is 0 bytes after a block of size 16,560 alloc'd
==17014==    at 0x4C290FE: memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==17014==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==17014==    by 0xFF3FD1: av_mallocz (mem.c:97)
==17014==    by 0x431610: ff_lpc_init (lpc.c:303)
==17014==    by 0x45DC45: aac_encode_init (aacenc.c:978)
==17014==    by 0xB49581: avcodec_open2 (utils.c:1472)
==17014==    by 0x48E47D: transcode_init (ffmpeg.c:2608)
==17014==    by 0x494BD5: transcode (ffmpeg.c:4044)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==
==17014== Invalid read of size 8
==17014==    at 0x995418: lpc_compute_autocorr_c (lpc.c:75)
==17014==    by 0x99595D: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==17014==    by 0xF2EECB: ff_aac_search_for_tns (aacenc_tns.c:208)
==17014==    by 0xDEDF4F: aac_encode_frame (aacenc.c:675)
==17014==    by 0xB445BB: avcodec_encode_audio2 (utils.c:1750)
==17014==    by 0x492E8A: reap_filters (ffmpeg.c:836)
==17014==    by 0x495689: transcode (ffmpeg.c:4030)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==  Address 0xb8b98b0 is 0 bytes after a block of size 16,560 alloc'd
==17014==    at 0x4C290FE: memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==17014==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==17014==    by 0xFF3FD1: av_mallocz (mem.c:97)
==17014==    by 0x431610: ff_lpc_init (lpc.c:303)
==17014==    by 0x45DC45: aac_encode_init (aacenc.c:978)
==17014==    by 0xB49581: avcodec_open2 (utils.c:1472)
==17014==    by 0x48E47D: transcode_init (ffmpeg.c:2608)
==17014==    by 0x494BD5: transcode (ffmpeg.c:4044)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==
==17014== Invalid read of size 8
==17014==    at 0x995422: lpc_compute_autocorr_c (lpc.c:75)
==17014==    by 0x99595D: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==17014==    by 0xF2EECB: ff_aac_search_for_tns (aacenc_tns.c:208)
==17014==    by 0xDEDF4F: aac_encode_frame (aacenc.c:675)
==17014==    by 0xB445BB: avcodec_encode_audio2 (utils.c:1750)
==17014==    by 0x492E8A: reap_filters (ffmpeg.c:836)
==17014==    by 0x495689: transcode (ffmpeg.c:4030)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==  Address 0xb8b98b0 is 0 bytes after a block of size 16,560 alloc'd
==17014==    at 0x4C290FE: memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==17014==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==17014==    by 0xFF3FD1: av_mallocz (mem.c:97)
==17014==    by 0x431610: ff_lpc_init (lpc.c:303)
==17014==    by 0x45DC45: aac_encode_init (aacenc.c:978)
==17014==    by 0xB49581: avcodec_open2 (utils.c:1472)
==17014==    by 0x48E47D: transcode_init (ffmpeg.c:2608)
==17014==    by 0x494BD5: transcode (ffmpeg.c:4044)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==
==17014== Invalid read of size 8
==17014==    at 0x995432: lpc_compute_autocorr_c (lpc.c:75)
==17014==    by 0x99595D: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==17014==    by 0xF2EECB: ff_aac_search_for_tns (aacenc_tns.c:208)
==17014==    by 0xDEDF4F: aac_encode_frame (aacenc.c:675)
==17014==    by 0xB445BB: avcodec_encode_audio2 (utils.c:1750)
==17014==    by 0x492E8A: reap_filters (ffmpeg.c:836)
==17014==    by 0x495689: transcode (ffmpeg.c:4030)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==  Address 0xb8b98b8 is 8 bytes after a block of size 16,560 alloc'd
==17014==    at 0x4C290FE: memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==17014==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==17014==    by 0xFF3FD1: av_mallocz (mem.c:97)
==17014==    by 0x431610: ff_lpc_init (lpc.c:303)
==17014==    by 0x45DC45: aac_encode_init (aacenc.c:978)
==17014==    by 0xB49581: avcodec_open2 (utils.c:1472)
==17014==    by 0x48E47D: transcode_init (ffmpeg.c:2608)
==17014==    by 0x494BD5: transcode (ffmpeg.c:4044)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==
==17014== Invalid read of size 8
==17014==    at 0x995441: lpc_compute_autocorr_c (lpc.c:75)
==17014==    by 0x99595D: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==17014==    by 0xF2EECB: ff_aac_search_for_tns (aacenc_tns.c:208)
==17014==    by 0xDEDF4F: aac_encode_frame (aacenc.c:675)
==17014==    by 0xB445BB: avcodec_encode_audio2 (utils.c:1750)
==17014==    by 0x492E8A: reap_filters (ffmpeg.c:836)
==17014==    by 0x495689: transcode (ffmpeg.c:4030)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==  Address 0xb8b98b8 is 8 bytes after a block of size 16,560 alloc'd
==17014==    at 0x4C290FE: memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==17014==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==17014==    by 0xFF3FD1: av_mallocz (mem.c:97)
==17014==    by 0x431610: ff_lpc_init (lpc.c:303)
==17014==    by 0x45DC45: aac_encode_init (aacenc.c:978)
==17014==    by 0xB49581: avcodec_open2 (utils.c:1472)
==17014==    by 0x48E47D: transcode_init (ffmpeg.c:2608)
==17014==    by 0x494BD5: transcode (ffmpeg.c:4044)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==
==17014== Invalid read of size 8
==17014==    at 0x995484: lpc_compute_autocorr_c (lpc.c:75)
==17014==    by 0x99595D: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==17014==    by 0xF2EECB: ff_aac_search_for_tns (aacenc_tns.c:208)
==17014==    by 0xDEDF4F: aac_encode_frame (aacenc.c:675)
==17014==    by 0xB445BB: avcodec_encode_audio2 (utils.c:1750)
==17014==    by 0x492E8A: reap_filters (ffmpeg.c:836)
==17014==    by 0x495689: transcode (ffmpeg.c:4030)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==  Address 0xb929890 is 5,568 bytes inside a block of size 10,105 free'd
==17014==    at 0x4C29D4E: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==17014==    by 0xFE5ACE: av_buffer_unref (buffer.c:119)
==17014==    by 0x6D6267: av_packet_unref (avpacket.c:502)
==17014==    by 0xA589E6: ff_thread_decode_frame (pthread_frame.c:347)
==17014==    by 0xB4557A: avcodec_decode_audio4 (utils.c:2194)
==17014==    by 0x4935A3: decode_audio (ffmpeg.c:1942)
==17014==    by 0x497233: transcode (ffmpeg.c:2326)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==
==17014== Invalid read of size 8
==17014==    at 0x99548B: lpc_compute_autocorr_c (lpc.c:75)
==17014==    by 0x99595D: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==17014==    by 0xF2EECB: ff_aac_search_for_tns (aacenc_tns.c:208)
==17014==    by 0xDEDF4F: aac_encode_frame (aacenc.c:675)
==17014==    by 0xB445BB: avcodec_encode_audio2 (utils.c:1750)
==17014==    by 0x492E8A: reap_filters (ffmpeg.c:836)
==17014==    by 0x495689: transcode (ffmpeg.c:4030)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==  Address 0xb929890 is 5,568 bytes inside a block of size 10,105 free'd
==17014==    at 0x4C29D4E: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==17014==    by 0xFE5ACE: av_buffer_unref (buffer.c:119)
==17014==    by 0x6D6267: av_packet_unref (avpacket.c:502)
==17014==    by 0xA589E6: ff_thread_decode_frame (pthread_frame.c:347)
==17014==    by 0xB4557A: avcodec_decode_audio4 (utils.c:2194)
==17014==    by 0x4935A3: decode_audio (ffmpeg.c:1942)
==17014==    by 0x497233: transcode (ffmpeg.c:2326)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==
==17014== Invalid read of size 8
==17014==    at 0x995494: lpc_compute_autocorr_c (lpc.c:76)
==17014==    by 0x99595D: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==17014==    by 0xF2EECB: ff_aac_search_for_tns (aacenc_tns.c:208)
==17014==    by 0xDEDF4F: aac_encode_frame (aacenc.c:675)
==17014==    by 0xB445BB: avcodec_encode_audio2 (utils.c:1750)
==17014==    by 0x492E8A: reap_filters (ffmpeg.c:836)
==17014==    by 0x495689: transcode (ffmpeg.c:4030)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==  Address 0xb929888 is 5,560 bytes inside a block of size 10,105 free'd
==17014==    at 0x4C29D4E: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==17014==    by 0xFE5ACE: av_buffer_unref (buffer.c:119)
==17014==    by 0x6D6267: av_packet_unref (avpacket.c:502)
==17014==    by 0xA589E6: ff_thread_decode_frame (pthread_frame.c:347)
==17014==    by 0xB4557A: avcodec_decode_audio4 (utils.c:2194)
==17014==    by 0x4935A3: decode_audio (ffmpeg.c:1942)
==17014==    by 0x497233: transcode (ffmpeg.c:2326)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==
==17014== Invalid read of size 8
==17014==    at 0x99552D: lpc_compute_autocorr_c (lpc.c:86)
==17014==    by 0x99595D: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==17014==    by 0xF2EECB: ff_aac_search_for_tns (aacenc_tns.c:208)
==17014==    by 0xDEDF4F: aac_encode_frame (aacenc.c:675)
==17014==    by 0xB445BB: avcodec_encode_audio2 (utils.c:1750)
==17014==    by 0x492E8A: reap_filters (ffmpeg.c:836)
==17014==    by 0x495689: transcode (ffmpeg.c:4030)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==  Address 0xb8b98b0 is 0 bytes after a block of size 16,560 alloc'd
==17014==    at 0x4C290FE: memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==17014==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==17014==    by 0xFF3FD1: av_mallocz (mem.c:97)
==17014==    by 0x431610: ff_lpc_init (lpc.c:303)
==17014==    by 0x45DC45: aac_encode_init (aacenc.c:978)
==17014==    by 0xB49581: avcodec_open2 (utils.c:1472)
==17014==    by 0x48E47D: transcode_init (ffmpeg.c:2608)
==17014==    by 0x494BD5: transcode (ffmpeg.c:4044)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==
==17014== Invalid read of size 8
==17014==    at 0x99554D: lpc_compute_autocorr_c (lpc.c:84)
==17014==    by 0x99595D: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==17014==    by 0xF2EECB: ff_aac_search_for_tns (aacenc_tns.c:208)
==17014==    by 0xDEDF4F: aac_encode_frame (aacenc.c:675)
==17014==    by 0xB445BB: avcodec_encode_audio2 (utils.c:1750)
==17014==    by 0x492E8A: reap_filters (ffmpeg.c:836)
==17014==    by 0x495689: transcode (ffmpeg.c:4030)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==  Address 0xb8b98b8 is 8 bytes after a block of size 16,560 alloc'd
==17014==    at 0x4C290FE: memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==17014==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==17014==    by 0xFF3FD1: av_mallocz (mem.c:97)
==17014==    by 0x431610: ff_lpc_init (lpc.c:303)
==17014==    by 0x45DC45: aac_encode_init (aacenc.c:978)
==17014==    by 0xB49581: avcodec_open2 (utils.c:1472)
==17014==    by 0x48E47D: transcode_init (ffmpeg.c:2608)
==17014==    by 0x494BD5: transcode (ffmpeg.c:4044)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==
==17014== Invalid read of size 8
==17014==    at 0x995528: lpc_compute_autocorr_c (lpc.c:85)
==17014==    by 0x99595D: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==17014==    by 0xF2EECB: ff_aac_search_for_tns (aacenc_tns.c:208)
==17014==    by 0xDEDF4F: aac_encode_frame (aacenc.c:675)
==17014==    by 0xB445BB: avcodec_encode_audio2 (utils.c:1750)
==17014==    by 0x492E8A: reap_filters (ffmpeg.c:836)
==17014==    by 0x495689: transcode (ffmpeg.c:4030)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==  Address 0xb8b98c8 is not stack'd, malloc'd or (recently) free'd
==17014==
==17014== Invalid read of size 8
==17014==    at 0x99553A: lpc_compute_autocorr_c (lpc.c:86)
==17014==    by 0x99595D: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==17014==    by 0xF2EECB: ff_aac_search_for_tns (aacenc_tns.c:208)
==17014==    by 0xDEDF4F: aac_encode_frame (aacenc.c:675)
==17014==    by 0xB445BB: avcodec_encode_audio2 (utils.c:1750)
==17014==    by 0x492E8A: reap_filters (ffmpeg.c:836)
==17014==    by 0x495689: transcode (ffmpeg.c:4030)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==  Address 0xb8b98b0 is 0 bytes after a block of size 16,560 alloc'd
==17014==    at 0x4C290FE: memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==17014==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==17014==    by 0xFF3FD1: av_mallocz (mem.c:97)
==17014==    by 0x431610: ff_lpc_init (lpc.c:303)
==17014==    by 0x45DC45: aac_encode_init (aacenc.c:978)
==17014==    by 0xB49581: avcodec_open2 (utils.c:1472)
==17014==    by 0x48E47D: transcode_init (ffmpeg.c:2608)
==17014==    by 0x494BD5: transcode (ffmpeg.c:4044)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==
==17014== Invalid read of size 8
==17014==    at 0x995535: lpc_compute_autocorr_c (lpc.c:85)
==17014==    by 0x99595D: ff_lpc_calc_ref_coefs_f (lpc.c:184)
==17014==    by 0xF2EECB: ff_aac_search_for_tns (aacenc_tns.c:208)
==17014==    by 0xDEDF4F: aac_encode_frame (aacenc.c:675)
==17014==    by 0xB445BB: avcodec_encode_audio2 (utils.c:1750)
==17014==    by 0x492E8A: reap_filters (ffmpeg.c:836)
==17014==    by 0x495689: transcode (ffmpeg.c:4030)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==  Address 0xb8b98b8 is 8 bytes after a block of size 16,560 alloc'd
==17014==    at 0x4C290FE: memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==17014==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==17014==    by 0xFF3FD1: av_mallocz (mem.c:97)
==17014==    by 0x431610: ff_lpc_init (lpc.c:303)
==17014==    by 0x45DC45: aac_encode_init (aacenc.c:978)
==17014==    by 0xB49581: avcodec_open2 (utils.c:1472)
==17014==    by 0x48E47D: transcode_init (ffmpeg.c:2608)
==17014==    by 0x494BD5: transcode (ffmpeg.c:4044)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==
==17014==
==17014== Process terminating with default action of signal 8 (SIGFPE)
==17014==  Integer divide by zero at address 0x405C8C00C
==17014==    at 0x61A399: compute_pkt_fields2 (mux.c:96)
==17014==    by 0x61BFC6: av_interleaved_write_frame (mux.c:947)
==17014==    by 0x48FE29: write_frame (ffmpeg.c:774)
==17014==    by 0x492EF0: reap_filters (ffmpeg.c:852)
==17014==    by 0x495689: transcode (ffmpeg.c:4030)
==17014==    by 0x4787CA: main (ffmpeg.c:4256)
==17014==
==17014== HEAP SUMMARY:
==17014==     in use at exit: 2,100,561 bytes in 325 blocks
==17014==   total heap usage: 5,783 allocs, 5,458 frees, 7,068,849 bytes allocated
==17014==
==17014== LEAK SUMMARY:
==17014==    definitely lost: 330,520 bytes in 63 blocks
==17014==    indirectly lost: 232,105 bytes in 43 blocks
==17014==      possibly lost: 17,485 bytes in 19 blocks
==17014==    still reachable: 1,520,451 bytes in 200 blocks
==17014==         suppressed: 0 bytes in 0 blocks
==17014== Rerun with --leak-check=full to see details of leaked memory
==17014==
==17014== For counts of detected and suppressed errors, rerun with: -v
==17014== ERROR SUMMARY: 177311 errors from 13 contexts (suppressed: 2 from 2)
Killed

comment:5 in reply to: ↑ 3 Changed 4 years ago by ubitux

Replying to atomnuker:

I still cannot reproduce the crash.
I just pushed some optimization and calculation fixes, could you check if you still have the crash? Did it reappear?

It seems I still have the crash at times. -aac_tns 0 seems to prevent triggering it. -threads 1 as output option still triggers the crash.

comment:6 Changed 3 years ago by atomnuker

  • Resolution set to fixed
  • Status changed from open to closed

Unable to replicate with the newest encoder version, seems like the new TNS tweaks prevent this from occurring.

comment:7 Changed 3 years ago by cehoyos

Not reproducible with any release, including 3.0.

Note: See TracTickets for help on using tickets.