Opened 12 years ago

Closed 12 years ago

#874 closed defect (fixed)

double free or corruption on exit when accessing windows media/asf via rtsp

Reported by: Kyle Owned by:
Priority: important Component: avformat
Version: git-master Keywords: regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Whenever I access a windows media/asf based stream via rtsp on exit I get the following error followed by a backtrace dump:
"* glibc detected * ffmpeg: double free or corruption (!prev): 0x0000000000e123d0 *"

This happens with ffmpeg, ffplay and ffprobe. The streams play fine with ffplay, encode fine with ffmpeg and display the data fine with ffprobe, it happens on exit. Darwin/Wowza based rtsp streams exit fine. This began about a month ago.

OS: Ubuntu 11.10 x86_64

Full output of command line:

ffprobe rtsp://a1797.l8175151796.c81751.g.lm.akamaistream.net/D/1797/81751/v0001/reflector:51796
ffprobe version N-36434-g4452d58, Copyright (c) 2007-2012 the FFmpeg developers
  built on Jan  4 2012 15:13:45 with gcc 4.6.1
  configuration: --prefix=/usr --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-postproc --enable-libx264 --enable-frei0r --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libmp3lame --enable-libtheora --enable-libopenjpeg --enable-libdirac --enable-libvpx --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libxvid --enable-libfaac --cpu=amdfam10 --arch=x86_64 --enable-x11grab --enable-libxavs --enable-libnut --enable-libfreetype --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libcelt --enable-openal --enable-libcdio --enable-libaacplus --enable-libmodplug --enable-libpulse --enable-gnutls --enable-openssl --enable-libv4l2 --enable-libass --enable-avconv
  libavutil      51. 34.100 / 51. 34.100
  libavcodec     53. 53.100 / 53. 53.100
  libavformat    53. 29.100 / 53. 29.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 57.101 /  2. 57.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  5.100 /  0.  5.100
  libpostproc    51.  2.100 / 51.  2.100
[rtsp @ 0x2142520] method SETUP failed: 461 Unsupported Transport
[wmv3 @ 0x2169680] Extra data: 8 bits left, value: 0
Input #0, rtsp, from 'rtsp://a1797.l8175151796.c81751.g.lm.akamaistream.net/D/1797/81751/v0001/reflector:51796':
  Metadata:
    title           : HSN Live
    artist          : root
    copyright       : Copyright HSN 2010
    WMFSDKVersion   : 10.00.00.4007
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
  Duration: 00:00:00.00, start: 1061896.591000, bitrate: N/A
    Stream #0:0: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 2 channels, s16, 48 kb/s
    Stream #0:1: Data: none
    Stream #0:2: Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 560x420, 700 kb/s, 14.99 tbr, 1k tbn, 1k tbc
