Opened 13 years ago
Closed 13 years ago
#2732 closed defect (fixed)
acc enc crash with low mem
| Reported by: | ami_stuff | Owned by: | |
|---|---|---|---|
| Priority: | important | Component: | avcodec |
| Version: | git-master | Keywords: | crash SIGSEGV aac |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | yes | |
| Analyzed by developer: | no |
Description
http://ffmpeg.org/trac/ffmpeg/raw-attachment/ticket/2722/divx.avi
found while testing #2730
C:\>ffmpeg -max_alloc 70000 -i divx.avi -vn -acodec aac -strict -2 -f null -
ffmpeg version N-54178-gbbe26ef Copyright (c) 2000-2013 the FFmpeg developers
built on Jun 24 2013 17:10:38 with gcc 4.7.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-
amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --
enable-libxvid --enable-zlib
libavutil 52. 37.101 / 52. 37.101
libavcodec 55. 17.100 / 55. 17.100
libavformat 55. 9.100 / 55. 9.100
libavdevice 55. 2.100 / 55. 2.100
libavfilter 3. 77.101 / 3. 77.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
[mpeg4 @ 029a8000] Invalid and inefficient vfw-avi packed B frames detected
Input #0, avi, from 'divx.avi':
Duration: 00:00:12.64, start: 0.000000, bitrate: 963 kb/s
Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 320x240 [SAR 1:1 DAR
4:3], 23.97 tbr, 23.97 tbn, 30k tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16p, 128 k
b/s
[aac @ 02aa5560] Cannot allocate memory.
Change History (4)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
| Component: | undetermined → avcodec |
|---|---|
| Keywords: | crash SIGSEGV aac added |
| Priority: | normal → important |
| Reproduced by developer: | set |
| Status: | new → open |
| Version: | unspecified → git-master |
comment:4 by , 13 years ago
| Resolution: | → fixed |
|---|---|
| Status: | open → closed |
Note:
See TracTickets
for help on using tickets.



(gdb) r -max_alloc 70000 -i divx.avi -vn -acodec aac -strict -2 -f null - Starting program: D:\MinGW\msys\1.0\ffmpeg-HEAD-7f866c1\ffmpeg_g.exe -max_alloc 70000 -i divx.avi -vn -acodec aac -strict -2 -f null - [New Thread 2368.0xb50] ffmpeg version 1.1.git-7f866c1 Copyright (c) 2000-2013 the FFmpeg developers built on Jun 29 2013 22:13:29 with gcc 4.6.2 (GCC) configuration: --disable-ffprobe --disable-yasm --disable-w32threads --enable- gpl libavutil 52. 37.101 / 52. 37.101 libavcodec 55. 17.100 / 55. 17.100 libavformat 55. 10.100 / 55. 10.100 libavdevice 55. 2.100 / 55. 2.100 libavfilter 3. 77.101 / 3. 77.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [mpeg4 @ 04ca6dc0] Invalid and inefficient vfw-avi packed B frames detected Input #0, avi, from 'divx.avi': Duration: 00:00:12.64, start: 0.000000, bitrate: 963 kb/s Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 23.97 tbr, 23.97 tbn, 30k tbc Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16p, 128 k b/s [New Thread 2368.0x658] [New Thread 2368.0xbac] [New Thread 2368.0xedc] [New Thread 2368.0xd7c] [New Thread 2368.0xc00] [New Thread 2368.0xf58] [New Thread 2368.0x9a8] [New Thread 2368.0xd8c] [New Thread 2368.0xe30] [aac @ 04c9e3a0] Cannot allocate memory. Program received signal SIGSEGV, Segmentation fault. 0x00b33cd4 in ff_psy_end (ctx=0x4ca9390) at libavcodec/psymodel.c:78 78 if (ctx->model->end) (gdb) bt #0 0x00b33cd4 in ff_psy_end (ctx=0x4ca9390) at libavcodec/psymodel.c:78 #1 0x00b15fdb in aac_encode_end (avctx=0x4c9e3a0) at libavcodec/aacenc.c:676 #2 0x00b1640b in aac_encode_init (avctx=0x4c9e3a0) at libavcodec/aacenc.c:784 #3 0x0059a44e in avcodec_open2 (avctx=0x4c9e3a0, codec=<optimized out>, options=0x4c9e8c0) at libavcodec/utils.c:1309 #4 0x004113b2 in transcode_init () at ffmpeg.c:2439 #5 0x00aeea82 in transcode () at ffmpeg.c:3183 #6 main (argc=13, argv=<optimized out>) at ffmpeg.c:3390 (gdb)