[libav-bugs] [Bug 473] New: Segmentation Fault when trying to attach font metadata to MKV video

bugzilla-daemon at aruru.libav.org bugzilla-daemon at aruru.libav.org
Thu Mar 14 04:57:34 CET 2013


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

           Summary: Segmentation Fault when trying to attach font metadata
                    to MKV video
           Product: Libav
           Version: git HEAD
          Platform: X86
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: Normal
         Component: utilities
        AssignedTo: bugzilla at libav.org
        ReportedBy: swaeku at gmx.com


$ gdb avconv
GNU gdb (GDB) 7.5-ubuntu
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...(no debugging symbols found)...done.
(gdb) r -i PIANO_FOREST.ISO -b:v 800k -attach
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf -metadata:s:3
mimetype=application/x-truetype-font test.mkv
Starting program: /usr/bin/avconv -i PIANO_FOREST.ISO -b:v 800k -attach
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf -metadata:s:3
mimetype=application/x-truetype-font test.mkv
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
avconv version 0.8.5-6:0.8.5-0ubuntu0.12.10.1, Copyright (c) 2000-2012 the
Libav developers
  built on Jan 24 2013 14:49:20 with gcc 4.7.2
[mpeg @ 0x642b80] max_analyze_duration reached
Input #0, mpeg, from 'PIANO_FOREST.ISO':
  Duration: 00:00:48.04, start: 0.280000, bitrate: 1177874 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 16:15
DAR 4:3], 7900 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0.1[0x20]: Subtitle: dvdsub
    Stream #0.2[0x21]: Subtitle: dvdsub
    Stream #0.3[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
    Stream #0.4[0x1d7]: Audio: mp2, 0 channels
File 'test.mkv' already exists. Overwrite ? [y/N] y
ret 1, stream_spec 3
[buffer @ 0x650bc0] w:720 h:576 pixfmt:yuv420p
[New Thread 0x7fffed1cd700 (LWP 5864)]
[New Thread 0x7fffec9cc700 (LWP 5865)]
[New Thread 0x7fffec1cb700 (LWP 5866)]
[New Thread 0x7fffeb9ca700 (LWP 5867)]
[New Thread 0x7fffeb1c9700 (LWP 5868)]
[New Thread 0x7fffea9c8700 (LWP 5869)]
[New Thread 0x7fffea1c7700 (LWP 5870)]
[New Thread 0x7fffe99c6700 (LWP 5871)]
[New Thread 0x7fffe91c5700 (LWP 5872)]
[New Thread 0x7fffe89c4700 (LWP 5873)]
Output #0, matroska, to 'test.mkv':
  Metadata:
    encoder         : Lavf53.21.1
    Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 16:15 DAR 4:3], q=2-31,
800 kb/s, 1k tbn, 25 tbc
    Stream #0.1: Audio: libvorbis, 48000 Hz, stereo, s16
    Stream #0.2: Subtitle: ass, 200 kb/s
    Stream #0.3: Attachment: [0][0][0][0] / 0x0000, 200 kb/s
    Metadata:
      filename        : DejaVuSans.ttf
      mimetype        : application/x-truetype-font
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> mpeg4)
  Stream #0:3 -> #0:1 (ac3 -> libvorbis)
  Stream #0:1 -> #0:2 (dvdsub -> ass)
  File /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf -> Stream #0:3
Press ctrl-c to stop encoding

Program received signal SIGSEGV, Segmentation fault.
0x00000000004066d4 in ?? ()
(gdb) bt
#0  0x00000000004066d4 in ?? ()
#1  0x00007ffff58c576d in __libc_start_main () from
/lib/x86_64-linux-gnu/libc.so.6
#2  0x0000000000407c65 in ?? ()
#3  0x00007fffffffd928 in ?? ()
#4  0x000000000000001c in ?? ()
#5  0x000000000000000a in ?? ()
#6  0x00007fffffffdd9f in ?? ()
#7  0x00007fffffffddaf in ?? ()
#8  0x00007fffffffddb2 in ?? ()
#9  0x00007fffffffddc3 in ?? ()
#10 0x00007fffffffddc8 in ?? ()
#11 0x00007fffffffddcd in ?? ()
#12 0x00007fffffffddd5 in ?? ()
#13 0x00007fffffffde09 in ?? ()
#14 0x00007fffffffde17 in ?? ()
#15 0x00007fffffffde3c in ?? ()
#16 0x0000000000000000 in ?? ()
(gdb) disass $pc-32,$pc+32
Dump of assembler code from 0x4066b4 to 0x4066f4:
   0x00000000004066b4:    cmp    %al,(%rcx)
   0x00000000004066b6:    add    %al,(%rax)
   0x00000000004066b8:    mov    %rcx,%rdi
   0x00000000004066bb:    shl    $0x7,%rdi
   0x00000000004066bf:    lea    (%rdi,%rcx,8),%r8
   0x00000000004066c3:    mov    0x98(%rsp),%rdi
   0x00000000004066cb:    add    %rdx,%r8
   0x00000000004066ce:    mov    (%r8),%ecx
   0x00000000004066d1:    movslq %ecx,%rdx
