Opened 11 years ago
Closed 11 years ago
#3603 closed defect (fixed)
ffprobe crashes on streams added after probe
Reported by: | Marton Balint | Owned by: | Anshul |
---|---|---|---|
Priority: | important | Component: | ffprobe |
Version: | git-master | Keywords: | crash regression |
Cc: | Anshul | Blocked By: | |
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | yes |
Description
Summary of the bug:
If a stream is not available when ffprobe allocates the selected_streams array, then when receiving a packet of that stream, the
if (selected_streams[pkt.stream_index]) {
check will cause an invalid read. Also when ffprobe cleans up the codecs, after the file ends, it will crash.
How to reproduce:
./ffprobe_g -show_packets -of xml -select_streams 1111 http://samples.ffmpeg.org/MPEG2/subcc/HK_DVB_w_subtitle.ts ffprobe version N-62765-g8120668 Copyright (c) 2007-2014 the FFmpeg developers built on Apr 28 2014 22:07:00 with gcc 4.8 (SUSE Linux) configuration: --disable-vaapi --enable-vdpau --enable-gpl --enable-libfreetype --enable-libzvbi --enable-libass --enable-frei0r libavutil 52. 79.100 / 52. 79.100 libavcodec 55. 59.100 / 55. 59.100 libavformat 55. 37.101 / 55. 37.101 libavdevice 55. 13.100 / 55. 13.100 libavfilter 4. 4.100 / 4. 4.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 18.100 / 0. 18.100 libpostproc 52. 3.100 / 52. 3.100 <?xml version="1.0" encoding="UTF-8"?> <ffprobe> [h264 @ 0x3581f00] non-existing SPS 0 referenced in buffering period [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] non-existing SPS 0 referenced in buffering period [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] no frame! [h264 @ 0x3581f00] non-existing SPS 0 referenced in buffering period [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] non-existing SPS 0 referenced in buffering period [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] no frame! [h264 @ 0x3581f00] non-existing SPS 0 referenced in buffering period [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] non-existing SPS 0 referenced in buffering period [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] no frame! [h264 @ 0x3581f00] non-existing SPS 0 referenced in buffering period [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] non-existing SPS 0 referenced in buffering period [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] no frame! [h264 @ 0x3581f00] non-existing SPS 0 referenced in buffering period [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] non-existing SPS 0 referenced in buffering period [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] no frame! [h264 @ 0x3581f00] non-existing SPS 0 referenced in buffering period [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] non-existing SPS 0 referenced in buffering period [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] no frame! [h264 @ 0x3581f00] non-existing SPS 0 referenced in buffering period [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] non-existing SPS 0 referenced in buffering period [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] no frame! [h264 @ 0x3581f00] non-existing SPS 0 referenced in buffering period [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] non-existing SPS 0 referenced in buffering period [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] no frame! [h264 @ 0x3581f00] non-existing SPS 0 referenced in buffering period [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] non-existing SPS 0 referenced in buffering period [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] non-existing PPS 0 referenced [h264 @ 0x3581f00] decode_slice_header error [h264 @ 0x3581f00] no frame! [mpegts @ 0x3578e00] PES packet size mismatch Last message repeated 2 times Input #0, mpegts, from 'http://samples.ffmpeg.org/MPEG2/subcc/HK_DVB_w_subtitle.ts': Duration: 00:00:26.12, start: 480.455600, bitrate: 12544 kb/s Program 1 Stream #0:0[0x44]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 192 kb/s Stream #0:1[0x45]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 384 kb/s Stream #0:2[0x46]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc <packets> [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. <packet codec_type="subtitle" stream_index="4" pts="45008998" pts_time="500.099978" dts="45008998" dts_time="500.099978" size="3590" pos="30869212" flags="K"/> <packet codec_type="subtitle" stream_index="3" pts="45008998" pts_time="500.099978" dts="45008998" dts_time="500.099978" size="3528" pos="30869024" flags="K"/> [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. <packet codec_type="subtitle" stream_index="3" pts="45211526" pts_time="502.350289" dts="45211526" dts_time="502.350289" size="14" pos="34448356" flags="K"/> <packet codec_type="subtitle" stream_index="4" pts="45211526" pts_time="502.350289" dts="45211526" dts_time="502.350289" size="14" pos="34448544" flags="K"/> [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. <packet codec_type="subtitle" stream_index="4" pts="45394472" pts_time="504.383022" dts="45394472" dts_time="504.383022" size="4460" pos="37792876" flags="K"/> <packet codec_type="subtitle" stream_index="3" pts="45394472" pts_time="504.383022" dts="45394472" dts_time="504.383022" size="4592" pos="37792688" flags="K"/> [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] DVB subtitles with multiple languages is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mpegts @ 0x3578e00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. [mpegts @ 0x3578e00] PES packet size mismatch </packets>ge repeated 2 times *** Error in `./ffprobe_g': free(): invalid pointer: 0x00000000035daee0 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x7410f)[0x7f644534e10f] /lib64/libc.so.6(+0x7996e)[0x7f644535396e] ./ffprobe_g[0xc235dc] ./ffprobe_g[0x46934b] /lib64/libc.so.6(__libc_start_main+0xf5)[0x7f64452fbbe5] ./ffprobe_g[0x46a089] ======= Memory map: ======== 00400000-00f5c000 r-xp 00000000 09:02 7226153 /raid/cus/ffmpeg/ffprobe_g 0115b000-0115c000 r--p 00b5b000 09:02 7226153 /raid/cus/ffmpeg/ffprobe_g 0115c000-01192000 rw-p 00b5c000 09:02 7226153 /raid/cus/ffmpeg/ffprobe_g 01192000-0182b000 rw-p 00000000 00:00 0 0356e000-03641000 rw-p 00000000 00:00 0 [heap] 7f643f348000-7f643f349000 ---p 00000000 00:00 0 7f643f349000-7f643fb49000 rw-p 00000000 00:00 0 7f643fb49000-7f643fb4a000 ---p 00000000 00:00 0 7f643fb4a000-7f644034a000 rw-p 00000000 00:00 0 7f644034a000-7f644034b000 ---p 00000000 00:00 0 7f644034b000-7f6440b4b000 rw-p 00000000 00:00 0 7f6440b4b000-7f6440b5f000 r-xp 00000000 09:00 2106190 /lib64/libresolv-2.18.so 7f6440b5f000-7f6440d5e000 ---p 00014000 09:00 2106190 /lib64/libresolv-2.18.so 7f6440d5e000-7f6440d5f000 r--p 00013000 09:00 2106190 /lib64/libresolv-2.18.so 7f6440d5f000-7f6440d60000 rw-p 00014000 09:00 2106190 /lib64/libresolv-2.18.so 7f6440d60000-7f6440d62000 rw-p 00000000 00:00 0 7f6440d62000-7f6440d67000 r-xp 00000000 09:00 2100363 /lib64/libnss_dns-2.18.so 7f6440d67000-7f6440f66000 ---p 00005000 09:00 2100363 /lib64/libnss_dns-2.18.so 7f6440f66000-7f6440f67000 r--p 00004000 09:00 2100363 /lib64/libnss_dns-2.18.so 7f6440f67000-7f6440f68000 rw-p 00005000 09:00 2100363 /lib64/libnss_dns-2.18.so 7f6440f68000-7f6440f6a000 r-xp 00000000 09:00 2093338 /lib64/libnss_mdns_minimal.so.2 7f6440f6a000-7f644116a000 ---p 00002000 09:00 2093338 /lib64/libnss_mdns_minimal.so.2 7f644116a000-7f644116b000 r--p 00002000 09:00 2093338 /lib64/libnss_mdns_minimal.so.2 7f644116b000-7f644116c000 rw-p 00003000 09:00 2093338 /lib64/libnss_mdns_minimal.so.2 7f644116c000-7f6441178000 r-xp 00000000 09:00 2106121 /lib64/libnss_files-2.18.so 7f6441178000-7f6441377000 ---p 0000c000 09:00 2106121 /lib64/libnss_files-2.18.so 7f6441377000-7f6441378000 r--p 0000b000 09:00 2106121 /lib64/libnss_files-2.18.so 7f6441378000-7f6441379000 rw-p 0000c000 09:00 2106121 /lib64/libnss_files-2.18.so 7f6441379000-7f64413a5000 r-xp 00000000 09:00 2241465 /usr/lib64/libvorbis.so.0.4.6 7f64413a5000-7f64415a5000 ---p 0002c000 09:00 2241465 /usr/lib64/libvorbis.so.0.4.6 7f64415a5000-7f64415a6000 r--p 0002c000 09:00 2241465 /usr/lib64/libvorbis.so.0.4.6 7f64415a6000-7f64415a7000 rw-p 0002d000 09:00 2241465 /usr/lib64/libvorbis.so.0.4.6 7f64415a7000-7f64415be000 r-xp 00000000 09:00 2232312 /usr/lib64/libspeex.so.1.5.0 7f64415be000-7f64417be000 ---p 00017000 09:00 2232312 /usr/lib64/libspeex.so.1.5.0 7f64417be000-7f64417bf000 r--p 00017000 09:00 2232312 /usr/lib64/libspeex.so.1.5.0 7f64417bf000-7f64417c0000 rw-p 00018000 09:00 2232312 /usr/lib64/libspeex.so.1.5.0 7f64417c0000-7f6441a73000 r-xp 00000000 09:00 2245248 /usr/lib64/libvorbisenc.so.2.0.9 7f6441a73000-7f6441c72000 ---p 002b3000 09:00 2245248 /usr/lib64/libvorbisenc.so.2.0.9 7f6441c72000-7f6441c8e000 r--p 002b2000 09:00 2245248 /usr/lib64/libvorbisenc.so.2.0.9 7f6441c8e000-7f6441c8f000 rw-p 002ce000 09:00 2245248 /usr/lib64/libvorbisenc.so.2.0.9 7f6441c8f000-7f6441c95000 r-xp 00000000 09:00 2236843 /usr/lib64/libogg.so.0.8.0 7f6441c95000-7f6441e94000 ---p 00006000 09:00 2236843 /usr/lib64/libogg.so.0.8.0 7f6441e94000-7f6441e95000 r--p 00005000 09:00 2236843 /usr/lib64/libogg.so.0.8.0 7f6441e95000-7f6441e96000 rw-p 00006000 09:00 2236843 /usr/lib64/libogg.so.0.8.0 7f6441e96000-7f6442057000 r-xp 00000000 09:00 2093638 /lib64/libcrypto.so.1.0.0 7f6442057000-7f6442257000 ---p 001c1000 09:00 2093638 /lib64/libcrypto.so.1.0.0 7f6442257000-7f6442272000 r--p 001c1000 09:00 2093638 /lib64/libcrypto.so.1.0.0 7f6442272000-7f644227d000 rw-p 001dc000 09:00 2093638 /lib64/libcrypto.so.1.0.0 7f644227d000-7f6442281000 rw-p 00000000 00:00 0 7f6442281000-7f64422e5000 r-xp 00000000 09:00 2237241 /usr/lib64/libsndfile.so.1.0.25 7f64422e5000-7f64424e5000 ---p 00064000 09:00 2237241 /usr/lib64/libsndfile.so.1.0.25 7f64424e5000-7f64424e7000 r--p 00064000 09:00 2237241 /usr/lib64/libsndfile.so.1.0.25 7f64424e7000-7f64424e8000 rw-p 00066000 09:00 2237241 /usr/lib64/libsndfile.so.1.0.25 7f64424e8000-7f64424ec000 rw-p 00000000 00:00 0 7f64424ec000-7f64424f5000 r-xp 00000000 09:00 2093127 /lib64/libwrap.so.0.7.6 7f64424f5000-7f64426f4000 ---p 00009000 09:00 2093127 /lib64/libwrap.so.0.7.6 7f64426f4000-7f64426f5000 r--p 00008000 09:00 2093127 /lib64/libwrap.so.0.7.6 7f64426f5000-7f64426f6000 rw-p 00009000 09:00 2093127 /lib64/libwrap.so.0.7.6 7f64426f6000-7f64426f7000 rw-p 00000000 00:00 0 7f64426f7000-7f6442734000 r-xp 00000000 09:00 2241468 /usr/lib64/libFLAC.so.8.3.0 7f6442734000-7f6442934000 ---p 0003d000 09:00 2241468 /usr/lib64/libFLAC.so.8.3.0 7f6442934000-7f6442935000 r--p 0003d000 09:00 2241468 /usr/lib64/libFLAC.so.8.3.0 7f6442935000-7f6442936000 rw-p 0003e000 09:00 2241468 /usr/lib64/libFLAC.so.8.3.0 7f6442936000-7f644295d000 r-xp 00000000 09:00 2240796 /usr/lib64/libexpat.so.1.6.0 7f644295d000-7f6442b5d000 ---p 00027000 09:00 2240796 /usr/lib64/libexpat.so.1.6.0 7f6442b5d000-7f6442b5f000 r--p 00027000 09:00 2240796 /usr/lib64/libexpat.so.1.6.0 7f6442b5f000-7f6442b60000 rw-p 00029000 09:00 2240796 /usr/lib64/libexpat.so.1.6.0 7f6442b60000-7f6442b69000 r-xp 00000000 09:00 2242914 /usr/lib64/libXrender.so.1.3.0 7f6442b69000-7f6442d68000 ---p 00009000 09:00 2242914 /usr/lib64/libXrender.so.1.3.0 7f6442d68000-7f6442d69000 r--p 00008000 09:00 2242914 /usr/lib64/libXrender.so.1.3.0 7f6442d69000-7f6442d6a000 rw-p 00009000 09:00 2242914 /usr/lib64/libXrender.so.1.3.0 7f6442d6a000-7f6442db0000 r-xp 00000000 09:00 2093131 /lib64/libdbus-1.so.3.8.2 7f6442db0000-7f6442fb0000 ---p 00046000 09:00 2093131 /lib64/libdbus-1.so.3.8.2 7f6442fb0000-7f6442fb1000 r--p 00046000 09:00 2093131 /lib64/libdbus-1.so.3.8.2 7f6442fb1000-7f6442fb2000 rw-p 00047000 09:00 2093131 /lib64/libdbus-1.so.3.8.2 7f6442fb2000-7f6442fbb000 r-xp 00000000 09:00 2232642 /usr/lib64/libjson.so.0.1.0 7f6442fbb000-7f64431ba000 ---p 00009000 09:00 2232642 /usr/lib64/libjson.so.0.1.0 7f64431ba000-7f64431bb000 r--p 00008000 09:00 2232642 /usr/lib64/libjson.so.0.1.0 7f64431bb000-7f64431bc000 rw-p 00009000 09:00 2232642 /usr/lib64/libjson.so.0.1.0 7f64431bc000-7f6443228000 r-xp 00000000 09:00 138669 /usr/lib64/pulseaudio/libpulsecommon-4.0.so 7f6443228000-7f6443428000 ---p 0006c000 09:00 138669 /usr/lib64/pulseaudio/libpulsecommon-4.0.so 7f6443428000-7f6443429000 r--p 0006c000 09:00 138669 /usr/lib64/pulseaudio/libpulsecommon-4.0.so 7f6443429000-7f644342b000 rw-p 0006d000 09:00 138669 /usr/lib64/pulseaudio/libpulsecommon-4.0.so 7f644342b000-7f6443462000 r-xp 00000000 09:00 2246734 /usr/lib64/libaudiofile.so.1.0.0 7f6443462000-7f6443661000 ---p 00037000 09:00 2246734 /usr/lib64/libaudiofile.so.1.0.0 7f6443661000-7f6443664000 r--p 00036000 09:00 2246734 /usr/lib64/libaudiofile.so.1.0.0 7f6443664000-7f6443665000 rw-p 00039000 09:00 2246734 /usr/lib64/libaudiofile.so.1.0.0 7f6443665000-7f6443668000 r-xp 00000000 09:00 2229562 /usr/lib64/libXau.so.6.0.0 7f6443668000-7f6443867000 ---p 00003000 09:00 2229562 /usr/lib64/libXau.so.6.0.0 7f6443867000-7f6443868000 r--p 00002000 09:00 2229562 /usr/lib64/libXau.so.6.0.0 7f6443868000-7f6443869000 rw-p 00003000 09:00 2229562 /usr/lib64/libXau.so.6.0.0 7f6443869000-7f6443896000 r-xp 00000000 09:00 2229615 /usr/lib64/libenca.so.0.5.1 7f6443896000-7f6443a96000 ---p 0002d000 09:00 2229615 /usr/lib64/libenca.so.0.5.1 7f6443a96000-7f6443a98000 r--p 0002d000 09:00 2229615 /usr/lib64/libenca.so.0.5.1 7f6443a98000-7f6443a9c000 rw-p 0002f000 09:00 2229615 /usr/lib64/libenca.so.0.5.1 7f6443a9c000-7f6443ad6000 r-xp 00000000 09:00 2231899 /usr/lib64/libfontconfig.so.1.8.0 7f6443ad6000-7f6443cd6000 ---p 0003a000 09:00 2231899 /usr/lib64/libfontconfig.so.1.8.0 7f6443cd6000-7f6443cd8000 r--p 0003a000 09:00 2231899 /usr/lib64/libfontconfig.so.1.8.0 7f6443cd8000-7f6443cd9000 rw-p 0003c000 09:00 2231899 /usr/lib64/libfontconfig.so.1.8.0 7f6443cd9000-7f6443cef000 r-xp 00000000 09:00 2231540 /usr/lib64/libfribidi.so.0.3.1 7f6443cef000-7f6443eee000 ---p 00016000 09:00 2231540 /usr/lib64/libfribidi.so.0.3.1 7f6443eee000-7f6443eef000 r--p 00015000 09:00 2231540 /usr/lib64/libfribidi.so.0.3.1 7f6443eef000-7f6443ef0000 rw-p 00016000 09:00 2231540 /usr/lib64/libfribidi.so.0.3.1 7f6443ef0000-7f6443f2c000 r-xp 00000000 09:00 2235846 /usr/lib64/libpng16.so.16.6.0 7f6443f2c000-7f644412b000 ---p 0003c000 09:00 2235846 /usr/lib64/libpng16.so.16.6.0 7f644412b000-7f644412c000 r--p 0003b000 09:00 2235846 /usr/lib64/libpng16.so.16.6.0 7f644412c000-7f644412d000 rw-p 0003c000 09:00 2235846 /usr/lib64/libpng16.so.16.6.0 7f644412d000-7f6444136000 r-xp 00000000 09:00 2225091 /usr/lib64/libXrandr.so.2.2.0 7f6444136000-7f6444335000 ---p 00009000 09:00 2225091 /usr/lib64/libXrandr.so.2.2.0 7f6444335000-7f6444336000 r--p 00008000 09:00 2225091 /usr/lib64/libXrandr.so.2.2.0 7f6444336000-7f6444337000 rw-p 00009000 09:00 2225091 /usr/lib64/libXrandr.so.2.2.0 7f6444337000-7f6444381000 r-xp 00000000 09:00 2233798 /usr/lib64/libpulse.so.0.16.2 7f6444381000-7f6444581000 ---p 0004a000 09:00 2233798 /usr/lib64/libpulse.so.0.16.2 7f6444581000-7f6444582000 r--p 0004a000 09:00 2233798 /usr/lib64/libpulse.so.0.16.2 7f6444582000-7f6444583000 rw-p 0004b000 09:00 2233798 /usr/lib64/libpulse.so.0.16.2 7f6444583000-7f6444586000 r-xp 00000000 09:00 2225538 /usr/lib64/libpulse-simple.so.0.0.4 7f6444586000-7f6444786000 ---p 00003000 09:00 2225538 /usr/lib64/libpulse-simple.so.0.0.4 7f6444786000-7f6444787000 r--p 00003000 09:00 2225538 /usr/lib64/libpulse-simple.so.0.0.4 7f6444787000-7f6444788000 rw-p 00004000 09:00 2225538 /usr/lib64/libpulse-simple.so.0.0.4 7f6444788000-7f6444793000 r-xp 00000000 09:00 2237246 /usr/lib64/libesd.so.0.2.39 7f6444793000-7f6444992000 ---p 0000b000 09:00 2237246 /usr/lib64/libesd.so.0.2.39 7f6444992000-7f6444993000 r--p 0000a000 09:00 2237246 /usr/lib64/libesd.so.0.2.39 7f6444993000-7f6444994000 rw-p 0000b000 09:00 2237246 /usr/lib64/libesd.so.0.2.39 7f6444994000-7f64449aa000 r-xp 00000000 09:00 2093133 /lib64/libgcc_s.so.1 7f64449aa000-7f6444ba9000 ---p 00016000 09:00 2093133 /lib64/libgcc_s.so.1 7f6444ba9000-7f6444baa000 r--p 00015000 09:00 2093133 /lib64/libgcc_s.so.1 7f6444baa000-7f6444bab000 rw-p 00016000 09:00 2093133 /lib64/libgcc_s.so.1 7f6444bab000-7f6444c95000 r-xp 00000000 09:00 2232299 /usr/lib64/libstdc++.so.6.0.18 7f6444c95000-7f6444e94000 ---p 000ea000 09:00 2232299 /usr/lib64/libstdc++.so.6.0.18 7f6444e94000-7f6444e9c000 r--p 000e9000 09:00 2232299 /usr/lib64/libstdc++.so.6.0.18 7f6444e9c000-7f6444e9e000 rw-p 000f1000 09:00 2232299 /usr/lib64/libstdc++.so.6.0.18 7f6444e9e000-7f6444eb3000 rw-p 00000000 00:00 0 7f6444eb3000-7f6444eba000 r-xp 00000000 09:00 2106947 /lib64/librt-2.18.so 7f6444eba000-7f64450b9000 ---p 00007000 09:00 2106947 /lib64/librt-2.18.so 7f64450b9000-7f64450ba000 r--p 00006000 09:00 2106947 /lib64/librt-2.18.so 7f64450ba000-7f64450bb000 rw-p 00007000 09:00 2106947 /lib64/librt-2.18.so 7f64450bb000-7f64450d9000 r-xp 00000000 09:00 2240843 /usr/lib64/libxcb.so.1.1.0 7f64450d9000-7f64452d8000 ---p 0001e000 09:00 2240843 /usr/lib64/libxcb.so.1.1.0 7f64452d8000-7f64452d9000 r--p 0001d000 09:00 2240843 /usr/lib64/libxcb.so.1.1.0 7f64452d9000-7f64452da000 rw-p 0001e000 09:00 2240843 /usr/lib64/libxcb.so.1.1.0 7f64452da000-7f644547f000 r-xp 00000000 09:00 2093272 /lib64/libc-2.18.so 7f644547f000-7f644567f000 ---p 001a5000 09:00 2093272 /lib64/libc-2.18.so 7f644567f000-7f6445683000 r--p 001a5000 09:00 2093272 /lib64/libc-2.18.so 7f6445683000-7f6445685000 rw-p 001a9000 09:00 2093272 /lib64/libc-2.18.so 7f6445685000-7f6445689000 rw-p 00000000 00:00 0 7f6445689000-7f644569e000 r-xp 00000000 09:00 2093071 /lib64/libz.so.1.2.8 7f644569e000-7f644589d000 ---p 00015000 09:00 2093071 /lib64/libz.so.1.2.8 7f644589d000-7f644589e000 r--p 00014000 09:00 2093071 /lib64/libz.so.1.2.8 7f644589e000-7f644589f000 rw-p 00015000 09:00 2093071 /lib64/libz.so.1.2.8
Change History (9)
comment:1 by , 11 years ago
Keywords: | regression added |
---|---|
Priority: | normal → important |
Reproduced by developer: | set |
Status: | new → open |
comment:2 by , 11 years ago
gdb trace with ffprobe_g -show_packets <input>
ffprobe version N-62757-g18af0ce Copyright (c) 2007-2014 the FFmpeg developers
built on Apr 28 2014 14:30:07 with gcc 4.7 (SUSE Linux)
configuration:
libavutil 52. 79.100 / 52. 79.100
libavcodec 55. 59.100 / 55. 59.100
libavformat 55. 37.101 / 55. 37.101
libavdevice 55. 13.100 / 55. 13.100
libavfilter 4. 4.100 / 4. 4.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 18.100 / 0. 18.100
#0 0xb7ade245 in raise () from /lib/libc.so.6 #1 0xb7adfac3 in abort () from /lib/libc.so.6 #2 0xb7b20035 in __libc_message () from /lib/libc.so.6 #3 0xb7b2663b in malloc_printerr () from /lib/libc.so.6 #4 0xb7b26d05 in munmap_chunk () from /lib/libc.so.6 #5 0x089af3c2 in av_free (ptr=<optimized out>) at libavutil/mem.c:232 #6 av_freep (arg=0xbfffe4bc) at libavutil/mem.c:239 #7 0x089a8577 in av_frame_free (frame=frame@entry=0xbfffe4bc) at libavutil/frame.c:129 #8 0x080c6990 in read_interval_packets (w=w@entry=0x9371b00, fmt_ctx=fmt_ctx@entry=0x93743a0, interval=interval@entry=0xbfffeb30, cur_ts=cur_ts@entry=0xbfffead0) at ffprobe.c:1943 #9 0x080b79cb in read_packets (fmt_ctx=0x93743a0, w=0x9371b00) at ffprobe.c:1958 #10 probe_file (filename=0x93743a0 " \233\241\b\200\327\313\b", wctx=<optimized out>) at ffprobe.c:2398 #11 main (argc=3, argv=0xbfffec64) at ffprobe.c:2969
comment:3 by , 11 years ago
It is not the case of multiple av_frame_free
I placed break point at av_frame_free and saw all frames memory address,
address that is given to av_free_frame when it gives segmentation fault is not matching to previous allocated frame memory.
$352 = (AVFrame ) 0xbfffe7d0
353-421 repeat same memory
$424 = (AVFrame ) 0xbfffe7d0
$425 = (AVFrame ) 0x9500954
$426 = (AVFrame ) 0x9501e14
$427 = (AVFrame ) 0x9501db4
[New Thread 0xb72f3b40 (LWP 31853)]
[New Thread 0xb6a6ab40 (LWP 31854)]
[New Thread 0xb61e1b40 (LWP 31855)]
[New Thread 0xb5958b40 (LWP 31856)]
[New Thread 0xb50cfb40 (LWP 31857)]
$428 = (AVFrame ) 0xbfffe954
* Error in `/home/anshul/Software/ffmpeg_last/ffprobe_g': munmap_chunk(): invalid pointer: 0x095961a0 *
comment:4 by , 11 years ago
Owner: | set to |
---|
comment:5 by , 11 years ago
Analyzed by developer: | set |
---|---|
Cc: | added |
comment:6 by , 11 years ago
Analyzed by developer: | unset |
---|
comment:7 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
comment:8 by , 11 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Still reproducible with 134206c
comment:9 by , 11 years ago
Analyzed by developer: | set |
---|---|
Resolution: | → fixed |
Status: | reopened → closed |
Should be fixed in:
commit 73a60633143b7c51333a0772b45a47282ac445b6 Author: Anshul <er.anshul.maheshwari@gmail.com> Date: Wed May 14 22:21:58 2014 +0530 ffprobe: fix crash happening because of new streams occuring Fix trac ticket #3603. Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
One of the invalid reads that are also reproducible without
-of xml -select_streams 1111
is a regression since 29b9aee4