Unsupported codec with id 0 for input stream 1
[wmv3 @ 0x2169680] Extra data: 8 bits left, value: 0
*** glibc detected *** ffprobe: free(): invalid pointer: 0x0000000002147d90 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x78a96)[0x7f877d916a96]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7f877d91ad7c]
/usr/lib/libavformat.so.53(avio_close+0x15)[0x7f877f8aa555]
/usr/lib/libavformat.so.53(+0xaad9d)[0x7f877f91dd9d]
/usr/lib/libavformat.so.53(+0xadcca)[0x7f877f920cca]
/usr/lib/libavformat.so.53(avformat_close_input+0xde)[0x7f877f937f9e]
ffprobe[0x4056bf]
ffprobe[0x4031c7]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f877d8bf30d]
ffprobe[0x403279]
======= Memory map: ========
00400000-0040d000 r-xp 00000000 08:06 788143                             /usr/bin/ffprobe
0060d000-0060e000 r--p 0000d000 08:06 788143                             /usr/bin/ffprobe
0060e000-0060f000 rw-p 0000e000 08:06 788143                             /usr/bin/ffprobe
020fb000-0222d000 rw-p 00000000 00:00 0                                  [heap]
7f876c000000-7f876c021000 rw-p 00000000 00:00 0 
7f876c021000-7f8770000000 ---p 00000000 00:00 0 
7f8771edd000-7f8771ee3000 r-xp 00000000 08:06 13133001                   /lib/x86_64-linux-gnu/libnss_dns-2.13.so
7f8771ee3000-7f87720e2000 ---p 00006000 08:06 13133001                   /lib/x86_64-linux-gnu/libnss_dns-2.13.so
7f87720e2000-7f87720e3000 r--p 00005000 08:06 13133001                   /lib/x86_64-linux-gnu/libnss_dns-2.13.so
7f87720e3000-7f87720e4000 rw-p 00006000 08:06 13133001                   /lib/x86_64-linux-gnu/libnss_dns-2.13.so
7f87720e4000-7f87720e6000 r-xp 00000000 08:06 13133359                   /lib/libnss_mdns4_minimal.so.2
7f87720e6000-7f87722e5000 ---p 00002000 08:06 13133359                   /lib/libnss_mdns4_minimal.so.2
7f87722e5000-7f87722e6000 r--p 00001000 08:06 13133359                   /lib/libnss_mdns4_minimal.so.2
7f87722e6000-7f87722e7000 rw-p 00002000 08:06 13133359                   /lib/libnss_mdns4_minimal.so.2
7f87722e7000-7f87722f3000 r-xp 00000000 08:06 13132999                   /lib/x86_64-linux-gnu/libnss_files-2.13.so
7f87722f3000-7f87724f2000 ---p 0000c000 08:06 13132999                   /lib/x86_64-linux-gnu/libnss_files-2.13.so
7f87724f2000-7f87724f3000 r--p 0000b000 08:06 13132999                   /lib/x86_64-linux-gnu/libnss_files-2.13.so
7f87724f3000-7f87724f4000 rw-p 0000c000 08:06 13132999                   /lib/x86_64-linux-gnu/libnss_files-2.13.so
7f87724f4000-7f877253c000 r-xp 00000000 08:06 792535                     /usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0
7f877253c000-7f877273c000 ---p 00048000 08:06 792535                     /usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0
7f877273c000-7f877273d000 r--p 00048000 08:06 792535                     /usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0
7f877273d000-7f877273e000 rw-p 00049000 08:06 792535                     /usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0
7f877273e000-7f8772755000 r-xp 00000000 08:06 13133000                   /lib/x86_64-linux-gnu/libresolv-2.13.so
7f8772755000-7f8772955000 ---p 00017000 08:06 13133000                   /lib/x86_64-linux-gnu/libresolv-2.13.so
7f8772955000-7f8772956000 r--p 00017000 08:06 13133000                   /lib/x86_64-linux-gnu/libresolv-2.13.so
7f8772956000-7f8772957000 rw-p 00018000 08:06 13133000                   /lib/x86_64-linux-gnu/libresolv-2.13.so
7f8772957000-7f8772959000 rw-p 00000000 00:00 0 
7f8772959000-7f8772970000 r-xp 00000000 08:06 13132978                   /lib/x86_64-linux-gnu/libnsl-2.13.so
7f8772970000-7f8772b6f000 ---p 00017000 08:06 13132978                   /lib/x86_64-linux-gnu/libnsl-2.13.so
7f8772b6f000-7f8772b70000 r--p 00016000 08:06 13132978                   /lib/x86_64-linux-gnu/libnsl-2.13.so
7f8772b70000-7f8772b71000 rw-p 00017000 08:06 13132978                   /lib/x86_64-linux-gnu/libnsl-2.13.so
7f8772b71000-7f8772b73000 rw-p 00000000 00:00 0 
7f8772b73000-7f8772b76000 r-xp 00000000 08:06 13133052                   /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7f8772b76000-7f8772d75000 ---p 00003000 08:06 13133052                   /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7f8772d75000-7f8772d76000 r--p 00002000 08:06 13133052                   /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7f8772d76000-7f8772d77000 rw-p 00003000 08:06 13133052                   /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7f8772d77000-7f8772d9e000 r-xp 00000000 08:06 13133134                   /lib/x86_64-linux-gnu/libexpat.so.1.5.2
7f8772d9e000-7f8772f9e000 ---p 00027000 08:06 13133134                   /lib/x86_64-linux-gnu/libexpat.so.1.5.2
7f8772f9e000-7f8772fa0000 r--p 00027000 08:06 13133134                   /lib/x86_64-linux-gnu/libexpat.so.1.5.2
7f8772fa0000-7f8772fa1000 rw-p 00029000 08:06 13133134                   /lib/x86_64-linux-gnu/libexpat.so.1.5.2
7f8772fa1000-7f8772fa6000 r-xp 00000000 08:06 793620                     /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7f8772fa6000-7f87731a5000 ---p 00005000 08:06 793620                     /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7f87731a5000-7f87731a6000 r--p 00004000 08:06 793620                     /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7f87731a6000-7f87731a7000 rw-p 00005000 08:06 793620                     /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7f87731a7000-7f8773207000 r-xp 00000000 08:06 797534                     /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.24
7f8773207000-7f8773407000 ---p 00060000 08:06 797534                     /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.24
7f8773407000-7f8773409000 r--p 00060000 08:06 797534                     /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.24
7f8773409000-7f877340a000 rw-p 00062000 08:06 797534                     /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.24
7f877340a000-7f877340e000 rw-p 00000000 00:00 0 Aborted