=> 0x00000000004066d4:    cmpb   $0x0,(%rdi,%rdx,1)
   0x00000000004066d8:    jne    0x4067f0
   0x00000000004066de:    mov    0x20(%rsi),%rdi
   0x00000000004066e2:    test   %rdi,%rdi
   0x00000000004066e5:    je     0x406710
   0x00000000004066e7:    xor    %esi,%esi
   0x00000000004066e9:    mov    $0x1,%edx
   0x00000000004066ee:    mov    %r8,0x18(%rsp)
   0x00000000004066f3:    callq  0x4044f0 <avio_seek at plt>
End of assembler dump.
(gdb) info all-registers
rax            0x4    4
rbx            0x646b90    6581136
rcx            0xbf800000    3212836864
rdx            0xffffffffbf800000    -1082130432
rsi            0x645120    6574368
rdi            0x64c9c0    6605248
rbp            0x3    0x3
rsp            0x7fffffffc7b0    0x7fffffffc7b0
r8             0x64c3d8    6603736
r9             0x0    0
r10            0x3e8    1000
r11            0x7ffff76c1500    140737344443648
r12            0x7b0    1968
r13            0x642180    6562176
r14            0x642180    6562176
r15            0xffffffffffff63c0    -40000
rip            0x4066d4    0x4066d4
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(0x8080808080808080)    (raw 0xffff8080808080808080)
st1            -nan(0x80008000800080)    (raw 0xffff0080008000800080)
st2            -nan(0x8080808080808080)    (raw 0xffff8080808080808080)
st3            -nan(0x80008000800080)    (raw 0xffff0080008000800080)
st4            -nan(0x8080808080808080)    (raw 0xffff8080808080808080)
st5            -nan(0x80008000800080)    (raw 0xffff0080008000800080)
st6            0.010737659167264571302894782083015013    (raw
0x3ff8afed01bd6030746e)
st7            0.99994234967602390229575448632459711    (raw
0x3ffefffc38c9be717754)
fctrl          0x37f    895
fstat          0x220    544
ftag           0xffff    65535
fiseg          0x7fff    32767
fioff          0xf5ea7137    -169184969
foseg          0x7fff    32767
fooff          0xffffc708    -14584
fop            0x0    0
mxcsr          0x1fa0    [ PE IM DM ZM OM UM PM ]
ymm0           {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double
= {0x0, 0x0, 0x0, 0x0}, 
  v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>},
v8_int32 = {0x0, 0x0, 
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 =
{
    0x00000000000000000000000000000000, 0x00000000000000000000000000000000}}
ymm1           {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double
= {0x0, 0x0, 0x0, 0x0}, 
  v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>},
v8_int32 = {0x0, 0x0, 
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 =
{
    0x00000000000000000000000000000000, 0x00000000000000000000000000000000}}
ymm2           {v8_float = {0x0, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double
= {0x3e8, 0x0, 0x0, 
    0x0}, v32_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x40, 0x8f, 0x40, 0x0 <repeats
24 times>}, v16_int16 = {
    0x0, 0x0, 0x4000, 0x408f, 0x0 <repeats 12 times>}, v8_int32 = {0x0,
0x408f4000, 0x0, 0x0, 0x0, 
    0x0, 0x0, 0x0}, v4_int64 = {0x408f400000000000, 0x0, 0x0, 0x0}, v2_int128 =
{
    0x0000000000000000408f400000000000, 0x00000000000000000000000000000000}}
