Bug#648843: ffmpeg: segmentation fault when transcoding mkv to mpg

Eric Cooper ecc at cmu.edu
Tue Nov 15 15:51:25 UTC 2011


Here's some additional information.  The resulting .mpg files all seem to
play OK, and do not seem to be truncated.

I tried transcoding another .mkv file to mpg, and a similar failure occurred.
But ffmpeg produced much more debugging info this time:

ffmpeg -threads 6 -i 06\ Almost\ People.mkv -target ntsc-dvd /tmp/6.mpg
ffmpeg version 0.7.2-4:0.7.2-1+b1, Copyright (c) 2000-2011 the Libav developers
  built on Oct 27 2011 17:43:14 with gcc 4.6.2
  configuration: --extra-version='4:0.7.2-1+b1' --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-libopenjpeg --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
  libavutil    51.  7. 0 / 51.  7. 0
  libavcodec   53.  5. 0 / 53.  5. 0
  libavformat  53.  2. 0 / 53.  2. 0
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2.  4. 0 /  2.  4. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  52.  0. 0 / 52.  0. 0
[matroska,webm @ 0x1112500] Estimating duration from bitrate, this may be inaccurate
Input #0, matroska,webm, from '06 Almost People.mkv':
  Duration: 00:45:06.17, start: 0.000000, bitrate: 384 kb/s
    Stream #0.0: Video: h264 (High), yuv420p, 1280x720, PAR 1:1 DAR 16:9, 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
    Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s (default)
    Stream #0.2(eng): Subtitle: ass (default)
Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt'
[buffer @ 0x123a020] w:1280 h:720 pixfmt:yuv420p
[scale @ 0x11ee360] w:1280 h:720 fmt:yuv420p -> w:720 h:480 fmt:yuv420p flags:0x4
Output #0, dvd, to '/tmp/6.mpg':
  Metadata:
    encoder         : Lavf53.2.0
    Stream #0.0: Video: mpeg2video, yuv420p, 720x480 [PAR 1:1 DAR 3:2], q=2-31, 6000 kb/s, 90k tbn, 29.97 tbc (default)
    Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, flt, 448 kb/s (default)
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press ctrl-c to stop encoding
Input stream #0.1 frame changed from rate:48000 fmt:s16 ch:6 to rate:48000 fmt:flt ch:6
[dvd @ 0x11edbc0] buffer underflow i=1 bufi=1638 size=1792te=4084.1kbits/s dup=296 drop=0    
    Last message repeated 10 times46158kB time=2705.30 bitrate=3470.7kbits/s dup=13445 drop=0    
