Opened 11 years ago

Closed 9 years ago

Last modified 9 years ago

#1148 closed defect (invalid)

for an .ogg file, LeakDefinitelyLost in Valgrind

Reported by: aslani@… Owned by: reimar
Priority: normal Component: demuxer
Version: HEAD Severity: normal
Keywords: Cc: catchconv-bugreports@…
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

For this .ogg file, Valgrind reports Leak_DefinitelyLost in the latest subversion of Mplayer ,SVN-r27245-4.1.2

System Info:
OS: Debian Etch Linux, Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz

uname -a: Linux debian 2.6.18-4-486 #1 Mon Mar 26 16:39:10 UTC 2007 i686 GNU/Linux

to reproduce:
wget http://www.metafuzz.com/testcases/47197-4561-2185667763-Leak_DefinitelyLost.tgz
tar xzf 47197-4561-2185667763-Leak_DefinitelyLost.tgz
valgrind mplayer 4561-Mehmoonie.ogg

Valgrind Result ::::

==6877== Memcheck, a memory error detector.
==6877== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==6877== Using LibVEX rev 1854, a library for dynamic binary translation.
==6877== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks? LLP.
==6877== Using valgrind-3.3.1, a dynamic binary instrumentation framework.
==6877== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==6877== For more details, rerun with: -v
==6877==
MPlayer dev-SVN-r27245-4.1.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz (Family: 6, Model: 15, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Playing 4561-Mehmoonie.ogg.
libavformat file format detected.
[vorbis @ 0x8653d30]Third header is not the setup header.
:
:
[vorbis @ 0x8653d30]Third header is not the setup header.
[ogg @ 0x863db30]Could not find codec parameters (Audio: vorbis, 44100 Hz, stereo, 112 kb/s)
[ogg @ 0x863db30]Could not find codec parameters (Invalid Codec type -1)
LAVF_header: av_find_stream_info() failed

Exiting... (End of file)
==6877==
==6877== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 19 from 1)
==6877== malloc/free: in use at exit: 1,141,718 bytes in 275 blocks.
==6877== malloc/free: 3,786 allocs, 3,511 frees, 13,821,026 bytes allocated.
==6877== For counts of detected errors, rerun with: -v
==6877== searching for pointers to 275 not-freed blocks.
==6877== checked 2,861,704 bytes.
==6877==
==6877== LEAK SUMMARY:
==6877== definitely lost: 1,076,050 bytes in 260 blocks.<<<<<<<<<<<<<<<<<<<<<
==6877== possibly lost: 32,768 bytes in 4 blocks.
==6877== still reachable: 32,900 bytes in 11 blocks.
==6877== suppressed: 0 bytes in 0 blocks.

This bug was found as part of the SUPERB-TRUST 2008 / metafuzz project;

See : http://metafuzz.com/ http://www.truststc.org/superb/

Change History (4)

comment:1 Changed 11 years ago by aslani@…

Backtrace

