[FFmpeg-trac] #6346(undetermined:new): Segmentation fault, Auto-inserting h264_mp4toannexb bitstream filter
FFmpeg
trac at avcodec.org
Tue Apr 25 13:32:18 EEST 2017
#6346: Segmentation fault, Auto-inserting h264_mp4toannexb bitstream filter
-------------------------------------+-------------------------------------
Reporter: ffmpegTV | Owner:
Type: defect | Status: new
Priority: important | Component:
Version: git-master | undetermined
Keywords: crash | Resolution:
regression | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Changes (by cehoyos):
* keywords: crash => crash regression
* version: unspecified => git-master
* reproduced: 0 => 1
Comment:
Regression since b8f26779d615dfb466e90627323b1a4e40639f76
{{{
$ valgrind ffmpeg_g -f concat -i files.txt
==25745== Memcheck, a memory error detector
==25745== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==25745== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright
info
==25745== Command: ffmpeg_g -f concat -i files.txt
==25745==
ffmpeg version N-85646-g550a9c5 Copyright (c) 2000-2017 the FFmpeg
developers
built with gcc 6.3.0 (GCC)
configuration: --enable-gpl
libavutil 55. 61.100 / 55. 61.100
libavcodec 57. 93.100 / 57. 93.100
libavformat 57. 72.101 / 57. 72.101
libavdevice 57. 7.100 / 57. 7.100
libavfilter 6. 87.100 / 6. 87.100
libswscale 4. 7.101 / 4. 7.101
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
[mpegts @ 0x82204a0] Auto-inserting h264_mp4toannexb bitstream filter
==25745== Invalid read of size 4
==25745== at 0x7683D7: av_packet_copy_props (avpacket.c:562)
==25745== by 0x768614: av_packet_ref (avpacket.c:589)
==25745== by 0x799605: avcodec_send_packet (decode.c:647)
==25745== by 0x709F14: try_decode_frame (utils.c:3004)
==25745== by 0x712244: avformat_find_stream_info (utils.c:3821)
==25745== by 0x48AEA5: open_input_file (ffmpeg_opt.c:1013)
==25745== by 0x48DB5E: ffmpeg_parse_options (ffmpeg_opt.c:3203)
==25745== by 0x47DA86: main (ffmpeg.c:4742)
==25745== Address 0x821fc78 is 8 bytes inside a block of size 16 free'd
==25745== at 0x4C29D4E: free (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==25745== by 0x768588: av_packet_unref (avpacket.c:275)
==25745== by 0x60CDAA: concat_read_packet (concatdec.c:565)
==25745== by 0x70A82D: ff_read_packet (utils.c:816)
==25745== by 0x70DB23: read_frame_internal (utils.c:1517)
==25745== by 0x711E83: avformat_find_stream_info (utils.c:3697)
==25745== by 0x48AEA5: open_input_file (ffmpeg_opt.c:1013)
==25745== by 0x48DB5E: ffmpeg_parse_options (ffmpeg_opt.c:3203)
==25745== by 0x47DA86: main (ffmpeg.c:4742)
==25745==
==25745== Invalid read of size 4
==25745== at 0x7683E8: av_packet_copy_props (avpacket.c:561)
==25745== by 0x768614: av_packet_ref (avpacket.c:589)
==25745== by 0x799605: avcodec_send_packet (decode.c:647)
==25745== by 0x709F14: try_decode_frame (utils.c:3004)
==25745== by 0x712244: avformat_find_stream_info (utils.c:3821)
==25745== by 0x48AEA5: open_input_file (ffmpeg_opt.c:1013)
==25745== by 0x48DB5E: ffmpeg_parse_options (ffmpeg_opt.c:3203)
==25745== by 0x47DA86: main (ffmpeg.c:4742)
==25745== Address 0x821fc7c is 12 bytes inside a block of size 16 free'd
==25745== at 0x4C29D4E: free (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==25745== by 0x768588: av_packet_unref (avpacket.c:275)
==25745== by 0x60CDAA: concat_read_packet (concatdec.c:565)
==25745== by 0x70A82D: ff_read_packet (utils.c:816)
==25745== by 0x70DB23: read_frame_internal (utils.c:1517)
==25745== by 0x711E83: avformat_find_stream_info (utils.c:3697)
==25745== by 0x48AEA5: open_input_file (ffmpeg_opt.c:1013)
==25745== by 0x48DB5E: ffmpeg_parse_options (ffmpeg_opt.c:3203)
==25745== by 0x47DA86: main (ffmpeg.c:4742)
==25745==
==25745== Invalid read of size 8
==25745== at 0x7683EB: av_packet_copy_props (avpacket.c:563)
==25745== by 0x768614: av_packet_ref (avpacket.c:589)
==25745== by 0x799605: avcodec_send_packet (decode.c:647)
==25745== by 0x709F14: try_decode_frame (utils.c:3004)
==25745== by 0x712244: avformat_find_stream_info (utils.c:3821)
==25745== by 0x48AEA5: open_input_file (ffmpeg_opt.c:1013)
==25745== by 0x48DB5E: ffmpeg_parse_options (ffmpeg_opt.c:3203)
==25745== by 0x47DA86: main (ffmpeg.c:4742)
==25745== Address 0x821fc70 is 0 bytes inside a block of size 16 free'd
==25745== at 0x4C29D4E: free (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==25745== by 0x768588: av_packet_unref (avpacket.c:275)
==25745== by 0x60CDAA: concat_read_packet (concatdec.c:565)
==25745== by 0x70A82D: ff_read_packet (utils.c:816)
==25745== by 0x70DB23: read_frame_internal (utils.c:1517)
==25745== by 0x711E83: avformat_find_stream_info (utils.c:3697)
==25745== by 0x48AEA5: open_input_file (ffmpeg_opt.c:1013)
==25745== by 0x48DB5E: ffmpeg_parse_options (ffmpeg_opt.c:3203)
==25745== by 0x47DA86: main (ffmpeg.c:4742)
==25745==
==25745== Invalid read of size 1
==25745== at 0x4C2C531: memcpy@@GLIBC_2.14 (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==25745== by 0x7684A5: av_packet_copy_props (avpacket.c:570)
==25745== by 0x768614: av_packet_ref (avpacket.c:589)
==25745== by 0x799605: avcodec_send_packet (decode.c:647)
==25745== by 0x709F14: try_decode_frame (utils.c:3004)
==25745== by 0x712244: avformat_find_stream_info (utils.c:3821)
==25745== by 0x48AEA5: open_input_file (ffmpeg_opt.c:1013)
==25745== by 0x48DB5E: ffmpeg_parse_options (ffmpeg_opt.c:3203)
==25745== by 0x47DA86: main (ffmpeg.c:4742)
==25745== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==25745==
==25745==
==25745== Process terminating with default action of signal 11 (SIGSEGV)
==25745== Access not within mapped region at address 0x0
==25745== at 0x4C2C531: memcpy@@GLIBC_2.14 (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==25745== by 0x7684A5: av_packet_copy_props (avpacket.c:570)
==25745== by 0x768614: av_packet_ref (avpacket.c:589)
==25745== by 0x799605: avcodec_send_packet (decode.c:647)
==25745== by 0x709F14: try_decode_frame (utils.c:3004)
==25745== by 0x712244: avformat_find_stream_info (utils.c:3821)
==25745== by 0x48AEA5: open_input_file (ffmpeg_opt.c:1013)
==25745== by 0x48DB5E: ffmpeg_parse_options (ffmpeg_opt.c:3203)
==25745== by 0x47DA86: main (ffmpeg.c:4742)
==25745== If you believe this happened as a result of a stack
==25745== overflow in your program's main thread (unlikely but
==25745== possible), you can try to increase the size of the
==25745== main thread stack using the --main-stacksize= flag.
==25745== The main thread stack size used in this run was 8388608.
==25745==
==25745== HEAP SUMMARY:
==25745== in use at exit: 1,014,992 bytes in 206 blocks
==25745== total heap usage: 1,357 allocs, 1,151 frees, 22,165,309 bytes
allocated
==25745==
==25745== LEAK SUMMARY:
==25745== definitely lost: 0 bytes in 0 blocks
==25745== indirectly lost: 0 bytes in 0 blocks
==25745== possibly lost: 0 bytes in 0 blocks
==25745== still reachable: 1,014,992 bytes in 206 blocks
==25745== suppressed: 0 bytes in 0 blocks
==25745== Rerun with --leak-check=full to see details of leaked memory
==25745==
==25745== For counts of detected and suppressed errors, rerun with: -v
==25745== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 2 from 2)
Segmentation fault
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6346#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list