[libav-bugs] [Bug 479] New: libav-tools: avconv segfault when deprecated -deinterlace is used

bugzilla-daemon at aruru.libav.org bugzilla-daemon at aruru.libav.org
Thu Mar 21 21:23:20 CET 2013


http://bugzilla.libav.org/show_bug.cgi?id=479

           Summary: libav-tools: avconv segfault when deprecated
                    -deinterlace is used
           Product: Libav
           Version: 9
          Platform: X86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: utilities
        AssignedTo: bugzilla at libav.org
        ReportedBy: paul at climbing.nl


Created attachment 396
  --> http://bugzilla.libav.org/attachment.cgi?id=396
test.avi

I reported this bug before to Debian, in bug 692877 [1], but I was requested to
report the bug here as well. 

I ran the deprecated -deinterlace option on my test video (attached). avconv
first warns about deprecation, and then segfaults. (See below). Please let me
know if you need more info.

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=692877

paul at wollumbin ~ $ gdb --args avconv -i test.avi -vcodec libxvid -deinterlace
/tmp/test.avi
GNU 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 "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/avconv...Reading symbols from
/usr/lib/debug/.build-id/08/a79812d1dfa969731aede252426379233e4e67.debug...done.
done.
(gdb) run
Starting program: /usr/bin/avconv -i test.avi -vcodec libxvid -deinterlace
/tmp/test.avi
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
avconv version 9.3-6:9.3-1, Copyright (c) 2000-2013 the Libav developers
  built on Mar  2 2013 15:14:47 with gcc 4.6 (Debian 4.6.3-1)
-deinterlace is deprecated, use -filter:v yadif instead
Guessed Channel Layout for  Input Stream #0.1 : mono
Input #0, avi, from 'test.avi':
  Metadata:
    encoder         : Lavf53.20.0
  Duration: 00:00:00.23, start: 0.000000, bitrate: 9890 kb/s
    Stream #0.0: Video: mjpeg, yuvj422p, 640x480, 30 fps, 30 tbr, 30 tbn
    Metadata:
      title           : FUJIFILM AVI STREAM 0100
    Stream #0.1: Audio: pcm_u8, 16000 Hz, mono, u8, 128 kb/s
Output #0, avi, to '/tmp/test.avi':
  Metadata:
    ISFT            : Lavf54.20.3
    Stream #0.0: Video: libxvid, yuv420p, 640x480, q=2-31, 200 kb/s, 30 tbn, 30
tbc
    Metadata:
      title           : FUJIFILM AVI STREAM 0100
    Stream #0.1: Audio: libmp3lame, 16000 Hz, mono, s16p
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg -> libxvid)
  Stream #0:1 -> #0:1 (pcm_u8 -> libmp3lame)
Press ctrl-c to stop encoding

Program received signal SIGSEGV, Segmentation fault.
ff_hscale8to15_4_sse2.loop () at
/build/buildd-libav_9.3-1-amd64-lQVyzm/libav-9.3/libswscale/x86/scale.asm:423
423    
/build/buildd-libav_9.3-1-amd64-lQVyzm/libav-9.3/libswscale/x86/scale.asm: No
such file or directory.
(gdb) bt
#0  ff_hscale8to15_4_sse2.loop () at
/build/buildd-libav_9.3-1-amd64-lQVyzm/libav-9.3/libswscale/x86/scale.asm:423
#1  0x00007ffff6460d7d in hyscale (isAlpha=0, pal=0x633100,
formatConvBuffer=0x64aec0 "\b\304\327\365\377\177", hLumFilterSize=4, 
    hLumFilterPos=0x644680, hLumFilter=0x6555a0, xInc=65536, srcW=640,
src_in=0x7fffffffdc20, dstWidth=640, dst=0x657180, c=0x633080)
    at
/build/buildd-libav_9.3-1-amd64-lQVyzm/libav-9.3/libswscale/swscale.c:275
#2  swScale (c=0x633080, src=0x7fffffffdcd0, srcStride=0x7fffffffdd10,
srcSliceY=0, srcSliceH=480, dst=0x7fffffffdcf0, 
    dstStride=0x7fffffffdd20) at
/build/buildd-libav_9.3-1-amd64-lQVyzm/libav-9.3/libswscale/swscale.c:504
#3  0x00007ffff6468a67 in sws_scale (c=0x633080, srcSlice=<optimized out>,
srcStride=<optimized out>, srcSliceY=0, srcSliceH=480, 
    dst=<optimized out>, dstStride=0x948150) at
/build/buildd-libav_9.3-1-amd64-lQVyzm/libav-9.3/libswscale/swscale_unscaled.c:1152
#4  0x00007ffff79ae93b in filter_frame (link=0x64a660, in=0x947e20)
    at
/build/buildd-libav_9.3-1-amd64-lQVyzm/libav-9.3/libavfilter/vf_scale.c:288
#5  0x00007ffff79a035a in request_frame (link=0x6686a0) at
/build/buildd-libav_9.3-1-amd64-lQVyzm/libav-9.3/libavfilter/buffersrc.c:330
#6  0x00007ffff79a11bf in request_frame (outlink=0x64ac20) at
/build/buildd-libav_9.3-1-amd64-lQVyzm/libav-9.3/libavfilter/fifo.c:229
#7  0x00007ffff799fff6 in av_buffersink_read (ctx=<optimized out>,
buf=0x7fffffffdee0)
    at
/build/buildd-libav_9.3-1-amd64-lQVyzm/libav-9.3/libavfilter/buffersink.c:70
#8  0x00000000004101f3 in poll_filter (ost=0x64bac0) at
/build/buildd-libav_9.3-1-amd64-lQVyzm/libav-9.3/avconv.c:681
#9  poll_filters () at
/build/buildd-libav_9.3-1-amd64-lQVyzm/libav-9.3/avconv.c:757
#10 0x00000000004069b8 in transcode () at
/build/buildd-libav_9.3-1-amd64-lQVyzm/libav-9.3/avconv.c:2231
#11 main (argc=<optimized out>, argv=<optimized out>) at
/build/buildd-libav_9.3-1-amd64-lQVyzm/libav-9.3/avconv.c:2386
(gdb) quit
A debugging session is active.

        Inferior 1 [process 9947] will be killed.

Quit anyway? (y or n) y

-- 
Configure bugmail: http://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