ymm3           {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double
= {0x8000000000000000, 
    0x0, 0x0, 0x0}, v32_int8 = {0x0, 0x0, 0xff, 0x0, 0x0, 0x0, 0x0, 0xff, 0x0
<repeats 24 times>}, 
  v16_int16 = {0x0, 0xff, 0x0, 0xff00, 0x0 <repeats 12 times>}, v8_int32 =
{0xff0000, 0xff000000, 0x0, 
    0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0xff00000000ff0000, 0x0, 0x0, 0x0},
v2_int128 = {
    0x0000000000000000ff00000000ff0000, 0x00000000000000000000000000000000}}
ymm4           {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double
= {0x0, 
    0x8000000000000000, 0x0, 0x0}, v32_int8 = {0xc, 0x75, 0x6e, 0x69, 0x30,
0x36, 0x38, 0x31, 0x2e, 
    0x66, 0x69, 0x6e, 0x61, 0xc, 0x75, 0x6e, 0x0 <repeats 16 times>}, v16_int16
= {0x750c, 0x696e, 
    0x3630, 0x3138, 0x662e, 0x6e69, 0xc61, 0x6e75, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0}, 
  v8_int32 = {0x696e750c, 0x31383630, 0x6e69662e, 0x6e750c61, 0x0, 0x0, 0x0,
0x0}, v4_int64 = {
    0x31383630696e750c, 0x6e750c616e69662e, 0x0, 0x0}, v2_int128 = {
    0x6e750c616e69662e31383630696e750c, 0x00000000000000000000000000000000}}
ymm5           {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double
= {0x0, 
    0x8000000000000000, 0x0, 0x0}, v32_int8 = {0x6e, 0x69, 0x74, 0xc, 0x75,
0x6e, 0x69, 0x30, 0x36, 
    0x37, 0x44, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x0 <repeats 16 times>},
v16_int16 = {0x696e, 0xc74, 
    0x6e75, 0x3069, 0x3736, 0x2e44, 0x656d, 0x6964, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0}, 
  v8_int32 = {0xc74696e, 0x30696e75, 0x2e443736, 0x6964656d, 0x0, 0x0, 0x0,
0x0}, v4_int64 = {
    0x30696e750c74696e, 0x6964656d2e443736, 0x0, 0x0}, v2_int128 = {
    0x6964656d2e44373630696e750c74696e, 0x00000000000000000000000000000000}}
ymm6           {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double
= {0x8000000000000000, 
    0x8000000000000000, 0x0, 0x0}, v32_int8 = {0x44, 0x2e, 0x66, 0x69, 0x6e,
0x61, 0xc, 0x75, 0x6e, 
    0x69, 0x30, 0x36, 0x37, 0x44, 0x2e, 0x69, 0x0 <repeats 16 times>},
v16_int16 = {0x2e44, 0x6966, 
    0x616e, 0x750c, 0x696e, 0x3630, 0x4437, 0x692e, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0}, 
  v8_int32 = {0x69662e44, 0x750c616e, 0x3630696e, 0x692e4437, 0x0, 0x0, 0x0,
0x0}, v4_int64 = {
    0x750c616e69662e44, 0x692e44373630696e, 0x0, 0x0}, v2_int128 = {
    0x692e44373630696e750c616e69662e44, 0x00000000000000000000000000000000}}