gdb:

gdb ffprobe_g
GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
Copyright (C) 2011 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-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /usr/src/ffmpeg/ffprobe_g...done.
(gdb) run rtsp://a1797.l8175151796.c81751.g.lm.akamaistream.net/D/1797/81751/v0001/reflector:51796
Starting program: /usr/src/ffmpeg/ffprobe_g rtsp://a1797.l8175151796.c81751.g.lm.akamaistream.net/D/1797/81751/v0001/reflector:51796
[Thread debugging using libthread_db enabled]
ffprobe version N-36434-g4452d58, Copyright (c) 2007-2012 the FFmpeg developers
  built on Jan  4 2012 15:13:45 with gcc 4.6.1
  configuration: --prefix=/usr --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-postproc --enable-libx264 --enable-frei0r --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libmp3lame --enable-libtheora --enable-libopenjpeg --enable-libdirac --enable-libvpx --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libxvid --enable-libfaac --cpu=amdfam10 --arch=x86_64 --enable-x11grab --enable-libxavs --enable-libnut --enable-libfreetype --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libcelt --enable-openal --enable-libcdio --enable-libaacplus --enable-libmodplug --enable-libpulse --enable-gnutls --enable-openssl --enable-libv4l2 --enable-libass --enable-avconv
  libavutil      51. 34.100 / 51. 34.100
  libavcodec     53. 53.100 / 53. 53.100
  libavformat    53. 29.100 / 53. 29.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 57.101 /  2. 57.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  5.100 /  0.  5.100
  libpostproc    51.  2.100 / 51.  2.100
[rtsp @ 0x656520] method SETUP failed: 461 Unsupported Transport
[wmv3 @ 0x67d680] Extra data: 8 bits left, value: 0
Input #0, rtsp, from 'rtsp://a1797.l8175151796.c81751.g.lm.akamaistream.net/D/1797/81751/v0001/reflector:51796':
  Metadata:
    title           : HSN Live
    artist          : root
    copyright       : Copyright HSN 2010
    WMFSDKVersion   : 10.00.00.4007
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
  Duration: 00:00:00.00, start: 1061967.894000, bitrate: N/A
    Stream #0:0: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 2 channels, s16, 48 kb/s
    Stream #0:1: Data: none
    Stream #0:2: Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 560x420, 700 kb/s, 14.99 tbr, 1k tbn, 1k tbc
