[libav-bugs] [Bug 579] New: segfault when creating animation from image files...

bugzilla at libav.org bugzilla at libav.org
Mon Oct 21 10:57:04 CEST 2013


https://bugzilla.libav.org/show_bug.cgi?id=579

           Summary: segfault when creating animation from image files...
           Product: Libav
           Version: 0.8
          Platform: X86
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: Normal
         Component: utilities
        AssignedTo: bugzilla at libav.org
        ReportedBy: teracow at yahoo.com.au


After a recent upgrade to Kubuntu 13.10 (from 13.04), my avconv was upgraded
and the following command no longer works:

avconv -r 25 -i "jma-%5d.png" -c:v libx264 -crf 17 "test.avi"

I use this to build an animation from a contiguous named file series of ".png"s

Hopefully, I've provided all the required info below... :)

---------------------------------------------------------------------------

$ gdb --args avconv -v debug -r 25 -i "jma-%5d.png" -c:v libx264 -crf 17
"test.avi"
GNU gdb (GDB) 7.6.1-ubuntu
Copyright (C) 2013 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 "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/avconv...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/bin/avconv -v debug -r 25 -i jma-%5d.png -c:v libx264
-crf 17 test.avi
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
avconv version 0.8.7-6:0.8.7-1ubuntu2, Copyright (c) 2000-2013 the Libav
developers
  built on Oct 11 2013 08:39:40 with gcc 4.8.1
  configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect
--extra-version='6:0.8.7-1ubuntu2' --libdir=/usr/lib/x86_64-linux-gnu
--prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype
--enable-gnutls --enable-libgsm --enable-libpulse --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau
--enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc
--enable-swscale --enable-libcdio --enable-x11grab
--shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
  avutil      configuration: --arch=amd64 --enable-pthreads
--enable-runtime-cpudetect --extra-version='6:0.8.7ubuntu1'
--libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib
--enable-libdc1394 --enable-libdirac --enable-libfreetype --enable-frei0r
--enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp
--enable-libopencv --enable-libopenjpeg --enable-libpulse
--enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi
--enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl
--enable-postproc --enable-swscale --enable-libcdio --enable-x11grab
--enable-libx264 --enable-libxvid --shlibdir=/usr/lib/x86_64-linux-gnu
--enable-shared --disable-static --enable-libopencore-amrnb --enable-version3
--enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc
--enable-version3 --enable-libvo-amrwbenc --enable-version3
  avcodec     configuration: --arch=amd64 --enable-pthreads
--enable-runtime-cpudetect --extra-version='6:0.8.7ubuntu1'
--libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib
--enable-libdc1394 --enable-libdirac --enable-libfreetype --enable-frei0r
--enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp
--enable-libopencv --enable-libopenjpeg --enable-libpulse
--enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi
--enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl
--enable-postproc --enable-swscale --enable-libcdio --enable-x11grab
--enable-libx264 --enable-libxvid --shlibdir=/usr/lib/x86_64-linux-gnu
--enable-shared --disable-static --enable-libopencore-amrnb --enable-version3
--enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc
--enable-version3 --enable-libvo-amrwbenc --enable-version3
  libavutil    51. 22. 1 / 51. 22. 1
  libavcodec   53. 35. 0 / 53. 35. 0
  libavformat  53. 21. 1 / 53. 21. 1
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 15. 0 /  2. 15. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  52.  0. 0 / 52.  0. 0
[png @ 0x670f40] err{or,}_recognition separate: 1; 1
[png @ 0x670f40] err{or,}_recognition combined: 1; 1
[png @ 0x670f40] Unsupported bit depth: 0
[image2 @ 0x66e840] Probe buffer size limit 5000000 reached
Input #0, image2, from 'jma-%5d.png':
  Duration: 00:00:01.20, start: 0.000000, bitrate: N/A
    Stream #0.0, 7, 1/25: Video: png, rgb24, 800x812, 1/25, 25 fps, 25 tbr, 25
tbn, 25 tbc
File 'test.avi' already exists. Overwrite ? [y/N] y
Incompatible pixel format 'rgb24' for codec 'libx264', auto-selecting format
'yuv420p'
[buffer @ 0x62e000] w:800 h:812 pixfmt:rgb24
[avsink @ 0x62db20] auto-inserting filter 'auto-inserted scaler 0' between the
filter 'src' and the filter 'out'
[scale @ 0x6704e0] w:800 h:812 fmt:rgb24 -> w:800 h:812 fmt:yuv420p flags:0x4
[libx264 @ 0x66f860] err{or,}_recognition separate: 1; 1
[libx264 @ 0x66f860] err{or,}_recognition combined: 1; 1
[libx264 @ 0x66f860] using mv_range_thread = 24

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5aee5c5 in ?? () from /lib/x86_64-linux-gnu/libc.so.6

