#2213 closed defect (fixed)
subtitle crash: malloc: *** error [...] incorrect checksum for freed object [...] Abort trap: 6
Reported by: | julian | Owned by: | |
---|---|---|---|
Priority: | important | Component: | undetermined |
Version: | git-master | Keywords: | crash SIGSEGV ass mov_text |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description (last modified by )
download the problem file (still uploading, up in 2 hours, size 1.305.470.851
bytes):
https://dl.dropbox.com/u/7221986/2.mkv
ffmpeg -i 2.mkv -map 0:0 -map 0:2 -map 0:5 -map 0:4 -map 0:3 -scodec mov_text -vcodec copy -acodec copy 2.mp4 ffmpeg version 1.1.1-tessus Copyright (c) 2000-2013 the FFmpeg developers built on Jan 20 2013 23:17:33 with llvm-gcc 4.2.1 (LLVM build 2336.1.00) configuration: --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus --disable-shared --enable-static --disable-ffplay --disable-ffserver --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-version3 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm --enable-libopus --enable-fontconfig --enable-libfreetype --enable-libass --enable-filters --enable-runtime-cpudetect libavutil 52. 13.100 / 52. 13.100 libavcodec 54. 86.100 / 54. 86.100 libavformat 54. 59.106 / 54. 59.106 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 32.100 / 3. 32.100 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, matroska,webm, from '2.mkv': Metadata: title : Mahou Shoujo Madoka Magika Episode 04 - Miracles and Magic Do Exist creation_time : 2012-03-04 22:02:52 Duration: 00:24:22.19, start: 0.000000, bitrate: 7142 kb/s Chapter #0.0: start 0.000000, end 113.155000 Metadata: title : Prologue Chapter #0.1: start 113.155000, end 203.120000 Metadata: title : Opening Chapter #0.2: start 203.120000, end 774.065000 Metadata: title : Part A Chapter #0.3: start 774.065000, end 1345.261000 Metadata: title : Part B Chapter #0.4: start 1345.261000, end 1435.100000 Metadata: title : Ending Chapter #0.5: start 1435.100000, end 1462.185000 Metadata: title : Preview Stream #0:0(jpn): Video: h264 (High 10), yuv420p10le, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Metadata: title : Video track Stream #0:1(jpn): Audio: flac, 48000 Hz, stereo, s32 (default) Metadata: title : Audio track Stream #0:2(jpn): Audio: aac, 48000 Hz, stereo, fltp Metadata: title : Audio track - Commentary Stream #0:3(eng): Subtitle: ssa (default) Metadata: title : Subtitle track Stream #0:4(eng): Subtitle: ssa Metadata: title : Subtitle track - Commentary Stream #0:5(eng): Subtitle: ssa Metadata: title : Subtitle track - Colorless Codec 0x18000 is not in the full list. Stream #0:6: Attachment: unknown_codec Metadata: filename : Doradani_Rg_Bold.ttf mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:7: Attachment: unknown_codec Metadata: filename : Doradani Rg Bold Italic.ttf mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:8: Attachment: unknown_codec Metadata: filename : FOT-GrecoStd-M-ED3-8v2.otf mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:9: Attachment: unknown_codec Metadata: filename : PRISTINA-ED3-8v2.TTF mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:10: Attachment: unknown_codec Metadata: filename : love-OPv3.ttf mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:11: Attachment: unknown_codec Metadata: filename : Accolade Regular-ep04.ttf mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:12: Attachment: unknown_codec Metadata: filename : Aller_Rg-ep04.ttf mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:13: Attachment: unknown_codec Metadata: filename : angelina.ttf mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:14: Attachment: unknown_codec Metadata: filename : ARIALUNI-ep04.TTF mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:15: Attachment: unknown_codec Metadata: filename : Arista2.0-ep04.ttf mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:16: Attachment: unknown_codec Metadata: filename : BoltonLight-ep04.ttf mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:17: Attachment: unknown_codec Metadata: filename : ELPHIN-ep04.TTF mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:18: Attachment: unknown_codec Metadata: filename : MadokaRunes-2.0-ep04.ttf mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:19: Attachment: unknown_codec Metadata: filename : mona-ep04.ttf mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:20: Attachment: unknown_codec Metadata: filename : tahoma-ep04.ttf mimetype : application/x-truetype-font Output #0, mp4, to '2.mp4': Metadata: title : Mahou Shoujo Madoka Magika Episode 04 - Miracles and Magic Do Exist encoder : Lavf54.59.106 Chapter #0.0: start 0.000000, end 113.155000 Metadata: title : Prologue Chapter #0.1: start 113.155000, end 203.120000 Metadata: title : Opening Chapter #0.2: start 203.120000, end 774.065000 Metadata: title : Part A Chapter #0.3: start 774.065000, end 1345.261000 Metadata: title : Part B Chapter #0.4: start 1345.261000, end 1435.100000 Metadata: title : Ending Chapter #0.5: start 1435.100000, end 1462.185000 Metadata: title : Preview Stream #0:0(jpn): Video: h264 ([33][0][0][0] / 0x0021), yuv420p10le, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 16k tbn, 1k tbc (default) Metadata: title : Video track Stream #0:1(jpn): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo Metadata: title : Audio track - Commentary Stream #0:2(eng): Subtitle: mov_text ([8][0][0][0] / 0x0008) Metadata: title : Subtitle track - Colorless Stream #0:3(eng): Subtitle: mov_text ([8][0][0][0] / 0x0008) Metadata: title : Subtitle track - Commentary Stream #0:4(eng): Subtitle: mov_text ([8][0][0][0] / 0x0008) (default) Metadata: title : Subtitle track Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:2 -> #0:1 (copy) Stream #0:5 -> #0:2 (ass -> mov_text) Stream #0:4 -> #0:3 (ass -> mov_text) Stream #0:3 -> #0:4 (ass -> mov_text) Press [q] to stop, [?] for help ffmpeg(18551) malloc: *** error for object 0x10202b808: incorrect checksum for freed object - object was probably modified after being freed. *** set a breakpoint in malloc_error_break to debug Abort trap: 6
Attachments (1)
Change History (12)
by , 12 years ago
Attachment: | ticket2213.mkv added |
---|
comment:1 by , 12 years ago
Description: | modified (diff) |
---|---|
Keywords: | crash SIGSEGV ass mov_text added |
Priority: | normal → important |
Reproduced by developer: | set |
Status: | new → open |
Version: | 1.1.1 → git-master |
comment:2 by , 12 years ago
Some debugging updates:
Segmentation fault happens when invoking the function av_rescale_q to calculate delta_dts with i = 1 and ff_interleave_packet_per_dts is called 479th time starting from 1
comment:3 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
comment:6 by , 12 years ago
The sample currently also needs -fix_sub_duration so I will not delete it (at least for the moment).
follow-up: 8 comment:7 by , 12 years ago
That is not true. Decoding from Matroska never requires -fix_sub_duration
.
Complex ASS can not be converted to mov_text, that is not a bug, that is a limitation of the format.
-fix_sub_duration
may make it seem to work, but it is only hiding the problems, not solving anything.
follow-up: 9 comment:8 by , 12 years ago
I believe it is acceptable (and expected) that the conversion from ass to mov_text will damage some and drop other subtitles and that the resulting file does not show all effects that the original ass track encoded. Not acceptable imo is ffmpeg producing unusable output files without any warning. With -fix_sub_duration, the resulting file is watchable (with subtitles). I am neither claiming this is expected behaviour, nor that it works perfectly but it is nonetheless currently needed to produce a useful output file.
I'd like to keep the file so it is possible to test once the re-encoding without -fix_sub_duration is possible.
follow-up: 10 comment:9 by , 12 years ago
Replying to cehoyos:
I believe it is acceptable (and expected)
I think you overestimate the users.
that the conversion from ass to mov_text will damage some and drop other subtitles and that the resulting file does not show all effects that the original ass track encoded.
That may be acceptable, but that is what happens when -fix_sub_durations
is not used.
Not acceptable imo is ffmpeg producing unusable output files without any warning.
Under what circumstances do you get that?
With -fix_sub_duration, the resulting file is watchable (with subtitles).
Let me correct you: the parts of the resulting file that you looked at are watchable. Most of it will be, but the parts with overlapping subtitles will not.
I am neither claiming this is expected behaviour, nor that it works perfectly but it is nonetheless currently needed to produce a useful output file.
It is currently useful for ignoring errors, but that does not make the output file useful. Advocating its use will only let the users produce damaged files and delay a proper solution.
I'd like to keep the file
I am 100% in favor of keeping all files, but please stop suggesting using -fix_sub_duration
in this circumstance, it is 100% wrong.
comment:10 by , 12 years ago
comment:11 by , 12 years ago
For #2212, it was an A-V desync, IIRC, was it not? If so, it was a bug in the MOV+mov_text muxer, nothing more.