Input stream #0.1 frame changed from rate:48000 fmt:flt ch:6 to rate:48000 fmt:flt ch:2
Warning, using s16 intermediate sample format for resampling
*** glibc detected *** ffmpeg: double free or corruption (out): 0x0000000003d30060 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x72606)[0x7fe77a2ef606]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7fe77a2f433c]
/usr/lib/x86_64-linux-gnu/libavcodec.so.53(audio_resample+0x41a)[0x7fe77b44b59a]
ffmpeg[0x4062fe]
ffmpeg[0x40ab7d]
ffmpeg[0x407d40]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd)[0x7fe77a29bead]
ffmpeg[0x407e75]
======= Memory map: ========
00400000-00417000 r-xp 00000000 08:01 35324995                           /usr/bin/ffmpeg
00616000-00619000 rw-p 00016000 08:01 35324995                           /usr/bin/ffmpeg
00619000-0061a000 rw-p 00000000 00:00 0 
010fa000-0485d000 rw-p 00000000 00:00 0                                  [heap]
7fe768000000-7fe768931000 rw-p 00000000 00:00 0 
7fe768931000-7fe76c000000 ---p 00000000 00:00 0 
7fe76e3bc000-7fe76e3bd000 ---p 00000000 00:00 0 
7fe76e3bd000-7fe76ebbd000 rw-p 00000000 00:00 0 
7fe76ebbd000-7fe76ebbe000 ---p 00000000 00:00 0 
7fe76ebbe000-7fe76f3be000 rw-p 00000000 00:00 0 
7fe76f3be000-7fe76f3bf000 ---p 00000000 00:00 0 
7fe76f3bf000-7fe76fbbf000 rw-p 00000000 00:00 0 
7fe76fbbf000-7fe76fbc0000 ---p 00000000 00:00 0 
7fe76fbc0000-7fe7703c0000 rw-p 00000000 00:00 0 
7fe7703c0000-7fe7703c1000 ---p 00000000 00:00 0 
7fe7703c1000-7fe770bc1000 rw-p 00000000 00:00 0 
7fe770bc1000-7fe770bc2000 ---p 00000000 00:00 0 
7fe770bc2000-7fe7713c2000 rw-p 00000000 00:00 0 
7fe7713c2000-7fe7713c3000 ---p 00000000 00:00 0 
7fe7713c3000-7fe771bc3000 rw-p 00000000 00:00 0 
7fe771bc3000-7fe771bc4000 ---p 00000000 00:00 0 
7fe771bc4000-7fe7723c4000 rw-p 00000000 00:00 0 
7fe7723c4000-7fe7723c5000 ---p 00000000 00:00 0 
7fe7723c5000-7fe772bc5000 rw-p 00000000 00:00 0 
7fe772bc5000-7fe772bc6000 ---p 00000000 00:00 0 
7fe772bc6000-7fe7733c6000 rw-p 00000000 00:00 0 
7fe7733c6000-7fe7733c7000 ---p 00000000 00:00 0 
7fe7733c7000-7fe773bc7000 rw-p 00000000 00:00 0 
7fe773bc7000-7fe773bc8000 ---p 00000000 00:00 0 
7fe773bc8000-7fe7745c3000 rw-p 00000000 00:00 0 
7fe7745c3000-7fe7745c6000 r-xp 00000000 08:01 28393474                   /lib/libgpg-error.so.0.8.0
7fe7745c6000-7fe7747c5000 ---p 00003000 08:01 28393474                   /lib/libgpg-error.so.0.8.0
7fe7747c5000-7fe7747c6000 rw-p 00002000 08:01 28393474                   /lib/libgpg-error.so.0.8.0
7fe7747c6000-7fe7747d7000 r-xp 00000000 08:01 35438593                   /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
7fe7747d7000-7fe7749d6000 ---p 00011000 08:01 35438593                   /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
7fe7749d6000-7fe7749d7000 rw-p 00010000 08:01 35438593                   /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
7fe7749d7000-7fe7749e7000 r-xp 00000000 08:01 35440753                   /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.11
7fe7749e7000-7fe774be6000 ---p 00010000 08:01 35440753                   /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.11
7fe774be6000-7fe774be7000 rw-p 0000f000 08:01 35440753                   /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.11
7fe774be7000-7fe774bec000 r-xp 00000000 08:01 35440817                   /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fe774bec000-7fe774deb000 ---p 00005000 08:01 35440817                   /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fe774deb000-7fe774dec000 rw-p 00004000 08:01 35440817                   /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fe774dec000-7fe774dee000 r-xp 00000000 08:01 35440813                   /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fe774dee000-7fe774fee000 ---p 00002000 08:01 35440813                   /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fe774fee000-7fe774fef000 rw-p 00002000 08:01 35440813                   /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fe774fef000-7fe775004000 r-xp 00000000 08:01 100720673                  /lib/x86_64-linux-gnu/libgcc_s.so.1
7fe775004000-7fe775204000 ---p 00015000 08:01 100720673                  /lib/x86_64-linux-gnu/libgcc_s.so.1
7fe775204000-7fe775205000 rw-p 00015000 08:01 100720673                  /lib/x86_64-linux-gnu/libgcc_s.so.1
7fe775205000-7fe7752ea000 r-xp 00000000 08:01 35438633                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7fe7752ea000-7fe7754ea000 ---p 000e5000 08:01 35438633                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7fe7754ea000-7fe7754f2000 r--p 000e5000 08:01 35438633                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7fe7754f2000-7fe7754f4000 rw-p 000ed000 08:01 35438633                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7fe7754f4000-7fe775509000 rw-p 00000000 00:00 0 
7fe775509000-7fe77557f000 r-xp 00000000 08:01 35357170                   /usr/lib/liborc-0.4.so.0.16.0
7fe77557f000-7fe77577f000 ---p 00076000 08:01 35357170                   /usr/lib/liborc-0.4.so.0.16.0
7fe77577f000-7fe775785000 rw-p 00076000 08:01 35357170                   /usr/lib/liborc-0.4.so.0.16.0
7fe775785000-7fe77578b000 r-xp 00000000 08:01 35358897                   /usr/lib/libogg.so.0.7.1
7fe77578b000-7fe77598a000 ---p 00006000 08:01 35358897                   /usr/lib/libogg.so.0.7.1
7fe77598a000-7fe77598b000 rw-p 00005000 08:01 35358897                   /usr/lib/libogg.so.0.7.1
7fe77598b000-7fe775a05000 r-xp 00000000 08:01 40550404                   /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
7fe775a05000-7fe775c05000 ---p 0007a000 08:01 40550404                   /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
7fe775c05000-7fe775c09000 rw-p 0007a000 08:01 40550404                   /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
7fe775c09000-7fe775cc1000 r-xp 00000000 08:01 35438596                   /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.5
7fe775cc1000-7fe775ec0000 ---p 000b8000 08:01 35438596                   /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.5
7fe775ec0000-7fe775ec8000 rw-p 000b7000 08:01 35438596                   /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.5
7fe775ec8000-7fe775ed5000 r-xp 00000000 08:01 100720682                  /lib/x86_64-linux-gnu/libusb-1.0.so.0.0.0
7fe775ed5000-7fe7760d4000 ---p 0000d000 08:01 100720682                  /lib/x86_64-linux-gnu/libusb-1.0.so.0.0.0
7fe7760d4000-7fe7760d5000 rw-p 0000c000 08:01 100720682                  /lib/x86_64-linux-gnu/libusb-1.0.so.0.0.0
7fe7760d5000-7fe7760e2000 r-xp 00000000 08:01 35360385                   /usr/lib/libraw1394.so.11.0.1
7fe7760e2000-7fe7762e2000 ---p 0000d000 08:01 35360385                   /usr/lib/libraw1394.so.11.0.1
7fe7762e2000-7fe7762e3000 rw-p 0000d000 08:01 35360385                   /usr/lib/libraw1394.so.11.0.1
7fe7762e3000-7fe7762ea000 r-xp 00000000 08:01 40550433                   /lib/x86_64-linux-gnu/librt-2.13.so
7fe7762ea000-7fe7764e9000 ---p 00007000 08:01 40550433                   /lib/x86_64-linux-gnu/librt-2.13.so
7fe7764e9000-7fe7764ea000 r--p 00006000 08:01 40550433                   /lib/x86_64-linux-gnu/librt-2.13.so
7fe7764ea000-7fe7764eb000 rw-p 00007000 08:01 40550433                   /lib/x86_64-linux-gnu/librt-2.13.so
7fe7764eb000-7fe7764ed000 r-xp 00000000 08:01 40550427                   /lib/x86_64-linux-gnu/libdl-2.13.so
7fe7764ed000-7fe7766ed000 ---p 00002000 08:01 40550427                   /lib/x86_64-linux-gnu/libdl-2.13.so
7fe7766ed000-7fe7766ee000 r--p 00002000 08:01 40550427                   /lib/x86_64-linux-gnu/libdl-2.13.so
7fe7766ee000-7fe7766ef000 rw-p 00003000 08:01 40550427                   /lib/x86_64-linux-gnu/libdl-2.13.so
7fe7766ef000-7fe77670b000 r-xp 00000000 08:01 35440821                   /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7fe77670b000-7fe77690a000 ---p 0001c000 08:01 35440821                   /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7fe77690a000-7fe77690b000 rw-p 0001b000 08:01 35440821                   /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7fe77690b000-7fe77691c000 r-xp 00000000 08:01 35359976                   /usr/lib/libva.so.1.0.12
7fe77691c000-7fe776b1b000 ---p 00011000 08:01 35359976                   /usr/lib/libva.so.1.0.12
7fe776b1b000-7fe776b1c000 rw-p 00010000 08:01 35359976                   /usr/lib/libva.so.1.0.12
7fe776b1c000-7fe776b35000 rw-p 00000000 00:00 0 
7fe776b35000-7fe776bc0000 r-xp 00000000 08:01 35360178                   /usr/lib/libdirac_encoder.so.0.1.0
7fe776bc0000-7fe776dbf000 ---p 0008b000 08:01 35360178                   /usr/lib/libdirac_encoder.so.0.1.0
7fe776dbf000-7fe776dc3000 rw-p 0008a000 08:01 35360178                   /usr/lib/libdirac_encoder.so.0.1.0
7fe776dc3000-7fe776dc5000 rw-p 00000000 00:00 0 
7fe776dc5000-7fe776dd1000 r-xp 00000000 08:01 35360286                   /usr/lib/libgsm.so.1.0.12
7fe776dd1000-7fe776fd1000 ---p 0000c000 08:01 35360286                   /usr/lib/libgsm.so.1.0.12
7fe776fd1000-7fe776fd2000 rw-p 0000c000 08:01 35360286                   /usr/lib/libgsm.so.1.0.12
7fe776fd2000-7fe777019000 r-xp 00000000 08:01 35438733                   /usr/lib/x86_64-linux-gnu/libmp3lame.so.0.0.0
7fe777019000-7fe777219000 ---p 00047000 08:01 35438733                   /usr/lib/x86_64-linux-gnu/libmp3lame.so.0.0.0
7fe777219000-7fe77721a000 r--p 00047000 08:01 35438733                   /usr/lib/x86_64-linux-gnu/libmp3lame.so.0.0.0
7fe77721a000-7fe77721b000 rw-p 00048000 08:01 35438733                   /usr/lib/x86_64-linux-gnu/libmp3lame.so.0.0.0
7fe77721b000-7fe77724c000 rw-p 00000000 00:00 0 
7fe77724c000-7fe77726b000 r-xp 00000000 08:01 35359170                   /usr/lib/libopenjpeg-2.1.3.0.so
7fe77726b000-7fe77746a000 ---p 0001f000 08:01 35359170                   /usr/lib/libopenjpeg-2.1.3.0.so
7fe77746a000-7fe77746c000 rw-p 0001e000 08:01 35359170                   /usr/lib/libopenjpeg-2.1.3.0.so
7fe77746c000-7fe777514000 r-xp 00000000 08:01 35360106                   /usr/lib/libschroedinger-1.0.so.0.10.0
7fe777514000-7fe777714000 ---p 000a8000 08:01 35360106                   /usr/lib/libschroedinger-1.0.so.0.10.0
7fe777714000-7fe777718000 rw-p 000a8000 08:01 35360106                   /usr/lib/libschroedinger-1.0.so.0.10.0
7fe777718000-7fe777730000 r-xp 00000000 08:01 35359787                   /usr/lib/libspeex.so.1.5.0
7fe777730000-7fe777930000 ---p 00018000 08:01 35359787                   /usr/lib/libspeex.so.1.5.0
7fe777930000-7fe777931000 rw-p 00018000 08:01 35359787                   /usr/lib/libspeex.so.1.5.0
7fe777931000-7fe77794a000 r-xp 00000000 08:01 35359213                   /usr/lib/libtheoradec.so.1.1.4
7fe77794a000-7fe777b49000 ---p 00019000 08:01 35359213                   /usr/lib/libtheoradec.so.1.1.4
7fe777b49000-7fe777b4a000 rw-p 00018000 08:01 35359213                   /usr/lib/libtheoradec.so.1.1.4
7fe777b4a000-7fe777b88000 r-xp 00000000 08:01 35359148                   /usr/lib/libtheoraenc.so.1.1.2
7fe777b88000-7fe777d88000 ---p 0003e000 08:01 35359148                   /usr/lib/libtheoraenc.so.1.1.2
7fe777d88000-7fe777d89000 rw-p 0003e000 08:01 35359148                   /usr/lib/libtheoraenc.so.1.1.2
7fe777d89000-7fe777db4000 r-xp 00000000 08:01 35359699                   /usr/lib/libvorbis.so.0.4.5
7fe777db4000-7fe777fb3000 ---p 0002b000 08:01 35359699                   /usr/lib/libvorbis.so.0.4.5
7fe777fb3000-7fe777fb4000 r--p 0002a000 08:01 35359699                   /usr/lib/libvorbis.so.0.4.5
7fe777fb4000-7fe777fb5000 rw-p 0002b000 08:01 35359699                   /usr/lib/libvorbis.so.0.4.5
7fe777fb5000-7fe778268000 r-xp 00000000 08:01 35359002                   /usr/lib/libvorbisenc.so.2.0.8
7fe778268000-7fe778467000 ---p 002b3000 08:01 35359002                   /usr/lib/libvorbisenc.so.2.0.8
7fe778467000-7fe778483000 r--p 002b2000 08:01 35359002                   /usr/lib/libvorbisenc.so.2.0.8
7fe778483000-7fe778484000 rw-p 002ce000 08:01 35359002                   /usr/lib/libvorbisenc.so.2.0.8
7fe778484000-7fe77851a000 r-xp 00000000 08:01 35357291                   /usr/lib/libvpx.so.0.9.7
7fe77851a000-7fe77871a000 ---p 00096000 08:01 35357291                   /usr/lib/libvpx.so.0.9.7
7fe77871a000-7fe77871c000 rw-p 00096000 08:01 35357291                   /usr/lib/libvpx.so.0.9.7
7fe77871c000-7fe778726000 rw-p 00000000 00:00 0 
7fe778726000-7fe7787eb000 r-xp 00000000 08:01 35438620                   /usr/lib/x86_64-linux-gnu/libx264.so.118
7fe7787eb000-7fe7789eb000 ---p 000c5000 08:01 35438620                   /usr/lib/x86_64-linux-gnu/libx264.so.118
7fe7789eb000-7fe7789ed000 r--p 000c5000 08:01 35438620                   /usr/lib/x86_64-linux-gnu/libx264.so.118
7fe7789ed000-7fe7789ee000 rw-p 000c7000 08:01 35438620                   /usr/lib/x86_64-linux-gnu/libx264.so.118
7fe7789ee000-7fe778a29000 rw-p 00000000 00:00 0 
7fe778a29000-7fe778aec000 r-xp 00000000 08:01 35439347                   /usr/lib/x86_64-linux-gnu/libxvidcore.so.4.3
7fe778aec000-7fe778cec000 ---p 000c3000 08:01 35439347                   /usr/lib/x86_64-linux-gnu/libxvidcore.so.4.3
7fe778cec000-7fe778cf7000 rw-p 000c3000 08:01 35439347                   /usr/lib/x86_64-linux-gnu/libxvidcore.so.4.3
7fe778cf7000-7fe778d60000 rw-p 00000000 00:00 0 
7fe778d60000-7fe778d6f000 r-xp 00000000 08:01 100720737                  /lib/x86_64-linux-gnu/libbz2.so.1.0.4
7fe778d6f000-7fe778f6e000 ---p 0000f000 08:01 100720737                  /lib/x86_64-linux-gnu/libbz2.so.1.0.4
7fe778f6e000-7fe778f70000 rw-p 0000e000 08:01 100720737                  /lib/x86_64-linux-gnu/libbz2.so.1.0.4
7fe778f70000-7fe778f87000 r-xp 00000000 08:01 35360437                   /usr/lib/libz.so.1.2.3.4
7fe778f87000-7fe779186000 ---p 00017000 08:01 35360437                   /usr/lib/libz.so.1.2.3.4
7fe779186000-7fe779187000 rw-p 00016000 08:01 35360437                   /usr/lib/libz.so.1.2.3.4
7fe779187000-7fe7791a0000 r-xp 00000000 08:01 35440280                   /usr/lib/x86_64-linux-gnu/librtmp.so.0
7fe7791a0000-7fe77939f000 ---p 00019000 08:01 35440280                   /usr/lib/x86_64-linux-gnu/librtmp.so.0
7fe77939f000-7fe7793a0000 rw-p 00018000 08:01 35440280                   /usr/lib/x86_64-linux-gnu/librtmp.so.0
7fe7793a0000-7fe7793d4000 r-xp 00000000 08:01 35360429                   /usr/lib/libdc1394.so.22.1.5
7fe7793d4000-7fe7795d3000 ---p 00034000 08:01 35360429                   /usr/lib/libdc1394.so.22.1.5
7fe7795d3000-7fe7795d5000 rw-p 00033000 08:01 35360429                   /usr/lib/libdc1394.so.22.1.5
7fe7795d5000-7fe779615000 rw-p 00000000 00:00 0 
7fe779615000-7fe779700000 r-xp 00000000 08:01 35439374                   /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0
7fe779700000-7fe779900000 ---p 000eb000 08:01 35439374                   /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0
7fe779900000-7fe779908000 rw-p 000eb000 08:01 35439374                   /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0
7fe779908000-7fe77991b000 r-xp 00000000 08:01 35440209                   /usr/lib/x86_64-linux-gnu/libjack.so.0.0.28
7fe77991b000-7fe779b1b000 ---p 00013000 08:01 354402Aborted

-- 
Eric Cooper             e c c @ c m u . e d u





More information about the pkg-multimedia-maintainers mailing list