(gdb) bt
#0  0x00007ffff5aee5c5 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff3228d9e in x264_cqm_init () from
/usr/lib/x86_64-linux-gnu/libx264.so.123
#2  0x00007ffff3293374 in x264_encoder_open_123 () from
/usr/lib/x86_64-linux-gnu/libx264.so.123
#3  0x00007ffff693336c in ?? () from /usr/lib/x86_64-linux-gnu/libavcodec.so.53
#4  0x00007ffff6cbe5f5 in avcodec_open2 () from
/usr/lib/x86_64-linux-gnu/libavcodec.so.53
#5  0x00000000004051aa in ?? ()
#6  0x00007ffff59aade5 in __libc_start_main () from
/lib/x86_64-linux-gnu/libc.so.6
#7  0x0000000000407983 in ?? ()

(gdb) disass $pc-32,$pc+32
Dump of assembler code from 0x7ffff5aee5a5 to 0x7ffff5aee5e5:
   0x00007ffff5aee5a5:  movl   $0xeb40c683,0x48(%rax)
   0x00007ffff5aee5ac:  sbb    %cl,-0x7d(%rax)
   0x00007ffff5aee5af:  (bad)  
   0x00007ffff5aee5b0:  adc    %cl,-0x7d(%rax)
   0x00007ffff5aee5b3:  (bad)  
   0x00007ffff5aee5b4:  adc    %cl,-0x7d(%rax)
   0x00007ffff5aee5b7:  (bad)  
   0x00007ffff5aee5b8:  adc    %cl,-0x7d(%rax)
   0x00007ffff5aee5bb:  (bad)  
   0x00007ffff5aee5bc:  adc    %cl,-0x7d(%rax)
   0x00007ffff5aee5bf:  (bad)  
   0x00007ffff5aee5c0:  adc    %cl,-0x7d(%rax)
   0x00007ffff5aee5c3:  (bad)  
   0x00007ffff5aee5c4:  adc    %cl,-0x75(%rax)
   0x00007ffff5aee5c7:  rex.RXB
   0x00007ffff5aee5c8:  lock mov -0x10(%rsi),%rcx
   0x00007ffff5aee5cd:  cmp    %rax,%rcx
   0x00007ffff5aee5d0:  jne    0x7ffff5aef013
   0x00007ffff5aee5d6:  mov    -0x8(%rdi),%rax
   0x00007ffff5aee5da:  mov    -0x8(%rsi),%rcx
   0x00007ffff5aee5de:  cmp    %rax,%rcx
   0x00007ffff5aee5e1:  jne    0x7ffff5aef013
End of assembler dump.

(gdb) info all-registers
rax            0x6af7a0 7010208
rbx            0x692090 6889616
rcx            0x7ffff5aee5c5   140737315268037
rdx            0x10     16
rsi            0x7ffff32d0690   140737273202320
rdi            0x10     16
rbp            0x692050 0x692050
rsp            0x7fffffffc738   0x7fffffffc738
r8             0x3      3
r9             0x8c0    2240
r10            0x1fa1   8097
r11            0x7ffff5b15f60   140737315430240
r12            0x8      8
r13            0x0      0
r14            0x10     16
r15            0x0      0
rip            0x7ffff5aee5c5   0x7ffff5aee5c5
eflags         0x10207  [ CF PF IF RF ]
cs             0x33     51
ss             0x2b     43
ds             0x0      0
es             0x0      0
fs             0x0      0
gs             0x0      0
st0            -nan(0x6400000000)       (raw 0xffff0000006400000000)
st1            -nan(0x6400000000)       (raw 0xffff0000006400000000)
st2            -inf     (raw 0xffff0000000000000000)
st3            -nan(0x64000000640000)   (raw 0xffff0064000000640000)
st4            -inf     (raw 0xffff0000000000000000)
st5            -nan(0xff00ff00ff00ff)   (raw 0xffff00ff00ff00ff00ff)
st6            -inf     (raw 0xffff0000000000000000)
st7            -inf     (raw 0xffff0000000000000000)
fctrl          0x37f    895
fstat          0x0      0
ftag           0xffff   65535
fiseg          0x0      0
fioff          0x0      0
foseg          0x0      0
fooff          0x0      0
fop            0x0      0
xmm0           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0}, v4_int32 = {
    0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 =
0x00000000000000000000000000000000}
xmm1           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0xc7, 0xb5, 0x38, 0x3a, 0x0 <repeats 12 times>}, v8_int16 =
{0xb5c7, 0x3a38, 0x0, 0x0, 0x0, 
    0x0, 0x0, 0x0}, v4_int32 = {0x3a38b5c7, 0x0, 0x0, 0x0}, v2_int64 =
{0x3a38b5c7, 0x0}, uint128 = 0x0000000000000000000000003a38b5c7}
xmm2           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0, 0x0, 0x0, 0xba, 0x0 <repeats 12 times>}, v8_int16 = {0x0,
0xba00, 0x0, 0x0, 0x0, 0x0, 
    0x0, 0x0}, v4_int32 = {0xba000000, 0x0, 0x0, 0x0}, v2_int64 = {0xba000000,
0x0}, uint128 = 0x000000000000000000000000ba000000}
xmm3           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0xab, 0x2, 0x0, 0xba, 0x0 <repeats 12 times>}, v8_int16 = {0x2ab,
0xba00, 0x0, 0x0, 0x0, 0x0, 
    0x0, 0x0}, v4_int32 = {0xba0002ab, 0x0, 0x0, 0x0}, v2_int64 = {0xba0002ab,
0x0}, uint128 = 0x000000000000000000000000ba0002ab}
xmm4           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x8, 0x20, 0x80, 0x27, 0x0 <repeats 12 times>}, v8_int16 = {0x2008,
0x2780, 0x0, 0x0, 0x0, 
    0x0, 0x0, 0x0}, v4_int32 = {0x27802008, 0x0, 0x0, 0x0}, v2_int64 =
{0x27802008, 0x0}, uint128 = 0x00000000000000000000000027802008}
xmm5           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x1, 0x8, 0x80, 0xb9, 0x0 <repeats 12 times>}, v8_int16 = {0x801,
0xb980, 0x0, 0x0, 0x0, 0x0, 
    0x0, 0x0}, v4_int32 = {0xb9800801, 0x0, 0x0, 0x0}, v2_int64 = {0xb9800801,
0x0}, uint128 = 0x000000000000000000000000b9800801}
xmm6           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0}, v4_int32 = {
    0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 =
0x00000000000000000000000000000000}
xmm7           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0}, v4_int32 = {
    0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 =
0x00000000000000000000000000000000}
xmm8           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0xff, 0xff, 0xff, 0xff, 0x0, 
    0xff, 0xff, 0xff, 0xff, 0xff}, v8_int16 = {0x0, 0x0, 0x0, 0xffff, 0xffff,
0xff00, 0xffff, 0xffff}, v4_int32 = {0x0, 0xffff0000, 0xff00ffff, 0xffffffff},
v2_int64 = {
    0xffff000000000000, 0xffffffffff00ffff}, uint128 =
