FFmpeg-trac
Threads by month
- ----- 2026 -----
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
September 2013
- 1 participants
- 294 discussions
#2905(undetermined:new): Regression in dd9555e94b1481a6992ee89b285232e5abcf9089
by FFmpeg 02 Sep '13
by FFmpeg 02 Sep '13
02 Sep '13
#2905: Regression in dd9555e94b1481a6992ee89b285232e5abcf9089
-------------------------------------+-------------------------------------
Reporter: Krieger | Type: defect
Status: new | Priority: normal
Component: | Version: git-
undetermined | master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
How to reproduce:
{{{
% ffmpeg version N-55350-gdd9555e Copyright (c) 2000-2013 the FFmpeg
developers
built on Aug 26 2013 22:06:56 with gcc 4.6.3 (Gentoo 4.6.3 p1.13,
pie-0.5.2)
configuration: --enable-gpl --enable-libx264 --enable-encoder=libx264
--disable-stripping --enable-debug --extra-cflags='-O0 -g -ggdb'
libavutil 52. 41.100 / 52. 41.100
libavcodec 55. 23.100 / 55. 23.100
libavformat 55. 13.102 / 55. 13.102
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 82.100 / 3. 82.100
libswscale 2. 4.100 / 2. 4.100
libswresample 0. 17.103 / 0. 17.103
libpostproc 52. 3.100 / 52. 3.100
Input #0, mpegts, from
'/home/krieger/work/own_projects/demo_skipfail_noreverse.ts':
Duration: 01:27:25.64, start: 1.400000, bitrate: 1105 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High 4:4:4 Predictive) ([27][0][0][0]
/ 0x001B), yuv444p, 1280x1024, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
No pixel format specified, yuv444p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x1e90f80] using cpu capabilities: none!
[libx264 @ 0x1e90f80] profile High 4:4:4 Predictive, level 3.2, 4:4:4
8-bit
Output #0, mpegts, to 'demo_skipfail_noreverse_edited_p1.ts':
Metadata:
encoder : Lavf55.13.102
Stream #0:0: Video: h264 (libx264), yuv444p, 1280x1024, q=-1--1, 2000
kb/s, 90k tbn, 30 tbc
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Press [q] to stop, [?] for help
*** glibc detected *** /usr/local/src/ffmpeg/ffmpeg: double free or
corruption (out): 0x00000000043b91f0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7afe6)[0x7f98e065afe6]
/usr/local/src/ffmpeg/ffmpeg[0xb7761c]
/usr/local/src/ffmpeg/ffmpeg[0xb713e4]
/usr/local/src/ffmpeg/ffmpeg[0xb71a36]
/usr/local/src/ffmpeg/ffmpeg[0x481fde]
/usr/local/src/ffmpeg/ffmpeg[0x4821b1]
/usr/local/src/ffmpeg/ffmpeg[0x481e4d]
/usr/local/src/ffmpeg/ffmpeg[0x483ff9]
/usr/local/src/ffmpeg/ffmpeg[0x4a2dc0]
/usr/local/src/ffmpeg/ffmpeg[0x481e4d]
/usr/local/src/ffmpeg/ffmpeg[0x483ff9]
/usr/local/src/ffmpeg/ffmpeg[0x487aa2]
/usr/local/src/ffmpeg/ffmpeg[0x487da6]
/usr/local/src/ffmpeg/ffmpeg[0x487ece]
/usr/local/src/ffmpeg/ffmpeg[0x46e89e]
/usr/local/src/ffmpeg/ffmpeg[0x45f484]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x7f98e06024bd]
/usr/local/src/ffmpeg/ffmpeg[0x45fd19]
======= Memory map: ========
00400000-00def000 r-xp 00000000 08:01 1183119
/usr/local/src/ffmpeg/ffmpeg
00fee000-00fef000 r--p 009ee000 08:01 1183119
/usr/local/src/ffmpeg/ffmpeg
00fef000-0101f000 rw-p 009ef000 08:01 1183119
/usr/local/src/ffmpeg/ffmpeg
0101f000-01613000 rw-p 00000000 00:00 0
01e75000-04464000 rw-p 00000000 00:00 0
[heap]
7f98ae9ea000-7f98ae9ff000 r-xp 00000000 08:01 4350386
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.6.3/libgcc_s.so.1
7f98ae9ff000-7f98aebfe000 ---p 00015000 08:01 4350386
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.6.3/libgcc_s.so.1
7f98aebfe000-7f98aebff000 r--p 00014000 08:01 4350386
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.6.3/libgcc_s.so.1
7f98aebff000-7f98aec00000 rw-p 00015000 08:01 4350386
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.6.3/libgcc_s.so.1
7f98aec00000-7f98b8000000 rw-p 00000000 00:00 0
7f98b8000000-7f98b85e4000 rw-p 00000000 00:00 0
7f98b85e4000-7f98bc000000 ---p 00000000 00:00 0
7f98bc000000-7f98bc5e4000 rw-p 00000000 00:00 0
7f98bc5e4000-7f98c0000000 ---p 00000000 00:00 0
7f98c0000000-7f98c05e4000 rw-p 00000000 00:00 0
7f98c05e4000-7f98c4000000 ---p 00000000 00:00 0
7f98c4000000-7f98c45e4000 rw-p 00000000 00:00 0
7f98c45e4000-7f98c8000000 ---p 00000000 00:00 0
7f98c8000000-7f98c8a6c000 rw-p 00000000 00:00 0
7f98c8a6c000-7f98cc000000 ---p 00000000 00:00 0
7f98cc10f000-7f98cd971000 rw-p 00000000 00:00 0
7f98cd971000-7f98cd972000 ---p 00000000 00:00 0
7f98cd972000-7f98ce172000 rw-p 00000000 00:00 0
[stack:17465]
7f98ce172000-7f98ce173000 ---p 00000000 00:00 0
7f98ce173000-7f98ce973000 rw-p 00000000 00:00 0
[stack:17464]
7f98ce973000-7f98ce974000 ---p 00000000 00:00 0
7f98ce974000-7f98cf174000 rw-p 00000000 00:00 0
[stack:17463]
7f98cf174000-7f98cf175000 ---p 00000000 00:00 0
7f98cf175000-7f98cf975000 rw-p 00000000 00:00 0
[stack:17462]
7f98cf975000-7f98cf976000 ---p 00000000 00:00 0
7f98cf976000-7f98d0176000 rw-p 00000000 00:00 0
[stack:17461]
7f98d0176000-7f98d0177000 ---p 00000000 00:00 0
7f98d0177000-7f98d9e25000 rw-p 00000000 00:00 0
[stack:17460]
7f98d9e25000-7f98d9e26000 ---p 00000000 00:00 0
7f98d9e26000-7f98da626000 rw-p 00000000 00:00 0
[stack:17459]
7f98da626000-7f98da627000 ---p 00000000 00:00 0
7f98da627000-7f98dae27000 rw-p 00000000 00:00 0
[stack:17458]
7f98dae27000-7f98dae28000 ---p 00000000 00:00 0
7f98dae28000-7f98db628000 rw-p 00000000 00:00 0
[stack:17457]
7f98db628000-7f98db629000 ---p 00000000 00:00 0
7f98db629000-7f98dbe29000 rw-p 00000000 00:00 0
[stack:17456]
7f98dbe29000-7f98dbe2a000 ---p 00000000 00:00 0
7f98dbe2a000-7f98dc62a000 rw-p 00000000 00:00 0
[stack:17455]
7f98dc62a000-7f98dc62b000 ---p 00000000 00:00 0
7f98dc62b000-7f98dd5ac000 rw-p 00000000 00:00 0
[stack:17454]
7f98dd5ac000-7f98dd5ad000 ---p 00000000 00:00 0
7f98dd5ad000-7f98dddad000 rw-p 00000000 00:00 0
[stack:17453]
7f98dddad000-7f98dddae000 ---p 00000000 00:00 0
7f98dddae000-7f98de5ae000 rw-p 00000000 00:00 0
[stack:17452]
7f98de5ae000-7f98de5af000 ---p 00000000 00:00 0
7f98de5af000-7f98dedaf000 rw-p 00000000 00:00 0
[stack:17451]
7f98dedaf000-7f98dedb0000 ---p 00000000 00:00 0
7f98dedb0000-7f98df5b0000 rw-p 00000000 00:00 0
[stack:17450]
7f98df5b0000-7f98df5b1000 ---p 00000000 00:00 0
7f98df5b1000-7f98dfdb1000 rw-p 00000000 00:00 0
[stack:17449]
7f98dfdb1000-7f98dfdb6000 r-xp 00000000 08:01 4205259
/usr/lib64/libXdmcp.so.6.0.0
7f98dfdb6000-7f98dffb5000 ---p 00005000 08:01 4205259
/usr/lib64/libXdmcp.so.6.0.0
7f98dffb5000-7f98dffb6000 r--p 00004000 08:01 4205259
/usr/lib64/libXdmcp.so.6.0.0
7f98dffb6000-7f98dffb7000 rw-p 00005000 08:01 4205259
/usr/lib64/libXdmcp.so.6.0.0
7f98dffb7000-7f98dffb9000 r-xp 00000000 08:01 4205216
/usr/lib64/libXau.so.6.0.0
7f98dffb9000-7f98e01b9000 ---p 00002000 08:01 4205216
/usr/lib64/libXau.so.6.0.0
7f98e01b9000-7f98e01ba000 r--p 00002000 08:01 4205216
/usr/lib64/libXau.so.6.0.0
7f98e01ba000-7f98e01bb000 rw-p 00003000 08:01 4205216
/usr/lib64/libXau.so.6.0.0
7f98e01bb000-7f98e01bd000 r-xp 00000000 08:01 5652191
/lib64/libdl-2.15.so
7f98e01bd000-7f98e03bd000 ---p 00002000 08:01 5652191
/lib64/libdl-2.15.so
7f98e03bd000-7f98e03be000 r--p 00002000 08:01 5652191
/lib64/libdl-2.15.so
7f98e03be000-7f98e03bf000 rw-p 00003000 08:01 5652191
/lib64/libdl-2.15.so
7f98e03bf000-7f98e03df000 r-xp 00000000 08:01 4212757
/usr/lib64/libxcb.so.1.1.0
7f98e03df000-7f98e05de000 ---p 00020000 08:01 4212757
/usr/lib64/libxcb.so.1.1.0
7f98e05de000-7f98e05df000 r--p 0001f000 08:01 4212757
/usr/lib64/libxcb.so.1.1.0
7f98e05df000-7f98e05e0000 rw-p 00020000 08:01 4212757
/usr/lib64/libxcb.so.1.1.0
7f98e05e0000-7f98e0781000 r-xp 00000000 08:01 5652197
/lib64/libc-2.15.so
7f98e0781000-7f98e0981000 ---p 001a1000 08:01 5652197
/lib64/libc-2.15.so
7f98e0981000-7f98e0985000 r--p 001a1000 08:01 5652197
/lib64/libc-2.15.so
7f98e0985000-7f98e0987000 rw-p 001a5000 08:01 5652197
/lib64/libc-2.15.so
7f98e0987000-7f98e098b000 rw-p 00000000 00:00 0
7f98e098b000-7f98e0993000 r-xp 00000000 08:01 5652201
/lib64/librt-2.15.so
7f98e0993000-7f98e0b92000 ---p 00008000 08:01 5652201
/lib64/librt-2.15.so
7f98e0b92000-7f98e0b93000 r--p 00007000 08:01 5652201
/lib64/librt-2.15.so
7f98e0b93000-7f98e0b94000 rw-p 00008000 08:01 5652201
/lib64/librt-2.15.so
7f98e0b94000-7f98e0ba8000 r-xp 00000000 08:01 4200269
/lib64/libz.so.1.2.7
7f98e0ba8000-7f98e0da8000 ---p 00014000 08:01 4200269
/lib64/libz.so.1.2.7
7f98e0da8000-7f98e0da9000 r--p 00014000 08:01 4200269
/lib64/libz.so.1.2.7
7f98e0da9000-7f98e0daa000 rw-p 00015000 08:01 4200269
/lib64/libz.so.1.2.7
7f98e0daa000-7f98e0db9000 r-xp 00000000 08:01 5636300
/lib64/libbz2.so.1.0.6
7f98e0db9000-7f98e0fb8000 ---p 0000f000 08:01 5636300
/lib64/libbz2.so.1.0.6
7f98e0fb8000-7f98e0fb9000 r--p 0000e000 08:01 5636300
/lib64/libbz2.so.1.0.6
7f98e0fb9000-7f98e0fba000 rw-p 0000f000 08:01 5636300
/lib64/libbz2.so.1.0.6
7f98e0fba000-7f98e10b0000 r-xp 00000000 08:01 5652193
/lib64/libm-2.15.so
7f98e10b0000-7f98e12af000 ---p 000f6000 08:01 5652193
/lib64/libm-2.15.so
7f98e12af000-7f98e12b0000 r--p 000f5000 08:01 5652193
/lib64/libm-2.15.so
7f98e12b0000-7f98e12b1000 rw-p 000f6000 08:01 5652193
/lib64/libm-2.15.so
7f98e12b1000-7f98e134f000 r-xp 00000000 08:01 1051330
/usr/lib64/libx264.so.125
7f98e134f000-7f98e154f000 ---p 0009e000 08:01 1051330
/usr/lib64/libx264.so.125
7f98e154f000-7f98e1550000 r--p 0009e000 08:01 1051330
/usr/lib64/libx264.so.125
7f98e1550000-7f98e1551000 rw-p 0009f000 08:01 1051330
/usr/lib64/libx264.so.125
7f98e1551000-7f98e15cc000 rw-p 00000000 00:00 0
7f98e15cc000-7f98e15e4000 r-xp 00000000 08:01 5652189
/lib64/libpthread-2.15.so
7f98e15e4000-7f98e17e3000 ---p 00018000 08:01 5652189
/lib64/libpthread-2.15.so
7f98e17e3000-7f98e17e4000 r--p 00017000 08:01 5652189
/lib64/libpthread-2.15.so
7f98e17e4000-7f98e17e5000 rw-p 00018000 08:01 5652189
/lib64/libpthread-2.15.so
7f98e17e5000-7f98e17e9000 rw-p 00000000 00:00 0
7f98e17e9000-7f98e183f000 r-xp 00000000 08:01 4227243
/usr/lib64/libSDL-1.2.so.0.11.4
7f98e183f000-7f98e1a3e000 ---p 00056000 08:01 4227243
/usr/lib64/libSDL-1.2.so.0.11.4
7f98e1a3e000-7f98e1a3f000 r--p 00055000 08:01 4227243
/usr/lib64/libSDL-1.2.so.0.11.4
7f98e1a3f000-7f98e1a40000 rw-p 00056000 08:01 4227243
/usr/lib64/libSDL-1.2.so.0.11.4
7f98e1a40000-7f98e1a49000 rw-p 00000000 00:00 0
7f98e1a49000-7f98e1b22000 r-xp 00000000 08:01 4616285
/usr/lib64/libasound.so.2.0.0
7f98e1b22000-7f98e1d21000 ---p 000d9000 08:01 4616285
/usr/lib64/libasound.so.2.0.0
7f98e1d21000-7f98e1d27000 r--p 000d8000 08:01 4616285
/usr/lib64/libasound.so.2.0.0
7f98e1d27000-7f98e1d29000 rw-p 000de000 08:01 4616285
/usr/lib64/libasound.so.2.0.0
7f98e1d29000-7f98e1d3a000 r-xp 00000000 08:01 4209082
/usr/lib64/libXext.so.6.4.0
7f98e1d3a000-7f98e1f39000 ---p 00011000 08:01 4209082
/usr/lib64/libXext.so.6.4.0
7f98e1f39000-7f98e1f3a000 r--p 00010000 08:01 4209082
/usr/lib64/libXext.so.6.4.0
7f98e1f3a000-7f98e1f3b000 rw-p 00011000 08:01 4209082
/usr/lib64/libXext.so.6.4.0
7f98e1f3b000-7f98e2074000 r-xp 00000000 08:01 4218152
/usr/lib64/libX11.so.6.3.0
7f98e2074000-7f98e2274000 ---p 00139000 08:01 4218152
/usr/lib64/libX11.so.6.3.0
7f98e2274000-7f98e2275000 r--p 00139000 08:01 4218152
/usr/lib64/libX11.so.6.3.0
7f98e2275000-7f98e227a000 rw-p 0013a000 08:01 4218152
/usr/lib64/libX11.so.6.3.0
7f98e227a000-7f98e227f000 r-xp 00000000 08:01 4212857
/usr/lib64/libXv.so.1.0.0
7f98e227f000-7f98e247e000 ---p 00005000 08:01 4212857
/usr/lib64/libXv.so.1.0.0
7f98e247e000-7f98e247f000 r--p 00004000 08:01 4212857
/usr/lib64/libXv.so.1.0.0
7f98e247f000-7f98e2480000 rw-p 00005000 08:01 4212857
/usr/lib64/libXv.so.1.0.0
7f98e2480000-7f98e24a2000 r-xp 00000000 08:01 5652212
/lib64/ld-2.15.so
7f98e2504000-7f98e2673000 rw-p 00000000 00:00 0
7f98e269f000-7f98e26a1000 rw-p 00000000 00:00 0
7f98e26a1000-7f98e26a2000 r--p 00021000 08:01 5652212
/lib64/ld-2.15.so
7f98e26a2000-7f98e26a3000 rw-p 00022000 08:01 5652212
/lib64/ld-2.15.so
7f98e26a3000-7f98e26a4000 rw-p 00000000 00:00 0
7fff26b24000-7fff26b45000 rw-p 00000000 00:00 0
[stack]
7fff26bff000-7fff26c00000 r-xp 00000000 00:00 0
[vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
[vsyscall]
}}}
Reverting commit dd9555e94b1481a6992ee89b285232e5abcf9089 fixes the issue.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2905>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
1
7
#2924: ffv1: deadlock with 8 threads
-------------------------------------+-------------------------------------
Reporter: ami_stuff | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: | undetermined
unspecified | Keywords:
Blocked By: | Blocking:
Reproduced by developer: 0 | Analyzed by developer: 0
-------------------------------------+-------------------------------------
http://www.datafilehost.com/d/b7222191
{{{
C:\>ffmpeg -threads 8 -i ffv1_dead.avi -f null -
ffmpeg version N-55934-g8349be8 Copyright (c) 2000-2013 the FFmpeg
developers
built on Sep 1 2013 02:24:38 with gcc 4.5.0 (GCC) 20100414 (Fedora
MinGW 4.5.
0-1.fc14)
configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build
--arch=
x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686
-pc-min
gw32-gcc' --enable-pthreads --enable-memalign-hack --enable-runtime-
cpudetect --
enable-cross-compile --enable-static --disable-shared --extra-
libs='-lws2_32 -lw
inmm -lpthread' --extra-cflags='--static
-I/var/www/users/research/ffmpeg/snapsh
ots/build/include' --extra-ldflags='-static
-L/var/www/users/research/ffmpeg/sna
pshots/build/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-
version3 --
enable-nonfree --enable-libx264 --enable-libspeex --enable-libtheora
--enable-li
bvorbis --enable-libfaac --enable-libxvid --enable-libopencore-amrnb
--enable-li
bopencore-amrwb --enable-libmp3lame --enable-libfreetype --enable-libvpx
--disab
le-decoder=libvpx
libavutil 52. 43.100 / 52. 43.100
libavcodec 55. 29.100 / 55. 29.100
libavformat 55. 15.100 / 55. 15.100
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 82.102 / 3. 82.102
libswscale 2. 5.100 / 2. 5.100
libswresample 0. 17.103 / 0. 17.103
libpostproc 52. 3.100 / 52. 3.100
Input #0, avi, from 'ffv1_dead.avi':
Metadata:
encoder : Lavf55.13.101
Duration: 00:00:12.64, start: 0.000000, bitrate: 5802 kb/s
Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv410p, 320x240, 23.97
tbr, 2
3.97 tbn, 23.97 tbc
Output #0, null, to 'pipe:':
Metadata:
encoder : Lavf55.15.100
Stream #0:0: Video: rawvideo (YUV9 / 0x39565559), yuv410p, 320x240,
q=2-31,
200 kb/s, 90k tbn, 23.97 tbc
Stream mapping:
Stream #0:0 -> #0:0 (ffv1 -> rawvideo)
Press [q] to stop, [?] for help
[ffv1 @ 0x21281a0] Invalid change of global parameters
[ffv1 @ 0x2128820] Cannot decode non-keyframe without valid keyframe
[null @ 0x2137aa0] [ffv1 @ 0x2120280] Encoder did not produce proper pts,
making
some up.
Cannot decode non-keyframe without valid keyframe
[ffv1 @ 0x2120ae0] Cannot decode non-keyframe without valid keyframe
[ffv1 @ 0x2049360] Cannot decode non-keyframe without valid keyframe
[ffv1 @ 0x21410e0] Cannot decode non-keyframe without valid keyframe
[ffv1 @ 0x212e4a0] Error while decoding stream #0:0: Invalid data found
when pro
cessing input
Cannot decode non-keyframe without valid keyframe
[ffv1 @ 0x2125240] Error while decoding stream #0:0: Invalid data found
when pro
cessing input
Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
Last message repeated 5 times
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2924>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
1
3
#2923: ffv1: invalid read
-------------------------------------+-------------------------------------
Reporter: ami_stuff | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: | undetermined
unspecified | Keywords:
Blocked By: | Blocking:
Reproduced by developer: 0 | Analyzed by developer: 0
-------------------------------------+-------------------------------------
crashes with threads > 2
http://www.datafilehost.com/d/ec2176ad
{{{
knoppix@Microknoppix:/media/sdb1$ valgrind --leak-check=full ffmpeg-
HEAD-c042684/ffmpeg_g -i ./ffv1_fuzz2.avi -f null -
==3389== Memcheck, a memory error detector
==3389== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==3389== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==3389== Command: ffmpeg-HEAD-c042684/ffmpeg_g -i ./ffv1_fuzz2.avi -f null
-
==3389==
ffmpeg version 2.0-c042684 Copyright (c) 2000-2013 the FFmpeg developers
built on Aug 30 2013 20:55:53 with gcc 4.7 (Debian 4.7.2-5)
configuration: --disable-yasm --disable-ffprobe --disable-ffserver
--enable-gpl
libavutil 52. 42.100 / 52. 42.100
libavcodec 55. 29.100 / 55. 29.100
libavformat 55. 15.100 / 55. 15.100
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 82.102 / 3. 82.102
libswscale 2. 5.100 / 2. 5.100
libswresample 0. 17.103 / 0. 17.103
libpostproc 52. 3.100 / 52. 3.100
[avi @ 0x4229020] Something went wrong during header parsing, I will
ignore it and try to continue anyway.
[ffv1 @ 0x423a500] Cannot decode non-keyframe without valid keyframe
Last message repeated 1 times
[ffv1 @ 0x423a500] read_quant_table error
Input #0, avi, from './ffv1_fuzz2.avi':
Metadata:
encoder : Lavf55.13.101
Duration: 00:00:12.64, start: 0.000000, bitrate: 5802 kb/s
Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv410p, 320x240, 23.98
fps, 23.97 tbr, 23.97 tbn, 23.97 tbc
Output #0, null, to 'pipe:':
Metadata:
encoder : Lavf55.15.100
Stream #0:0: Video: rawvideo (YUV9 / 0x39565559), yuv410p, 320x240,
q=2-31, 200 kb/s, 90k tbn, 23.97 tbc
Stream mapping:
Stream #0:0 -> #0:0 (ffv1 -> rawvideo)
Press [q] to stop, [?] for help
[ffv1 @ 0x4548000] Cannot decode non-keyframe without valid keyframe
[ffv1 @ 0x4554860] Cannot decode non-keyframe without valid keyframe
[ffv1 @ 0x455efc0] read_quant_table error
[ffv1 @ 0x4569700] Cannot decode non-keyframe without valid keyframe
[ffv1 @ 0x4573e60] Cannot decode non-keyframe without valid keyframe
[ffv1 @ 0x457e5a0] Cannot decode non-keyframe without valid keyframe
[ffv1 @ 0x4588d00] Cannot decode non-keyframe without valid keyframe
[ffv1 @ 0x4593440] Invalid change of global parameters
Error while decoding stream #0:0: Invalid data found when processing input
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x459dba0] Cannot decode non-keyframe without valid keyframe
[ffv1 @ 0x4548000] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x4554860] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x455efc0] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x4569700] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x4573e60] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x457e5a0] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x4588d00] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x4593440] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x459dba0] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x4548000] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x4554860] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x455efc0] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x4569700] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x4573e60] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
==3389== Thread 11:peated 4 times
==3389== Invalid read of size 2
==3389== at 0x832D168: decode_plane (ffv1dec.c:74)
==3389== by 0x832FEB2: decode_slice (ffv1dec.c:399)
==3389== by 0x86753C3: avcodec_default_execute (utils.c:948)
==3389== by 0x832E56D: decode_frame (ffv1dec.c:898)
==3389== by 0x85CC83D: frame_worker_thread (pthread.c:339)
==3389== by 0x407B953: start_thread (pthread_create.c:304)
==3389== by 0x416395D: clone (clone.S:130)
==3389== Address 0x2 is not stack'd, malloc'd or (recently) free'd
==3389==
==3389==
==3389== Process terminating with default action of signal 11 (SIGSEGV)
==3389== Access not within mapped region at address 0x2
==3389== at 0x832D168: decode_plane (ffv1dec.c:74)
==3389== by 0x832FEB2: decode_slice (ffv1dec.c:399)
==3389== by 0x86753C3: avcodec_default_execute (utils.c:948)
==3389== by 0x832E56D: decode_frame (ffv1dec.c:898)
==3389== by 0x85CC83D: frame_worker_thread (pthread.c:339)
==3389== by 0x407B953: start_thread (pthread_create.c:304)
==3389== by 0x416395D: clone (clone.S:130)
==3389== If you believe this happened as a result of a stack
==3389== overflow in your program's main thread (unlikely but
==3389== possible), you can try to increase the size of the
==3389== main thread stack using the --main-stacksize= flag.
==3389== The main thread stack size used in this run was 8388608.
==3389==
==3389== HEAP SUMMARY:
==3389== in use at exit: 1,911,601 bytes in 297 blocks
==3389== total heap usage: 1,826 allocs, 1,529 frees, 8,842,790 bytes
allocated
==3389==
==3389== Thread 1:
==3389== 1,296 bytes in 9 blocks are possibly lost in loss record 105 of
125
==3389== at 0x4026A68: calloc (vg_replace_malloc.c:566)
==3389== by 0x40111FB: _dl_allocate_tls (dl-tls.c:300)
==3389== by 0x407C2A8: pthread_create@@GLIBC_2.1 (allocatestack.c:580)
==3389== by 0x80D9591: ff_graph_thread_init (pthread.c:180)
==3389== by 0x80CD507: avfilter_graph_alloc_filter
(avfiltergraph.c:186)
==3389== by 0x80D8144: create_filter (graphparser.c:112)
==3389== by 0x80D8B99: avfilter_graph_parse2 (graphparser.c:169)
==3389==
==3389== 1,296 bytes in 9 blocks are possibly lost in loss record 106 of
125
==3389== at 0x4026A68: calloc (vg_replace_malloc.c:566)
==3389== by 0x40111FB: _dl_allocate_tls (dl-tls.c:300)
==3389== by 0x407C2A8: pthread_create@@GLIBC_2.1 (allocatestack.c:580)
==3389== by 0x85CE7BE: ff_thread_init (pthread.c:872)
==3389== by 0x867B19D: avcodec_open2 (utils.c:1223)
==3389== by 0x80B9F46: transcode_init (ffmpeg.c:1983)
==3389== by 0x80A242F: main (ffmpeg.c:3204)
==3389==
==3389== LEAK SUMMARY:
==3389== definitely lost: 0 bytes in 0 blocks
==3389== indirectly lost: 0 bytes in 0 blocks
==3389== possibly lost: 2,592 bytes in 18 blocks
==3389== still reachable: 1,909,009 bytes in 279 blocks
==3389== suppressed: 0 bytes in 0 blocks
==3389== Reachable blocks (those to which a pointer was found) are not
shown.
==3389== To see them, rerun with: --leak-check=full --show-reachable=yes
==3389==
==3389== For counts of detected and suppressed errors, rerun with: -v
==3389== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 59 from 6)
Killed
}}}
{{{
knoppix@Microknoppix:/media/sdb1$ gdb ffmpeg-HEAD-c042684/ffmpeg_gGNU gdb
(GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /media/sdb1/ffmpeg-HEAD-c042684/ffmpeg_g...done.
(gdb) r -i ./ffv1_fuzz2.avi -f null -
Starting program: /media/sdb1/ffmpeg-HEAD-c042684/ffmpeg_g -i
./ffv1_fuzz2.avi -f null -
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
ffmpeg version 2.0-c042684 Copyright (c) 2000-2013 the FFmpeg developers
built on Aug 30 2013 20:55:53 with gcc 4.7 (Debian 4.7.2-5)
configuration: --disable-yasm --disable-ffprobe --disable-ffserver
--enable-gpl
libavutil 52. 42.100 / 52. 42.100
libavcodec 55. 29.100 / 55. 29.100
libavformat 55. 15.100 / 55. 15.100
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 82.102 / 3. 82.102
libswscale 2. 5.100 / 2. 5.100
libswresample 0. 17.103 / 0. 17.103
libpostproc 52. 3.100 / 52. 3.100
[avi @ 0x9104d40] Something went wrong during header parsing, I will
ignore it and try to continue anyway.
[ffv1 @ 0x9105640] Cannot decode non-keyframe without valid keyframe
Last message repeated 1 times
[ffv1 @ 0x9105640] read_quant_table error
Input #0, avi, from './ffv1_fuzz2.avi':
Metadata:
encoder : Lavf55.13.101
Duration: 00:00:12.64, start: 0.000000, bitrate: 5802 kb/s
Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv410p, 320x240, 23.98
fps, 23.97 tbr, 23.97 tbn, 23.97 tbc
[New Thread 0xb7befb70 (LWP 3415)]
[New Thread 0xb73efb70 (LWP 3416)]
[New Thread 0xb6befb70 (LWP 3417)]
[New Thread 0xb63efb70 (LWP 3418)]
[New Thread 0xb5befb70 (LWP 3419)]
[New Thread 0xb53efb70 (LWP 3420)]
[New Thread 0xb4befb70 (LWP 3421)]
[New Thread 0xb43efb70 (LWP 3422)]
[New Thread 0xb3befb70 (LWP 3423)]
[New Thread 0xb33efb70 (LWP 3424)]
[New Thread 0xb2befb70 (LWP 3425)]
[New Thread 0xb23efb70 (LWP 3426)]
[New Thread 0xb1befb70 (LWP 3427)]
[New Thread 0xb13efb70 (LWP 3428)]
[New Thread 0xb0befb70 (LWP 3429)]
[New Thread 0xb03efb70 (LWP 3430)]
[New Thread 0xafbefb70 (LWP 3431)]
[New Thread 0xaf3efb70 (LWP 3432)]
Output #0, null, to 'pipe:':
Metadata:
encoder : Lavf55.15.100
Stream #0:0: Video: rawvideo (YUV9 / 0x39565559), yuv410p, 320x240,
q=2-31, 200 kb/s, 90k tbn, 23.97 tbc
Stream mapping:
Stream #0:0 -> #0:0 (ffv1 -> rawvideo)
Press [q] to stop, [?] for help
[ffv1 @ 0x91077e0] Cannot decode non-keyframe without valid keyframe
[ffv1 @ 0x9107dc0] Cannot decode non-keyframe without valid keyframe
[ffv1 @ 0x90f53a0] read_quant_table error
[ffv1 @ 0x90f5960] Cannot decode non-keyframe without valid keyframe
[ffv1 @ 0x90f5fe0] Cannot decode non-keyframe without valid keyframe
[ffv1 @ 0x90f6660] Cannot decode non-keyframe without valid keyframe
[ffv1 @ 0x90f6ce0] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x90f7360] Invalid change of global parameters
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x90f79e0] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x91077e0] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x9107dc0] Cannot decode non-keyframe without valid keyframe
[ffv1 @ 0x90f53a0] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x90f5960] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x90f5fe0] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x90f6660] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x90f6ce0] Cannot decode non-keyframe without valid keyframe
[ffv1 @ 0x90f7360] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x90f79e0] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x91077e0] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x9107dc0] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x90f53a0] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x90f5960] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
[ffv1 @ 0x90f5fe0] Cannot decode non-keyframe without valid keyframe
Error while decoding stream #0:0: Invalid data found when processing input
Last message repeated 6 times
[null @ 0x910c700] Encoder did not produce proper pts, making some up.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb33efb70 (LWP 3424)]
decode_line (bits=8, plane_index=<optimized out>, sample=<synthetic
pointer>,
w=320, s=0x9115420) at libavcodec/ffv1dec.c:146
146 diff = get_vlc_symbol(&s->gb,
&p->vlc_state[context],
(gdb) bt
#0 decode_line (bits=8, plane_index=<optimized out>,
sample=<synthetic pointer>, w=320, s=0x9115420) at
libavcodec/ffv1dec.c:146
#1 decode_plane (s=s@entry=0x9115420, src=0xaea01c90 "", w=w@entry=320,
h=h@entry=240, stride=384, plane_index=plane_index@entry=0)
at libavcodec/ffv1dec.c:191
#2 0x0832feb3 in decode_slice (c=0x91077e0, arg=0x9102aa8)
at libavcodec/ffv1dec.c:399
#3 0x086753c4 in avcodec_default_execute (c=0x91077e0,
func=0x832f8c0 <decode_slice>, arg=0x9102aa8, ret=0x0, count=1,
size=4)
at libavcodec/utils.c:948
#4 0x0832e56e in decode_frame (avctx=0x91077e0, data=0x9103000,
got_frame=0x91031bc, avpkt=0x9102fb0) at libavcodec/ffv1dec.c:898
#5 0x085cc83e in frame_worker_thread (arg=0x9102ee0)
at libavcodec/pthread.c:339
#6 0xb7f87954 in start_thread (arg=0xb33efb70) at pthread_create.c:304
#7 0xb7f0895e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
(gdb)
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2923>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
1
4
#2621(FFprobe:new): ffprobe should output formatted information about detection reliability
by FFmpeg 01 Sep '13
by FFmpeg 01 Sep '13
01 Sep '13
#2621: ffprobe should output formatted information about detection reliability
-------------------------------------+-------------------------------------
Reporter: | Type:
ahthovaikied | enhancement
Status: new | Priority: normal
Component: FFprobe | Version: git-
Keywords: ffprobe | master
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Sometimes ffprobe misdetects text files as mp3, but it outputs a log
message about a possible misdetection:
{{{
$ ffprobe text_file.log
ffprobe version N-53746-gec34963 Copyright (c) 2007-2013 the FFmpeg
developers
built on Jun 1 2013 22:57:16 with gcc 4.6 (Ubuntu/Linaro
4.6.3-1ubuntu5)
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-
x11grab --disable-encoder=vorbis --disable-encoder=aac --enable-
libopencore-amrnb --enable-libopencore-amrwb --enable-libfdk-aac --enable-
librtmp --enable-libmp3lame --enable-libtheora --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libxvid --enable-libopus
--disable-runtime-cpudetect --disable-ffserver --disable-debug
--cpu=corei7
libavutil 52. 34.100 / 52. 34.100
libavcodec 55. 13.100 / 55. 13.100
libavformat 55. 8.102 / 55. 8.102
libavdevice 55. 2.100 / 55. 2.100
libavfilter 3. 74.101 / 3. 74.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
[mp3 @ 0x19df260] Format mp3 detected only with low score of 1,
misdetection possible!
[mp3 @ 0x19df260] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'text_file.log':
Duration: 00:00:00.29, start: 0.000000, bitrate: 128 kb/s
Stream #0:0: Audio: mp1, 48000 Hz, stereo, s16p, 128 kb/s
}}}
However when making ffprobe output formatted data (ie. JSON), the
information about the low detection reliability is not present:
{{{
$ ffprobe -loglevel quiet -print_format json -show_format text_file.log
{
"format": {
"filename": "text_file.log",
"nb_streams": 1,
"format_name": "mp3",
"format_long_name": "MP2/3 (MPEG audio layer 2/3)",
"start_time": "0.000000",
"duration": "0.293375",
"size": "4694",
"bit_rate": "128000"
}
}
}}}
The addition of a field in the formatted output with a value about the
detection reliability would be great and solve that problem.
It would be especially useful for scripts and programs that rely on
ffprobe to analyze files, and therefore do not read or parse the ffprobe
logging output.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2621>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
1
3