Unsupported codec with id 0 for input stream 1
[wmv3 @ 0x67d680] Extra data: 8 bits left, value: 0
*** glibc detected *** /usr/src/ffmpeg/ffprobe_g: free(): invalid pointer: 0x000000000065bd90 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x78a96)[0x7ffff56a8a96]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7ffff56acd7c]
/usr/lib/libavformat.so.53(avio_close+0x15)[0x7ffff763c555]
/usr/lib/libavformat.so.53(+0xaad9d)[0x7ffff76afd9d]
/usr/lib/libavformat.so.53(+0xadcca)[0x7ffff76b2cca]
/usr/lib/libavformat.so.53(avformat_close_input+0xde)[0x7ffff76c9f9e]
/usr/src/ffmpeg/ffprobe_g[0x4056bf]
/usr/src/ffmpeg/ffprobe_g[0x4031c7]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7ffff565130d]
/usr/src/ffmpeg/ffprobe_g[0x403279]
======= Memory map: ========
00400000-0040d000 r-xp 00000000 08:06 920230                             /usr/src/ffmpeg/ffprobe_g
0060d000-0060e000 r--p 0000d000 08:06 920230                             /usr/src/ffmpeg/ffprobe_g
0060e000-0060f000 rw-p 0000e000 08:06 920230                             /usr/src/ffmpeg/ffprobe_g
0060f000-00708000 rw-p 00000000 00:00 0                                  [heap]
7fffe4000000-7fffe4021000 rw-p 00000000 00:00 0 
7fffe4021000-7fffe8000000 ---p 00000000 00:00 0 
7fffe9c6f000-7fffe9c75000 r-xp 00000000 08:06 13133001                   /lib/x86_64-linux-gnu/libnss_dns-2.13.so
7fffe9c75000-7fffe9e74000 ---p 00006000 08:06 13133001                   /lib/x86_64-linux-gnu/libnss_dns-2.13.so
7fffe9e74000-7fffe9e75000 r--p 00005000 08:06 13133001                   /lib/x86_64-linux-gnu/libnss_dns-2.13.so
7fffe9e75000-7fffe9e76000 rw-p 00006000 08:06 13133001                   /lib/x86_64-linux-gnu/libnss_dns-2.13.so
7fffe9e76000-7fffe9e78000 r-xp 00000000 08:06 13133359                   /lib/libnss_mdns4_minimal.so.2
7fffe9e78000-7fffea077000 ---p 00002000 08:06 13133359                   /lib/libnss_mdns4_minimal.so.2
7fffea077000-7fffea078000 r--p 00001000 08:06 13133359                   /lib/libnss_mdns4_minimal.so.2
7fffea078000-7fffea079000 rw-p 00002000 08:06 13133359                   /lib/libnss_mdns4_minimal.so.2
7fffea079000-7fffea085000 r-xp 00000000 08:06 13132999                   /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fffea085000-7fffea284000 ---p 0000c000 08:06 13132999                   /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fffea284000-7fffea285000 r--p 0000b000 08:06 13132999                   /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fffea285000-7fffea286000 rw-p 0000c000 08:06 13132999                   /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fffea286000-7fffea2ce000 r-xp 00000000 08:06 792535                     /usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0
7fffea2ce000-7fffea4ce000 ---p 00048000 08:06 792535                     /usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0
7fffea4ce000-7fffea4cf000 r--p 00048000 08:06 792535                     /usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0
7fffea4cf000-7fffea4d0000 rw-p 00049000 08:06 792535                     /usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0
7fffea4d0000-7fffea4e7000 r-xp 00000000 08:06 13133000                   /lib/x86_64-linux-gnu/libresolv-2.13.so
7fffea4e7000-7fffea6e7000 ---p 00017000 08:06 13133000                   /lib/x86_64-linux-gnu/libresolv-2.13.so
7fffea6e7000-7fffea6e8000 r--p 00017000 08:06 13133000                   /lib/x86_64-linux-gnu/libresolv-2.13.so
7fffea6e8000-7fffea6e9000 rw-p 00018000 08:06 13133000                   /lib/x86_64-linux-gnu/libresolv-2.13.so
7fffea6e9000-7fffea6eb000 rw-p 00000000 00:00 0 
7fffea6eb000-7fffea702000 r-xp 00000000 08:06 13132978                   /lib/x86_64-linux-gnu/libnsl-2.13.so
7fffea702000-7fffea901000 ---p 00017000 08:06 13132978                   /lib/x86_64-linux-gnu/libnsl-2.13.so
7fffea901000-7fffea902000 r--p 00016000 08:06 13132978                   /lib/x86_64-linux-gnu/libnsl-2.13.so
7fffea902000-7fffea903000 rw-p 00017000 08:06 13132978                   /lib/x86_64-linux-gnu/libnsl-2.13.so
7fffea903000-7fffea905000 rw-p 00000000 00:00 0 
7fffea905000-7fffea908000 r-xp 00000000 08:06 13133052                   /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7fffea908000-7fffeab07000 ---p 00003000 08:06 13133052                   /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7fffeab07000-7fffeab08000 r--p 00002000 08:06 13133052                   /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7fffeab08000-7fffeab09000 rw-p 00003000 08:06 13133052                   /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7fffeab09000-7fffeab30000 r-xp 00000000 08:06 13133134                   /lib/x86_64-linux-gnu/libexpat.so.1.5.2
7fffeab30000-7fffead30000 ---p 00027000 08:06 13133134                   /lib/x86_64-linux-gnu/libexpat.so.1.5.2
7fffead30000-7fffead32000 r--p 00027000 08:06 13133134                   /lib/x86_64-linux-gnu/libexpat.so.1.5.2
7fffead32000-7fffead33000 rw-p 00029000 08:06 13133134                   /lib/x86_64-linux-gnu/libexpat.so.1.5.2
7fffead33000-7fffead38000 r-xp 00000000 08:06 793620                     /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7fffead38000-7fffeaf37000 ---p 00005000 08:06 793620                     /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7fffeaf37000-7fffeaf38000 r--p 00004000 08:06 793620                     /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7fffeaf38000-7fffeaf39000 rw-p 00005000 08:06 793620                     /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7fffeaf39000-7fffeaf99000 r-xp 00000000 08:06 797534                     /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.24
7fffeaf99000-7fffeb199000 ---p 00060000 08:06 797534                     /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.24
7fffeb199000-7fffeb19b000 r--p 00060000 08:06 797534                     /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.24
7fffeb19b000-7fffeb19c000 rw-p 00062000 08:06 797534                     /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.24
7fffeb19c000-7fffeb1a0000 rw-p 00000000 00:00 0 
7fffeb1a0000-7fffeb1a8000 r-xp 00000000 08:06 13132965                   /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7fffeb1a8000-7fffeb3a7000 ---p 00008000 08:06 13132965                   /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7fffeb3a7000-7fffeb3a8000 r--p 00007000 08:06 13132965                   /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7fffeb3a8000-7fffeb3a9000 rw-p 00008000 08:06 13132965                   /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7fffeb3a9000-7fffeb3e2000 r-xp 00000000 08:06 800040                     /usr/lib/x86_64-linux-gnu/libjpeg.so.8.3.0
7fffeb3e2000-7fffeb5e1000 ---p 00039000 08:06 800040                     /usr/lib/x86_64-linux-gnu/libjpeg.so.8.3.0
7fffeb5e1000-7fffeb5e2000 r--p 00038000 08:06 800040                     /usr/lib/x86_64-linux-gnu/libjpeg.so.8.3.0
7fffeb5e2000-7fffeb5e3000 rw-p 00039000 08:06 800040                     /usr/lib/x86_64-linux-gnu/libjpeg.so.8.3.0
7fffeb5e3000-7fffeb5e8000 r-xp 00000000 08:06 795355                     /usr/lib/libdnet.so.2.43.2
7fffeb5e8000-7fffeb7e7000 ---p 00005000 08:06 795355                     /usr/lib/libdnet.so.2.43.2
Program received signal SIGABRT, Aborted.
0x00007ffff56663a5 in __GI_raise (sig=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64	../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
	in ../nptl/sysdeps/unix/sysv/linux/raise.c

gdb backtrace:

#0  0x00007ffff56663a5 in __GI_raise (sig=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007ffff5669b0b in __GI_abort () at abort.c:92
#2  0x00007ffff569e113 in __libc_message (do_abort=2, 
    fmt=0x7ffff578f0d8 "*** glibc detected *** %s: %s: 0x%s ***\n")
    at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#3  0x00007ffff56a8a96 in malloc_printerr (action=3, 
    str=0x7ffff578c0ef "free(): invalid pointer", ptr=<optimized out>)
    at malloc.c:6283
