Opened 11 years ago
Closed 11 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 by , 11 years ago
Component: | avformat → undetermined |
---|
comment:2 by , 11 years ago
Component: | undetermined → avformat |
---|---|
Keywords: | mp3 abort added |
Reproduced by developer: | set |
Status: | new → open |
comment:3 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
Note:
See TracTickets
for help on using tickets.
Regression since 7546ac2