[FFmpeg-trac] #255(undetermined:open): incorrect checksum for freed object

FFmpeg trac at avcodec.org
Wed Jun 1 20:18:40 CEST 2011


#255: incorrect checksum for freed object
--------------------+---------------------------
Reporter:  zimbatm  |       Owner:
    Type:  defect   |      Status:  open
Priority:  normal   |   Component:  undetermined
 Version:  git      |  Resolution:
Keywords:  malloc   |  Blocked By:
Blocking:           |  Reproduced:  0
Analyzed:  0        |
--------------------+---------------------------

Comment (by zimbatm):

 Just changed and compiled the following, but no error on startup

 {{{
 diff --git a/ffmpeg.c b/ffmpeg.c
 index 220feb2..19d0892 100644
 --- a/ffmpeg.c
 +++ b/ffmpeg.c
 @@ -4475,6 +4475,9 @@ int main(int argc, char **argv)
  {
      int64_t ti;

 +    int ret = av_malloc(1);
 +    printf("malloc ret: %d\n", ret);
 +
      av_log_set_flags(AV_LOG_SKIP_REPEATED);

      if(argc>1 && !strcmp(argv[1], "-d")){
 }}}

 {{{
 ./ffmpeg -i kites.mp4
 ffmpeg
 malloc ret: 21042336
 ffmpeg version git-N-30430-ga52f598, Copyright (c) 2000-2011 the FFmpeg
 developers
   built on Jun  1 2011 12:17:58 with gcc 4.2.1 (Apple Inc. build 5666)
 (dot 3)
   configuration: --prefix=/Users/zimbatm/code/panda/ffmpeg-head/runtime
 --enable-static --disable-shared --enable-postproc --enable-nonfree
 --enable-libx264 --enable-gpl --enable-libfaac --enable-libmp3lame
 --enable-libtheora --enable-libxvid --enable-libvorbis --enable-libgsm
 --enable-avfilter --enable-libopencore-amrnb --enable-libopencore-amrwb
 --enable-version3 --disable-ffplay --disable-ffserver --disable-ffprobe
 --disable-network --disable-devices --disable-doc --extra-cflags=--static
 --extra-ldflags= --bindir=/Users/zimbatm/code/panda/ffmpeg-head/dist/bin
 --incdir=/Users/zimbatm/code/panda/ffmpeg-head/dist/include
 --libdir=/Users/zimbatm/code/panda/ffmpeg-head/dist/lib
 --prefix=/usr/local
   libavutil    51.  3. 0 / 51.  3. 0
   libavcodec   53.  6. 1 / 53.  6. 1
   libavformat  53.  2. 0 / 53.  2. 0
   libavdevice  53.  1. 0 / 53.  1. 0
   libavfilter   2. 11. 0 /  2. 11. 0
   libswscale    0. 14. 0 /  0. 14. 0
   libpostproc  51.  2. 0 / 51.  2. 0
 ffmpeg(59911) malloc: *** error for object 0x101412138: incorrect checksum
 for freed object - object was probably modified after being freed.
 *** set a breakpoint in malloc_error_break to debug
 [1]    59911 abort      ./ffmpeg -i kites.mp4
 }}}

-- 
Ticket URL: <http://avcodec.org/trac/ffmpeg/ticket/255#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list