[FFmpeg-trac] #9877(avformat:open): ffmpeg core dumped error when map webvtt subtitles

FFmpeg trac at avcodec.org
Mon Oct 17 22:32:38 EEST 2022


#9877: ffmpeg core dumped error when map webvtt subtitles
-------------------------------------+-------------------------------------
             Reporter:  tudge        |                    Owner:  (none)
                 Type:  defect       |                   Status:  open
             Priority:  important    |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  hls crash    |               Blocked By:
  SIGSEGV regression                 |
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by Carl Eugen Hoyos):

 * status:  new => open
 * reproduced:  0 => 1

Comment:

 Crashes for example with:
 {{{
 $ ffmpeg -i any.mkv  -map 0 -var_stream_map "v:0,s:0 v:1,s:1" -vcodec
 mpeg2video any/stream_%v.m3u8
 }}}
 {{{
 $ ffmpeg -i any.mkv  -map 0 -var_stream_map "v:0,s:0 v:1,s:1" -vcodec copy
 any/stream_%v.m3u8
 }}}
 {{{
 $ ffmpeg -i any.mkv  -map 0 -var_stream_map "v:0,s:0 v:1,s:1"
 any/stream_%v.m3u8
 }}}
 {{{
 ==217== Invalid read of size 8
 ==217==    at 0x81E2ED: ff_write_chained (mux.c:1365)
 ==217==    by 0x7A8C1B: hls_write_packet (hlsenc.c:2669)
 ==217==    by 0x81F206: write_packet (mux.c:728)
 ==217==    by 0x81EE61: interleaved_write_packet (mux.c:1102)
 ==217==    by 0x81EE61: write_packet_common (mux.c:1127)
 ==217==    by 0x81DD0E: av_interleaved_write_frame (mux.c:1243)
 ==217==    by 0x40B056: write_packet (ffmpeg_mux.c:174)
 ==217==    by 0x40A908: sync_queue_process (ffmpeg_mux.c:204)
 ==217==    by 0x40A908: muxer_thread (ffmpeg_mux.c:235)
 ==217==    by 0x57A36DA: start_thread (pthread_create.c:463)
 ==217==    by 0x5ADCA3E: clone (clone.S:95)
 ==217==  Address 0xd384068 is 8 bytes before a block of size 8 alloc'd
 ==217==    at 0x4C2FA3F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-
 amd64-linux.so)
 ==217==    by 0x4C31D84: realloc (in /usr/lib/valgrind/vgpreload_memcheck-
 amd64-linux.so)
 ==217==    by 0x84A18F: avformat_new_stream (options.c:250)
 ==217==    by 0x7AB19C: hls_mux_init (hlsenc.c:889)
 ==217==    by 0x7AB19C: hls_init (hlsenc.c:3084)
 ==217==    by 0x81CD66: init_muxer (mux.c:346)
 ==217==    by 0x81CD66: avformat_init_output (mux.c:433)
 ==217==    by 0x81D03E: avformat_write_header (mux.c:457)
 ==217==    by 0x409DD4: of_check_init (ffmpeg_mux.c:478)
 ==217==    by 0x427D3A: init_output_stream (ffmpeg.c:3292)
 ==217==    by 0x427D3A: init_output_stream_wrapper (ffmpeg.c:837)
 ==217==    by 0x428429: do_video_out (ffmpeg.c:1205)
 ==217==    by 0x4280BA: reap_filters (ffmpeg.c:1427)
 ==217==    by 0x4214EB: transcode_step (ffmpeg.c:0)
 ==217==    by 0x4214EB: transcode (ffmpeg.c:4077)
 ==217==    by 0x41F965: main (ffmpeg.c:4248)
 ==217==
 ==217== Invalid read of size 8
 ==217==    at 0x81E2F5: ff_write_chained (mux.c:1363)
 ==217==    by 0x7A8C1B: hls_write_packet (hlsenc.c:2669)
 ==217==    by 0x81F206: write_packet (mux.c:728)
 ==217==    by 0x81EE61: interleaved_write_packet (mux.c:1102)
 ==217==    by 0x81EE61: write_packet_common (mux.c:1127)
 ==217==    by 0x81DD0E: av_interleaved_write_frame (mux.c:1243)
 ==217==    by 0x40B056: write_packet (ffmpeg_mux.c:174)
 ==217==    by 0x40A908: sync_queue_process (ffmpeg_mux.c:204)
 ==217==    by 0x40A908: muxer_thread (ffmpeg_mux.c:235)
 ==217==    by 0x57A36DA: start_thread (pthread_create.c:463)
 ==217==    by 0x5ADCA3E: clone (clone.S:95)
 ==217==  Address 0x10 is not stack'd, malloc'd or (recently) free'd
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9877#comment:18>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list