#4  0x00007ffff56acd7c in __GI___libc_free (mem=<optimized out>)
    at malloc.c:3738
#5  0x00007ffff763c555 in avio_close () from /usr/lib/libavformat.so.53
#6  0x00007ffff76afd9d in ?? () from /usr/lib/libavformat.so.53
#7  0x00007ffff76b2cca in ?? () from /usr/lib/libavformat.so.53
#8  0x00007ffff76c9f9e in avformat_close_input ()
   from /usr/lib/libavformat.so.53
#9  0x00000000004056bf in probe_file (filename=<optimized out>)
    at ffprobe.c:1424
#10 0x00000000004031c7 in main (argc=2, argv=0x7fffffffe168) at ffprobe.c:1533

Change History (5)

comment:1 by Carl Eugen Hoyos, 12 years ago

Keywords: regression added
Priority: normalimportant
Reproduced by developer: set
Status: newopen

For future bug-reports:
If a problem is reproducible with ffmpeg (the application), please do not report it for ffprobe (or ffplay), and do not post ffprobe (or ffplay) output but only ffmpeg output.

If you provide a backtrace, please make sure you did not compile with "--enable-shared", because it makes the backtrace useless (in case of a double free, valgrind output is often more useful than a backtrace).

comment:2 by Kyle, 12 years ago

