Opened 4 years ago

Closed 4 years ago

#3476 closed defect (fixed)

SIGABRT when stream copying mp3 containing video stream

Reported by: llogan Owned by:
Priority: important Component: avformat
Version: git-master Keywords: mp3 regression crash abort
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Possibly caused by 7546ac2. Including -vn does not cause issue.

$ gdb ./ffmpeg_g
GNU gdb (GDB) 7.7
Copyright (C) 2014 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-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./ffmpeg_g...done.
(gdb) r -y -i fate-suite/exif/embedded_small.mp3 -c copy out.mp3
Starting program: /home/lou/encode/ffmpeg/ffmpeg_g -y -i fate-suite/exif/embedded_small.mp3 -c copy out.mp3
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
ffmpeg version N-61566-gaa1f380 Copyright (c) 2000-2014 the FFmpeg developers
  built on Mar 17 2014 16:33:23 with gcc 4.8.2 (GCC) 20140206 (prerelease)
  configuration: 
  libavutil      52. 67.100 / 52. 67.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 34.101 / 55. 34.101
  libavdevice    55. 11.100 / 55. 11.100
  libavfilter     4.  3.100 /  4.  3.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 18.100 /  0. 18.100
Input #0, mp3, from 'fate-suite/exif/embedded_small.mp3':
  Metadata:
    title           : Cuando Me Enamoro
    encoded_by      : Lavf52.31.0
    publisher       : Universal Music Latino
    genre           : Latin
    album           : Cuando Me Enamoro
    album_artist    : Enrique Iglesias
    disc            : 1/1
    track           : 1
    composer        : Enrique Iglesias
    artist          : Enrique Iglesias ft. Juan Luis Guerra
    date            : 2010
    encoder         : Lavf55.13.103
  Duration: 00:00:00.55, start: 0.025056, bitrate: 365 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
    Stream #0:1: Video: mjpeg, yuvj420p(pc), 263x263 [SAR 96:96 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           : 
      comment         : Other
Output #0, mp3, to 'out.mp3':
  Metadata:
    TIT2            : Cuando Me Enamoro
    TENC            : Lavf52.31.0
    TPUB            : Universal Music Latino
    TCON            : Latin
    TALB            : Cuando Me Enamoro
    TPE2            : Enrique Iglesias
    TPOS            : 1/1
    TRCK            : 1
    TCOM            : Enrique Iglesias
    TPE1            : Enrique Iglesias ft. Juan Luis Guerra
    TDRL            : 2010
    TSSE            : Lavf55.34.101
    Stream #0:0: Video: mjpeg, yuvj420p, 263x263 [SAR 96:96 DAR 1:1], q=2-31, 90k tbn, 90k tbc
    Metadata:
      title           : 
      comment         : Other
    Stream #0:1: Audio: mp3, 44100 Hz, stereo, 128 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