user@debian:~/Desktop$ valgrind --leak-check=full --show-reachable=yes mplayer 4561-Mehmoonie.ogg
==12133== Memcheck, a memory error detector.
==12133== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==12133== Using LibVEX rev 1854, a library for dynamic binary translation.
==12133== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks? LLP.
==12133== Using valgrind-3.3.1, a dynamic binary instrumentation framework.
==12133== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==12133== For more details, rerun with: -v
==12133==
MPlayer dev-SVN-r27249-4.1.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz (Family: 6, Model: 15, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Playing 4561-Mehmoonie.ogg.
libavformat file format detected.
[vorbis @ 0x8653cf0]Third header is not the setup header.
[vorbis @ 0x8653cf0]Third header is not the setup header.
[vorbis @ 0x8653cf0]Third header is not the setup header.
[vorbis @ 0x8653cf0]Third header is not the setup header.
[vorbis @ 0x8653cf0]Third header is not the setup header.
[vorbis @ 0x8653cf0]Third header is not the setup header.
[vorbis @ 0x8653cf0]Third header is not the setup header.
[vorbis @ 0x8653cf0]Third header is not the setup header.
[vorbis @ 0x8653cf0]Third header is not the setup header.
[vorbis @ 0x8653cf0]Third header is not the setup header.
[vorbis @ 0x8653cf0]Third header is not the setup header.
[vorbis @ 0x8653cf0]Third header is not the setup header.
[vorbis @ 0x8653cf0]Third header is not the setup header.
[vorbis @ 0x8653cf0]Third header is not the setup header.
[vorbis @ 0x8653cf0]Third header is not the setup header.
[vorbis @ 0x8653cf0]Third header is not the setup header.
[ogg @ 0x863daf0]Could not find codec parameters (Audio: vorbis, 44100 Hz, stereo, 112 kb/s)
[ogg @ 0x863daf0]Could not find codec parameters (Invalid Codec type -1)
LAVF_header: av_find_stream_info() failed

Exiting... (End of file)
==12133==
==12133== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 19 from 1)
==12133== malloc/free: in use at exit: 1,141,718 bytes in 275 blocks.
==12133== malloc/free: 3,786 allocs, 3,511 frees, 13,821,026 bytes allocated.
==12133== For counts of detected errors, rerun with: -v
==12133== searching for pointers to 275 not-freed blocks.
==12133== checked 2,861,704 bytes.
==12133==
==12133== 60 bytes in 8 blocks are still reachable in loss record 1 of 7
==12133== Stack hash: 3830378553
==12133== at 0x401D898: malloc (vg_replace_malloc.c:207)
==12133== by 0x40E817F: strdup (in /lib/tls/i686/cmov/libc-2.3.6.so)
==12133== by 0x80B06E7: copy_str (m_option.c:385)
==12133== by 0x80AFA47: m_config_add_option (m_option.h:490)
==12133== by 0x80AFC18: m_config_register_options (m_config.c:259)
==12133== by 0x8076BA0: main (mplayer.c:2567)
==12133==
==12133==
==12133== 80 bytes in 1 blocks are still reachable in loss record 2 of 7
==12133== Stack hash: 3987117885
==12133== at 0x401D898: malloc (vg_replace_malloc.c:207)
==12133== by 0x40930B9: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==12133== by 0x4092CD3: iconv_open (in /lib/tls/i686/cmov/libc-2.3.6.so)
==12133== by 0x807C7F6: mp_msg (mp_msg.c:197)
==12133== by 0x80755EC: print_version (mplayer.c:2399)
==12133== by 0x8076BD3: main (mplayer.c:2573)
==12133==
==12133==
==12133== 120 bytes in 1 blocks are still reachable in loss record 3 of 7
==12133== Stack hash: 3664937563
==12133== at 0x401D898: malloc (vg_replace_malloc.c:207)
==12133== by 0x409B7B4: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==12133== by 0x4094480: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==12133== by 0x4093063: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==12133== by 0x4092CD3: iconv_open (in /lib/tls/i686/cmov/libc-2.3.6.so)
==12133== by 0x807C7F6: mp_msg (mp_msg.c:197)
==12133== by 0x80755EC: print_version (mplayer.c:2399)
==12133== by 0x8076BD3: main (mplayer.c:2573)
==12133==
==12133==
==12133== 4,374 bytes in 2 blocks are definitely lost in loss record 4 of 7
==12133== Stack hash: 2071595589
==12133== at 0x401D96E: realloc (vg_replace_malloc.c:429)
==12133== by 0x82A73EF: vorbis_header (oggparsevorbis.c:149)
==12133== by 0x82A5ECF: ogg_packet (oggdec.c:369)
==12133== by 0x82A6031: ogg_read_header (oggdec.c:408)
==12133== by 0x8261B2E: av_open_input_stream (utils.c:398)
==12133== by 0x81A316D: demux_open_lavf (demux_lavf.c:459)
==12133== by 0x811E32E: demux_open_stream (demuxer.c:864)
==12133== by 0x811E601: demux_open (demuxer.c:991)
==12133== by 0x807799E: main (mplayer.c:3238)
==12133==
==12133==
==12133== 32,640 bytes in 1 blocks are still reachable in loss record 5 of 7
==12133== Stack hash: 481172370
==12133== at 0x401D898: malloc (vg_replace_malloc.c:207)
==12133== by 0x409325E: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==12133== by 0x4092CD3: iconv_open (in /lib/tls/i686/cmov/libc-2.3.6.so)
==12133== by 0x807C7F6: mp_msg (mp_msg.c:197)
==12133== by 0x80755EC: print_version (mplayer.c:2399)
==12133== by 0x8076BD3: main (mplayer.c:2573)
==12133==
==12133==
==12133== 32,768 bytes in 4 blocks are possibly lost in loss record 6 of 7
==12133== Stack hash: 3215356107
==12133== at 0x401C882: memalign (vg_replace_malloc.c:460)
==12133== by 0x8548F24: av_malloc (mem.c:61)
==12133== by 0x84FE46B: vorbis_decode_init (vorbis_dec.c:901)
==12133== by 0x82EDFAD: avcodec_open (utils.c:831)
==12133== by 0x826450A: av_find_stream_info (utils.c:1760)
==12133== by 0x81A318E: demux_open_lavf (demux_lavf.c:466)
==12133== by 0x811E32E: demux_open_stream (demuxer.c:864)
==12133== by 0x811E601: demux_open (demuxer.c:991)
==12133== by 0x807799E: main (mplayer.c:3238)
==12133==
==12133==
==12133== 1,071,676 bytes in 258 blocks are definitely lost in loss record 7 of 7==12133== Stack hash: 4092444859
==12133== at 0x401C882: memalign (vg_replace_malloc.c:460)
==12133== by 0x8548F24: av_malloc (mem.c:61)
==12133== by 0x8548FA6: av_mallocz (mem.c:134)
==12133== by 0x82A72E7: vorbis_header (oggparsevorbis.c:176)
==12133== by 0x82A5ECF: ogg_packet (oggdec.c:369)
==12133== by 0x82A6031: ogg_read_header (oggdec.c:408)
==12133== by 0x8261B2E: av_open_input_stream (utils.c:398)
==12133== by 0x81A316D: demux_open_lavf (demux_lavf.c:459)
==12133== by 0x811E32E: demux_open_stream (demuxer.c:864)
==12133== by 0x811E601: demux_open (demuxer.c:991)
==12133== by 0x807799E: main (mplayer.c:3238)
==12133==
==12133== LEAK SUMMARY:
==12133== definitely lost: 1,076,050 bytes in 260 blocks.
==12133== possibly lost: 32,768 bytes in 4 blocks.
==12133== still reachable: 32,900 bytes in 11 blocks.
==12133== suppressed: 0 bytes in 0 blocks.

comment:2 Changed 9 years ago by compn

  • Owner changed from r_togni@… to reimar

comment:3 Changed 9 years ago by reimar

  • Resolution set to invalid
  • Status changed from new to closed

Bug in FFmpeg, patch sent for ffmpeg-devel.

comment:4 Changed 9 years ago by reimar

Note: See TracTickets for help on using tickets.