0xffffffffff00ffffffff000000000000}
xmm9           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0}, v4_int32 = {
    0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 =
0x00000000000000000000000000000000}
xmm10          {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0xff, 0x0, 0x0}, 
---Type <return> to continue, or q <return> to quit---
  v8_int16 = {0x0, 0x0, 0x0, 0xff, 0x0, 0x0, 0xff00, 0x0}, v4_int32 = {0x0,
0xff0000, 0x0, 0xff00}, v2_int64 = {0xff000000000000, 0xff0000000000}, 
  uint128 = 0x0000ff000000000000ff000000000000}
xmm11          {v4_float = {0x9689a800, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x6a, 0xa2, 0x65, 0x50, 0xf2, 0xea, 0x8f, 0xbd, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 
    0x0}, v8_int16 = {0xa26a, 0x5065, 0xeaf2, 0xbd8f, 0x0, 0x0, 0x0, 0x0},
v4_int32 = {0x5065a26a, 0xbd8feaf2, 0x0, 0x0}, v2_int64 = {0xbd8feaf25065a26a,
0x0}, 
  uint128 = 0x0000000000000000bd8feaf25065a26a}
xmm12          {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc4, 0x3c, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0}, 
  v8_int16 = {0x0, 0x0, 0x0, 0x3cc4, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0,
0x3cc40000, 0x0, 0x0}, v2_int64 = {0x3cc4000000000000, 0x0}, 
  uint128 = 0x00000000000000003cc4000000000000}
xmm13          {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x80, 0x59, 0xbc, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0}, 
  v8_int16 = {0x0, 0x0, 0x8000, 0xbc59, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0,
0xbc598000, 0x0, 0x0}, v2_int64 = {0xbc59800000000000, 0x0}, 
  uint128 = 0x0000000000000000bc59800000000000}
xmm14          {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x8e, 0x85, 0x83, 0xe8, 0xf0, 0x24, 0x53, 0x3c, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0}, 
  v8_int16 = {0x858e, 0xe883, 0x24f0, 0x3c53, 0x0, 0x0, 0x0, 0x0}, v4_int32 =
{0xe883858e, 0x3c5324f0, 0x0, 0x0}, v2_int64 = {0x3c5324f0e883858e, 0x0}, 
  uint128 = 0x00000000000000003c5324f0e883858e}
xmm15          {v4_float = {0x0, 0x3, 0x0, 0x0}, v2_double = {0x2d, 0x0},
v16_int8 = {0xc0, 0x9, 0xf2, 0x16, 0xb5, 0xdf, 0x46, 0x40, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0}, 
  v8_int16 = {0x9c0, 0x16f2, 0xdfb5, 0x4046, 0x0, 0x0, 0x0, 0x0}, v4_int32 =
{0x16f209c0, 0x4046dfb5, 0x0, 0x0}, v2_int64 = {0x4046dfb516f209c0, 0x0}, 
  uint128 = 0x00000000000000004046dfb516f209c0}
mxcsr          0x1fa0   [ PE IM DM ZM OM UM PM ]
(gdb) 


Thanks.

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list