*** Error in `/home/lou/encode/ffmpeg/ffmpeg_g': free(): invalid pointer: 0x00007ffff6177738 ***
======= Backtrace: =========
/usr/lib/libc.so.6(+0x731ff)[0x7ffff5e481ff]
/usr/lib/libc.so.6(+0x789ae)[0x7ffff5e4d9ae]
/usr/lib/libc.so.6(+0x796b6)[0x7ffff5e4e6b6]
/home/lou/encode/ffmpeg/ffmpeg_g[0x5f7db5]
/home/lou/encode/ffmpeg/ffmpeg_g[0x5412e5]
/home/lou/encode/ffmpeg/ffmpeg_g[0x55398c]
/home/lou/encode/ffmpeg/ffmpeg_g[0x4765ee]
/home/lou/encode/ffmpeg/ffmpeg_g[0x47919c]
/home/lou/encode/ffmpeg/ffmpeg_g[0x4628f9]
/usr/lib/libc.so.6(__libc_start_main+0xf5)[0x7ffff5df6b05]
/home/lou/encode/ffmpeg/ffmpeg_g[0x463b59]
======= Memory map: ========
00400000-00e9a000 r-xp 00000000 08:04 24000302                           /home/lou/encode/ffmpeg/ffmpeg_g
0109a000-010cb000 rw-p 00a9a000 08:04 24000302                           /home/lou/encode/ffmpeg/ffmpeg_g
010cb000-017cf000 rw-p 00000000 00:00 0                                  [heap]
7ffff4dd5000-7ffff4dea000 r-xp 00000000 08:03 14688                      /usr/lib/libgcc_s.so.1
7ffff4dea000-7ffff4fea000 ---p 00015000 08:03 14688                      /usr/lib/libgcc_s.so.1
7ffff4fea000-7ffff4feb000 rw-p 00015000 08:03 14688                      /usr/lib/libgcc_s.so.1
7ffff4feb000-7ffff4ff0000 r-xp 00000000 08:03 16430                      /usr/lib/libXdmcp.so.6.0.0
7ffff4ff0000-7ffff51ef000 ---p 00005000 08:03 16430                      /usr/lib/libXdmcp.so.6.0.0
7ffff51ef000-7ffff51f0000 r--p 00004000 08:03 16430                      /usr/lib/libXdmcp.so.6.0.0
7ffff51f0000-7ffff51f1000 rw-p 00005000 08:03 16430                      /usr/lib/libXdmcp.so.6.0.0
7ffff51f1000-7ffff51f3000 r-xp 00000000 08:03 16434                      /usr/lib/libXau.so.6.0.0
7ffff51f3000-7ffff53f3000 ---p 00002000 08:03 16434                      /usr/lib/libXau.so.6.0.0
7ffff53f3000-7ffff53f4000 r--p 00002000 08:03 16434                      /usr/lib/libXau.so.6.0.0
7ffff53f4000-7ffff53f5000 rw-p 00003000 08:03 16434                      /usr/lib/libXau.so.6.0.0
7ffff53f5000-7ffff53fc000 r-xp 00000000 08:03 11174                      /usr/lib/librt-2.19.so
7ffff53fc000-7ffff55fb000 ---p 00007000 08:03 11174                      /usr/lib/librt-2.19.so
7ffff55fb000-7ffff55fc000 r--p 00006000 08:03 11174                      /usr/lib/librt-2.19.so
7ffff55fc000-7ffff55fd000 rw-p 00007000 08:03 11174                      /usr/lib/librt-2.19.so
7ffff55fd000-7ffff57a7000 r-xp 00000000 08:03 838                        /usr/lib/libdb-5.3.so
7ffff57a7000-7ffff59a7000 ---p 001aa000 08:03 838                        /usr/lib/libdb-5.3.so
7ffff59a7000-7ffff59ae000 r--p 001aa000 08:03 838                        /usr/lib/libdb-5.3.so
7ffff59ae000-7ffff59b1000 rw-p 001b1000 08:03 838                        /usr/lib/libdb-5.3.so
7ffff59b1000-7ffff59b4000 r-xp 00000000 08:03 10477                      /usr/lib/libdl-2.19.so
7ffff59b4000-7ffff5bb3000 ---p 00003000 08:03 10477                      /usr/lib/libdl-2.19.so
7ffff5bb3000-7ffff5bb4000 r--p 00002000 08:03 10477                      /usr/lib/libdl-2.19.so
7ffff5bb4000-7ffff5bb5000 rw-p 00003000 08:03 10477                      /usr/lib/libdl-2.19.so
7ffff5bb5000-7ffff5bd3000 r-xp 00000000 08:03 30462                      /usr/lib/libxcb.so.1.1.0
7ffff5bd3000-7ffff5dd3000 ---p 0001e000 08:03 30462                      /usr/lib/libxcb.so.1.1.0
7ffff5dd3000-7ffff5dd4000 r--p 0001e000 08:03 30462                      /usr/lib/libxcb.so.1.1.0
7ffff5dd4000-7ffff5dd5000 rw-p 0001f000 08:03 30462                      /usr/lib/libxcb.so.1.1.0
7ffff5dd5000-7ffff5f73000 r-xp 00000000 08:03 11270                      /usr/lib/libc-2.19.so
7ffff5f73000-7ffff6173000 ---p 0019e000 08:03 11270                      /usr/lib/libc-2.19.so
7ffff6173000-7ffff6177000 r--p 0019e000 08:03 11270                      /usr/lib/libc-2.19.so
7ffff6177000-7ffff6179000 rw-p 001a2000 08:03 11270                      /usr/lib/libc-2.19.so
7ffff6179000-7ffff617d000 rw-p 00000000 00:00 0 
7ffff617d000-7ffff6180000 r-xp 00000000 08:03 30828                      /usr/lib/libvdpau.so.1.0.0
7ffff6180000-7ffff637f000 ---p 00003000 08:03 30828                      /usr/lib/libvdpau.so.1.0.0
7ffff637f000-7ffff6380000 r--p 00002000 08:03 30828                      /usr/lib/libvdpau.so.1.0.0
7ffff6380000-7ffff6381000 rw-p 00003000 08:03 30828                      /usr/lib/libvdpau.so.1.0.0
7ffff6381000-7ffff6396000 r-xp 00000000 08:03 10366                      /usr/lib/libz.so.1.2.8
7ffff6396000-7ffff6595000 ---p 00015000 08:03 10366                      /usr/lib/libz.so.1.2.8
7ffff6595000-7ffff6596000 r--p 00014000 08:03 10366                      /usr/lib/libz.so.1.2.8
7ffff6596000-7ffff6597000 rw-p 00015000 08:03 10366                      /usr/lib/libz.so.1.2.8
7ffff6597000-7ffff65a6000 r-xp 00000000 08:03 4156                       /usr/lib/libbz2.so.1.0.6
7ffff65a6000-7ffff67a5000 ---p 0000f000 08:03 4156                       /usr/lib/libbz2.so.1.0.6
7ffff67a5000-7ffff67a7000 rw-p 0000e000 08:03 4156                       /usr/lib/libbz2.so.1.0.6
7ffff67a7000-7ffff68a7000 r-xp 00000000 08:03 9141                       /usr/lib/libm-2.19.so
7ffff68a7000-7ffff6aa6000 ---p 00100000 08:03 9141                       /usr/lib/libm-2.19.so
7ffff6aa6000-7ffff6aa7000 r--p 000ff000 08:03 9141                       /usr/lib/libm-2.19.so
7ffff6aa7000-7ffff6aa8000 rw-p 00100000 08:03 9141                       /usr/lib/libm-2.19.so
7ffff6aa8000-7ffff6ac0000 r-xp 00000000 08:03 11490                      /usr/lib/libpthread-2.19.so
7ffff6ac0000-7ffff6cbf000 ---p 00018000 08:03 11490                      /usr/lib/libpthread-2.19.so
7ffff6cbf000-7ffff6cc0000 r--p 00017000 08:03 11490                      /usr/lib/libpthread-2.19.so
7ffff6cc0000-7ffff6cc1000 rw-p 00018000 08:03 11490                      /usr/lib/libpthread-2.19.so
7ffff6cc1000-7ffff6cc5000 rw-p 00000000 00:00 0 
7ffff6cc5000-7ffff6d2d000 r-xp 00000000 08:03 4957                       /usr/lib/libSDL-1.2.so.0.11.4
7ffff6d2d000-7ffff6f2d000 ---p 00068000 08:03 4957                       /usr/lib/libSDL-1.2.so.0.11.4
7ffff6f2d000-7ffff6f2e000 r--p 00068000 08:03 4957                       /usr/lib/libSDL-1.2.so.0.11.4
7ffff6f2e000-7ffff6f2f000 rw-p 00069000 08:03 4957                       /usr/lib/libSDL-1.2.so.0.11.4
7ffff6f2f000-7ffff6f5d000 rw-p 00000000 00:00 0 
7ffff6f5d000-7ffff704c000 r-xp 00000000 08:03 5596                       /usr/lib/libasound.so.2.0.0
7ffff704c000-7ffff724b000 ---p 000ef000 08:03 5596                       /usr/lib/libasound.so.2.0.0
7ffff724b000-7ffff7252000 r--p 000ee000 08:03 5596                       /usr/lib/libasound.so.2.0.0
7ffff7252000-7ffff7254000 rw-p 000f5000 08:03 5596                       /usr/lib/libasound.so.2.0.0
7ffff7254000-7ffff726a000 r-xp 00000000 08:03 11036                      /usr/lib/libjack.so.0.0.28
7ffff726a000-7ffff7469000 ---p 00016000 08:03 11036                      /usr/lib/libjack.so.0.0.28
7ffff7469000-7ffff746a000 r--p 00015000 08:03 11036                      /usr/lib/libjack.so.0.0.28
7ffff746a000-7ffff746b000 rw-p 00016000 08:03 11036                      /usr/lib/libjack.so.0.0.28
7ffff746b000-7ffff7474000 rw-p 00000000 00:00 0 
7ffff7474000-7ffff7488000 r-xp 00000000 08:03 1797                       /usr/lib/libva.so.1.3400.0
7ffff7488000-7ffff7687000 ---p 00014000 08:03 1797                       /usr/lib/libva.so.1.3400.0
7ffff7687000-7ffff7688000 r--p 00013000 08:03 1797                       /usr/lib/libva.so.1.3400.0
7ffff7688000-7ffff7689000 rw-p 00014000 08:03 1797                       /usr/lib/libva.so.1.3400.0
7ffff7689000-7ffff768a000 rw-p 00000000 00:00 0 
7ffff768a000-7ffff769b000 r-xp 00000000 08:03 23724                      /usr/lib/libXext.so.6.4.0
7ffff769b000-7ffff789a000 ---p 00011000 08:03 23724                      /usr/lib/libXext.so.6.4.0
7ffff789a000-7ffff789b000 r--p 00010000 08:03 23724                      /usr/lib/libXext.so.6.4.0
7ffff789b000-7ffff789c000 rw-p 00011000 08:03 23724                      /usr/lib/libXext.so.6.4.0
7ffff789c000-7ffff79d1000 r-xp 00000000 08:03 13368                      /usr/lib/libX11.so.6.3.0
7ffff79d1000-7ffff7bd1000 ---p 00135000 08:03 13368                      /usr/lib/libX11.so.6.3.0
7ffff7bd1000-7ffff7bd2000 r--p 00135000 08:03 13368                      /usr/lib/libX11.so.6.3.0
7ffff7bd2000-7ffff7bd7000 rw-p 00136000 08:03 13368                      /usr/lib/libX11.so.6.3.0
7ffff7bd7000-7ffff7bdb000 r-xp 00000000 08:03 20973                      /usr/lib/libXv.so.1.0.0
7ffff7bdb000-7ffff7dda000 ---p 00004000 08:03 20973                      /usr/lib/libXv.so.1.0.0
7ffff7dda000-7ffff7ddb000 r--p 00003000 08:03 20973                      /usr/lib/libXv.so.1.0.0
7ffff7ddb000-7ffff7ddc000 rw-p 00004000 08:03 20973                      /usr/lib/libXv.so.1.0.0
7ffff7ddc000-7ffff7dfc000 r-xp 00000000 08:03 10598                      /usr/lib/ld-2.19.so
7ffff7fcd000-7ffff7fd8000 rw-p 00000000 00:00 0 
7ffff7ff9000-7ffff7ffa000 rw-p 00000000 00:00 0 
7ffff7ffa000-7ffff7ffc000 r-xp 00000000 00:00 0                          [vdso]
7ffff7ffc000-7ffff7ffd000 r--p 00020000 08:03 10598                      /usr/lib/ld-2.19.so
7ffff7ffd000-7ffff7ffe000 rw-p 00021000 08:03 10598                      /usr/lib/ld-2.19.so
7ffff7ffe000-7ffff7fff000 rw-p 00000000 00:00 0 
7ffffffde000-7ffffffff000 rw-p 00000000 00:00 0                          [stack]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

Program received signal SIGABRT, Aborted.
0x00007ffff5e0a389 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007ffff5e0a389 in raise () from /usr/lib/libc.so.6
#1  0x00007ffff5e0b788 in abort () from /usr/lib/libc.so.6
#2  0x00007ffff5e48204 in __libc_message () from /usr/lib/libc.so.6
#3  0x00007ffff5e4d9ae in malloc_printerr () from /usr/lib/libc.so.6
#4  0x00007ffff5e4e6b6 in _int_free () from /usr/lib/libc.so.6
#5  0x00000000005f7db5 in av_packet_free_side_data (pkt=0x17777e0) at libavcodec/avpacket.c:275
#6  av_free_packet (pkt=0x17777e0) at libavcodec/avpacket.c:295
#7  0x00000000005412e5 in mp3_queue_flush (s=0x1777e00) at libavformat/mp3enc.c:313
#8  mp3_write_packet (s=0x1777e00, pkt=<optimized out>) at libavformat/mp3enc.c:453
#9  0x000000000055398c in write_packet (pkt=0x7fffffffe2a0, s=0x1777e00) at libavformat/mux.c:569
#10 av_interleaved_write_frame (s=s@entry=0x1777e00, pkt=0x0, pkt@entry=0x7fffffffe500) at libavformat/mux.c:875
#11 0x00000000004765ee in write_frame (s=0x1777e00, pkt=pkt@entry=0x7fffffffe500, ost=ost@entry=0x178f080) at ffmpeg.c:658
#12 0x000000000047919c in do_streamcopy (ist=ist@entry=0x17c4360, ost=0x178f080, pkt=pkt@entry=0x7fffffffe8a0) at ffmpeg.c:1572
#13 0x00000000004628f9 in output_packet (pkt=0x7fffffffe8a0, ist=0x17c4360) at ffmpeg.c:2043
#14 process_input (file_index=<optimized out>) at ffmpeg.c:3296
#15 transcode_step () at ffmpeg.c:3390
#16 transcode () at ffmpeg.c:3442
#17 main (argc=<optimized out>, argv=<optimized out>) at ffmpeg.c:3622
(gdb) disass $pc-32,$pc+32
Dump of assembler code from 0x7ffff5e0a369 to 0x7ffff5e0a3a9:
   0x00007ffff5e0a369 <raise+25>:       add    %al,(%rax)
   0x00007ffff5e0a36b <raise+27>:       syscall 
   0x00007ffff5e0a36d <raise+29>:       mov    %eax,%ecx
   0x00007ffff5e0a36f <raise+31>:       mov    %eax,%fs:0x2d0
   0x00007ffff5e0a377 <raise+39>:       mov    %eax,%esi
   0x00007ffff5e0a379 <raise+41>:       movslq %edi,%rdx
   0x00007ffff5e0a37c <raise+44>:       movslq %esi,%rsi
   0x00007ffff5e0a37f <raise+47>:       movslq %ecx,%rdi
   0x00007ffff5e0a382 <raise+50>:       mov    $0xea,%eax
   0x00007ffff5e0a387 <raise+55>:       syscall 
=> 0x00007ffff5e0a389 <raise+57>:       cmp    $0xfffffffffffff000,%rax
   0x00007ffff5e0a38f <raise+63>:       ja     0x7ffff5e0a3aa <raise+90>
   0x00007ffff5e0a391 <raise+65>:       repz retq 
   0x00007ffff5e0a393 <raise+67>:       nopl   0x0(%rax,%rax,1)
   0x00007ffff5e0a398 <raise+72>:       test   %eax,%eax
   0x00007ffff5e0a39a <raise+74>:       jg     0x7ffff5e0a379 <raise+41>
   0x00007ffff5e0a39c <raise+76>:       mov    %eax,%ecx
   0x00007ffff5e0a39e <raise+78>:       neg    %ecx
   0x00007ffff5e0a3a0 <raise+80>:       test   $0x7fffffff,%eax
   0x00007ffff5e0a3a5 <raise+85>:       cmove  %esi,%ecx
   0x00007ffff5e0a3a8 <raise+88>:       jmp    0x7ffff5e0a379 <raise+41>
End of assembler dump.

Change History (3)

comment:1 Changed 4 years ago by llogan

  • Component changed from avformat to undetermined

comment:2 Changed 4 years ago by cehoyos

  • Component changed from undetermined to avformat
  • Keywords mp3 abort added
  • Reproduced by developer set
  • Status changed from new to open

Regression since 7546ac2

$ valgrind ./ffmpeg_g -i fate-suite/exif/embedded_small.mp3 -c copy -y out.mp3
==28154== Memcheck, a memory error detector
==28154== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==28154== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==28154== Command: ./ffmpeg_g -i fate-suite/exif/embedded_small.mp3 -c copy -y out.mp3
==28154==
ffmpeg version N-61566-gaa1f380 Copyright (c) 2000-2014 the FFmpeg developers
  built on Mar 18 2014 02:42:06 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      52. 67.100 / 52. 67.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 34.101 / 55. 34.101
  libavdevice    55. 11.100 / 55. 11.100
  libavfilter     4.  3.100 /  4.  3.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mp3, from 'fate-suite/exif/embedded_small.mp3':
  Metadata:
    title           : Cuando Me Enamoro
    encoded_by      : Lavf52.31.0
    publisher       : Universal Music Latino
    genre           : Latin
    album           : Cuando Me Enamoro
    album_artist    : Enrique Iglesias
    disc            : 1/1
    track           : 1
    composer        : Enrique Iglesias
    artist          : Enrique Iglesias ft. Juan Luis Guerra
    date            : 2010
    encoder         : Lavf55.13.103
  Duration: 00:00:00.55, start: 0.025056, bitrate: 365 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
    Stream #0:1: Video: mjpeg, yuvj420p(pc), 263x263 [SAR 96:96 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           :
      comment         : Other
Output #0, mp3, to 'out.mp3':
  Metadata:
    TIT2            : Cuando Me Enamoro
    TENC            : Lavf52.31.0
    TPUB            : Universal Music Latino
    TCON            : Latin
    TALB            : Cuando Me Enamoro
    TPE2            : Enrique Iglesias
    TPOS            : 1/1
    TRCK            : 1
    TCOM            : Enrique Iglesias
    TPE1            : Enrique Iglesias ft. Juan Luis Guerra
    TDRL            : 2010
    TSSE            : Lavf55.34.101
    Stream #0:0: Video: mjpeg, yuvj420p, 263x263 [SAR 96:96 DAR 1:1], q=2-31, 90k tbn, 90k tbc
    Metadata:
      title           :
      comment         : Other
    Stream #0:1: Audio: mp3, 44100 Hz, stereo, 128 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
==28154== Invalid read of size 8
==28154==    at 0x62AD78: av_free_packet (avpacket.c:275)
==28154==    by 0x570EF4: mp3_write_packet (mp3enc.c:313)
==28154==    by 0x58103C: write_packet (mux.c:569)
==28154==    by 0x582C5D: av_interleaved_write_frame (mux.c:875)
==28154==    by 0x47C08B: write_frame (ffmpeg.c:658)
==28154==    by 0x47FB9D: do_streamcopy (ffmpeg.c:1572)
==28154==    by 0x480951: process_input (ffmpeg.c:2043)
==28154==    by 0x4680CF: main (ffmpeg.c:3390)
==28154==  Address 0x74ec8c0 is 0 bytes inside a block of size 16 free'd
==28154==    at 0x4C29D4E: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==28154==    by 0xD26BAB: av_freep (mem.c:231)
==28154==    by 0x62B1F3: av_packet_merge_side_data (avpacket.c:276)
==28154==    by 0x580FA2: write_packet (mux.c:576)
==28154==    by 0x582C5D: av_interleaved_write_frame (mux.c:875)
==28154==    by 0x47C08B: write_frame (ffmpeg.c:658)
==28154==    by 0x47FB9D: do_streamcopy (ffmpeg.c:1572)
==28154==    by 0x480951: process_input (ffmpeg.c:2043)
==28154==    by 0x4680CF: main (ffmpeg.c:3390)
==28154==
==28154== Invalid free() / delete / delete[] / realloc()
==28154==    at 0x4C29D4E: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==28154==    by 0x62AD84: av_free_packet (avpacket.c:275)
==28154==    by 0x570EF4: mp3_write_packet (mp3enc.c:313)
==28154==    by 0x58103C: write_packet (mux.c:569)
==28154==    by 0x582C5D: av_interleaved_write_frame (mux.c:875)
==28154==    by 0x47C08B: write_frame (ffmpeg.c:658)
==28154==    by 0x47FB9D: do_streamcopy (ffmpeg.c:1572)
==28154==    by 0x480951: process_input (ffmpeg.c:2043)
==28154==    by 0x4680CF: main (ffmpeg.c:3390)
==28154==  Address 0x74ec960 is 0 bytes inside a block of size 26 free'd
==28154==    at 0x4C29D4E: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==28154==    by 0x62B1E4: av_packet_merge_side_data (avpacket.c:275)
==28154==    by 0x580FA2: write_packet (mux.c:576)
==28154==    by 0x582C5D: av_interleaved_write_frame (mux.c:875)
==28154==    by 0x47C08B: write_frame (ffmpeg.c:658)
==28154==    by 0x47FB9D: do_streamcopy (ffmpeg.c:1572)
==28154==    by 0x480951: process_input (ffmpeg.c:2043)
==28154==    by 0x4680CF: main (ffmpeg.c:3390)
==28154==
==28154== Invalid free() / delete / delete[] / realloc()
==28154==    at 0x4C29D4E: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==28154==    by 0xD26BAB: av_freep (mem.c:231)
==28154==    by 0x62AD95: av_free_packet (avpacket.c:276)
==28154==    by 0x570EF4: mp3_write_packet (mp3enc.c:313)
==28154==    by 0x58103C: write_packet (mux.c:569)
==28154==    by 0x582C5D: av_interleaved_write_frame (mux.c:875)
==28154==    by 0x47C08B: write_frame (ffmpeg.c:658)
==28154==    by 0x47FB9D: do_streamcopy (ffmpeg.c:1572)
==28154==    by 0x480951: process_input (ffmpeg.c:2043)
==28154==    by 0x4680CF: main (ffmpeg.c:3390)
==28154==  Address 0x74ec8c0 is 0 bytes inside a block of size 16 free'd
==28154==    at 0x4C29D4E: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==28154==    by 0xD26BAB: av_freep (mem.c:231)
==28154==    by 0x62B1F3: av_packet_merge_side_data (avpacket.c:276)
==28154==    by 0x580FA2: write_packet (mux.c:576)
==28154==    by 0x582C5D: av_interleaved_write_frame (mux.c:875)
==28154==    by 0x47C08B: write_frame (ffmpeg.c:658)
==28154==    by 0x47FB9D: do_streamcopy (ffmpeg.c:1572)
==28154==    by 0x480951: process_input (ffmpeg.c:2043)
==28154==    by 0x4680CF: main (ffmpeg.c:3390)
==28154==
frame=    1 fps=0.0 q=-1.0 Lsize=      25kB time=00:00:00.52 bitrate= 386.7kbits/s
video:15kB audio:9kB subtitle:0 data:0 global headers:0kB muxing overhead 3.029316%
==28154==
==28154== HEAP SUMMARY:
==28154==     in use at exit: 80 bytes in 2 blocks
==28154==   total heap usage: 863 allocs, 863 frees, 823,045 bytes allocated
==28154==
==28154== LEAK SUMMARY:
==28154==    definitely lost: 0 bytes in 0 blocks
==28154==    indirectly lost: 0 bytes in 0 blocks
==28154==      possibly lost: 0 bytes in 0 blocks
==28154==    still reachable: 80 bytes in 2 blocks
==28154==         suppressed: 0 bytes in 0 blocks
==28154== Rerun with --leak-check=full to see details of leaked memory
==28154==
==28154== For counts of detected and suppressed errors, rerun with: -v
==28154== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 2 from 2)

comment:3 Changed 4 years ago by michael

  • Resolution set to fixed
  • Status changed from open to closed
Note: See TracTickets for help on using tickets.