ymm7           {v8_float = {0xb7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double
= {0x8000000000000000, 
    0x0, 0x0, 0x0}, v32_int8 = {0x30, 0x36, 0x37, 0x43, 0x2e, 0x6d, 0x65, 0x64,
0x69, 0xc, 0x75, 0x6e, 
    0x69, 0x30, 0x36, 0x37, 0x0 <repeats 16 times>}, v16_int16 = {0x3630,
0x4337, 0x6d2e, 0x6465, 
    0xc69, 0x6e75, 0x3069, 0x3736, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v8_int32 = {0x43373630, 
    0x64656d2e, 0x6e750c69, 0x37363069, 0x0, 0x0, 0x0, 0x0}, v4_int64 =
{0x64656d2e43373630, 
    0x373630696e750c69, 0x0, 0x0}, v2_int128 =
{0x373630696e750c6964656d2e43373630, 
    0x00000000000000000000000000000000}}
ymm8           {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double
= {0x0, 
    0x8000000000000000, 0x0, 0x0}, v32_int8 = {0x75, 0x6e, 0x69, 0x30, 0x36,
0x37, 0x43, 0x2e, 0x69, 
    0x6e, 0x69, 0x74, 0xc, 0x75, 0x6e, 0x69, 0x0 <repeats 16 times>}, v16_int16
= {0x6e75, 0x3069, 
    0x3736, 0x2e43, 0x6e69, 0x7469, 0x750c, 0x696e, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0}, 
  v8_int32 = {0x30696e75, 0x2e433736, 0x74696e69, 0x696e750c, 0x0, 0x0, 0x0,
0x0}, v4_int64 = {
    0x2e43373630696e75, 0x696e750c74696e69, 0x0, 0x0}, v2_int128 = {
    0x696e750c74696e692e43373630696e75, 0x00000000000000000000000000000000}}
ymm9           {v8_float = {0x0, 0xb7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double
= {0x173630696e750c, 
    0x8000000000000000, 0x0, 0x0}, v32_int8 = {0xc, 0x75, 0x6e, 0x69, 0x30,
0x36, 0x37, 0x43, 0x2e, 
    0x66, 0x69, 0x6e, 0x61, 0xc, 0x75, 0x6e, 0x0 <repeats 16 times>}, v16_int16
= {0x750c, 0x696e, 
    0x3630, 0x4337, 0x662e, 0x6e69, 0xc61, 0x6e75, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0}, 
  v8_int32 = {0x696e750c, 0x43373630, 0x6e69662e, 0x6e750c61, 0x0, 0x0, 0x0,
0x0}, v4_int64 = {
    0x43373630696e750c, 0x6e750c616e69662e, 0x0, 0x0}, v2_int128 = {
    0x6e750c616e69662e43373630696e750c, 0x00000000000000000000000000000000}}
ymm10          {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double
= {0x0, 0x0, 0x0, 0x0}, 
  v32_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80, 0x0 <repeats 24 times>},
v16_int16 = {0x0, 0x0, 
    0x0, 0x8000, 0x0 <repeats 12 times>}, v8_int32 = {0x0, 0x80000000, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0}, 
  v4_int64 = {0x8000000000000000, 0x0, 0x0, 0x0}, v2_int128 =
{0x00000000000000008000000000000000, 
    0x00000000000000000000000000000000}}
ymm11          {v8_float = {0xffffcfa4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v4_double = {0x0, 0x0, 
    0x0, 0x0}, v32_int8 = {0x16, 0x70, 0x41, 0xc6, 0x58, 0xac, 0x98, 0xb5, 0x0
<repeats 24 times>}, 
  v16_int16 = {0x7016, 0xc641, 0xac58, 0xb598, 0x0 <repeats 12 times>},
v8_int32 = {0xc6417016, 
    0xb598ac58, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0xb598ac58c6417016,
0x0, 0x0, 0x0}, 
  v2_int128 = {0x0000000000000000b598ac58c6417016,
0x00000000000000000000000000000000}}
ymm12          {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double
= {0x0, 0x0, 0x0, 0x0}, 
  v32_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80, 0x0 <repeats 24 times>},
v16_int16 = {0x0, 0x0, 
    0x0, 0x8000, 0x0 <repeats 12 times>}, v8_int32 = {0x0, 0x80000000, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0}, 
  v4_int64 = {0x8000000000000000, 0x0, 0x0, 0x0}, v2_int128 =
{0x00000000000000008000000000000000, 
    0x00000000000000000000000000000000}}
ymm13          {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double
= {0x0, 0x0, 0x0, 0x0}, 
  v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>},
v8_int32 = {0x0, 0x0, 
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 =
{
    0x00000000000000000000000000000000, 0x00000000000000000000000000000000}}
ymm14          {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double
= {0x0, 0x0, 0x0, 0x0}, 
  v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>},
v8_int32 = {0x0, 0x0, 
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 =
{
    0x00000000000000000000000000000000, 0x00000000000000000000000000000000}}
ymm15          {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double
= {0x0, 0x0, 0x0, 0x0}, 
  v32_int8 = {0xa0, 0x83, 0x47, 0x3, 0x1d, 0x3c, 0x8a, 0xb5, 0x0 <repeats 24
times>}, v16_int16 = {
    0x83a0, 0x347, 0x3c1d, 0xb58a, 0x0 <repeats 12 times>}, v8_int32 =
{0x34783a0, 0xb58a3c1d, 0x0, 
    0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0xb58a3c1d034783a0, 0x0, 0x0, 0x0},
v2_int128 = {
    0x0000000000000000b58a3c1d034783a0, 0x00000000000000000000000000000000}}

-- 
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