Do you want me to recompile and post a new output or were you able to get what you needed to know from reproducing it?

comment:3 by Carl Eugen Hoyos, 12 years ago

==11844== Memcheck, a memory error detector
==11844== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==11844== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
==11844== Command: ffmpeg_g -i rtsp://a1797.l8175151796.c81751.g.lm.akamaistream.net/D/1797/81751/v0001/reflector:51796
==11844==
ffmpeg version N-36442-gff7f198, Copyright (c) 2000-2012 the FFmpeg developers
  built on Jan  4 2012 23:15:41 with gcc 4.5.3
  configuration: --cc='/usr/local/gcc-4.5.3/bin/gcc -m32'
  libavutil      51. 34.100 / 51. 34.100
  libavcodec     53. 53.100 / 53. 53.100
  libavformat    53. 29.100 / 53. 29.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 57.101 /  2. 57.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  5.100 /  0.  5.100
[rtsp @ 0x6ccdb40] method SETUP failed: 461 Unsupported Transport
[wmv3 @ 0x6d1a4a0] Extra data: 8 bits left, value: 0
Input #0, rtsp, from 'rtsp://a1797.l8175151796.c81751.g.lm.akamaistream.net/D/1797/81751/v0001/reflector:51796':
  Metadata:
    title           : HSN Live
    artist          : root
    copyright       : Copyright HSN 2010
    WMFSDKVersion   : 10.00.00.4007
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
  Duration: 00:00:00.00, start: 5130.077000, bitrate: N/A
    Stream #0:0: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 2 channels, s16, 48 kb/s
    Stream #0:1: Data: none
    Stream #0:2: Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 560x420, 700 kb/s, 29.97 tbr, 1k tbn, 1k tbc
At least one output file must be specified
==11844== Invalid read of size 4
==11844==    at 0x809E47F: avio_close (aviobuf.c:995)
==11844==  Address 0x6d0da14 is 20 bytes inside a block of size 104 free'd
==11844==    at 0x690A8A6: free (in /usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==11844==    by 0x811EABA: asfrtp_free_context (rtpdec_asf.c:289)
==11844==
==11844== Invalid read of size 4
==11844==    at 0x809E482: avio_close (aviobuf.c:997)
==11844==  Address 0x6d0da04 is 4 bytes inside a block of size 104 free'd
==11844==    at 0x690A8A6: free (in /usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==11844==    by 0x811EABA: asfrtp_free_context (rtpdec_asf.c:289)
==11844==
==11844== Invalid free() / delete / delete[]
==11844==    at 0x690A8A6: free (in /usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==11844==    by 0x809E48B: avio_close (aviobuf.c:997)
==11844==  Address 0x6edbb18 is 0 bytes inside a block of size 7,976 free'd
==11844==    at 0x690A8A6: free (in /usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==11844==    by 0x86EB791: av_freep (mem.c:173)
==11844==
==11844== Invalid free() / delete / delete[]
==11844==    at 0x690A8A6: free (in /usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==11844==    by 0x809E493: avio_close (aviobuf.c:998)
==11844==  Address 0x6d0da04 is 4 bytes inside a block of size 104 free'd
==11844==    at 0x690A8A6: free (in /usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==11844==    by 0x811EABA: asfrtp_free_context (rtpdec_asf.c:289)
==11844==
==11844==
==11844== HEAP SUMMARY:
==11844==     in use at exit: 0 bytes in 0 blocks
==11844==   total heap usage: 432 allocs, 434 frees, 2,157,714 bytes allocated
==11844==
==11844== All heap blocks were freed -- no leaks are possible
==11844==
==11844== For counts of detected and suppressed errors, rerun with: -v
==11844== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 3 from 3)

in reply to:  2 comment:4 by Carl Eugen Hoyos, 12 years ago

Component: undeterminedavformat

Replying to kyl416:

Do you want me to recompile and post a new output

No, I was just commenting for future reports.

comment:5 by Carl Eugen Hoyos, 12 years ago

Resolution: fixed
Status: openclosed

Fixed by Michael.

Note: See TracTickets for help on using tickets.