Opened 16 years ago

Last modified 14 years ago

#1157 new defect

for a .wav file, Valgrind reports LeakDefinitelyLost

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

Description

For this .wav file, Valgrind 3.3.1 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/163139-184-2198268678-Leak_DefinitelyLost.tgz
tar xzf 163139-184-2198268678-Leak_DefinitelyLost.tgz
valgrind mplayer 184-short-dying.wav

Valgrind Result ::::

==3320== Memcheck, a memory error detector.

Playing 184-short-dying.wav.
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 0.0 (unknown) of 48692.0 (13:31:32.0) ??,?%

Exiting... (End of file)
==3320==
==3320== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 19 from 1)
==3320== malloc/free: in use at exit: 96,396 bytes in 28 blocks.
==3320== malloc/free: 2,364 allocs, 2,336 frees, 1,619,412 bytes allocated.
==3320== For counts of detected errors, rerun with: -v
==3320== searching for pointers to 28 not-freed blocks.
==3320== checked 2,861,824 bytes.
==3320==
==3320== LEAK SUMMARY:
==3320== definitely lost: 63,488 bytes in 16 blocks.<<<<<<<<<<<<<<<<<<<<<<<<<<
==3320== possibly lost: 0 bytes in 0 blocks.
==3320== still reachable: 32,908 bytes in 12 blocks.
==3320== 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 (2)

comment:1 by aslani@…, 16 years ago

Back Trace::::
$ valgrind --leak-check=full --show-reachable=yes mplayer 184-short-dying.wav
==11140== Memcheck, a memory error detector.
==11140== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==11140== Using LibVEX rev 1854, a library for dynamic binary translation.
==11140== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==11140== Using valgrind-3.3.1, a dynamic binary instrumentation framework.
==11140== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==11140== For more details, rerun with: -v
==11140==
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 184-short-dying.wav.
Audio file file format detected.
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [ffimc] afm: ffmpeg (FFmpeg Intel Music Coder)
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 0.0 (unknown) of 48692.0 (13:31:32.0) ??,?%

Exiting... (End of file)
==11140==
==11140== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 19 from 1)
==11140== malloc/free: in use at exit: 96,396 bytes in 28 blocks.
==11140== malloc/free: 2,364 allocs, 2,336 frees, 1,619,417 bytes allocated.
==11140== For counts of detected errors, rerun with: -v
==11140== searching for pointers to 28 not-freed blocks.
==11140== checked 2,861,844 bytes.
==11140==
==11140== 8 bytes in 1 blocks are still reachable in loss record 1 of 7
==11140== Stack hash: 2669096542
==11140== at 0x401D898: malloc (vg_replace_malloc.c:207)
==11140== by 0x8083A24: mp_input_set_section (input.c:1691)
==11140== by 0x8078252: main (mplayer.c:3636)
==11140==
==11140==
==11140== 60 bytes in 8 blocks are still reachable in loss record 2 of 7
==11140== Stack hash: 3830378553
==11140== at 0x401D898: malloc (vg_replace_malloc.c:207)
==11140== by 0x40E817F: strdup (in /lib/tls/i686/cmov/libc-2.3.6.so)
==11140== by 0x80B06E7: copy_str (m_option.c:385)
==11140== by 0x80AFA47: m_config_add_option (m_option.h:490)
==11140== by 0x80AFC18: m_config_register_options (m_config.c:259)
==11140== by 0x8076BA0: main (mplayer.c:2567)
==11140==
==11140==
==11140== 80 bytes in 1 blocks are still reachable in loss record 3 of 7
==11140== Stack hash: 3987117885
==11140== at 0x401D898: malloc (vg_replace_malloc.c:207)
==11140== by 0x40930B9: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==11140== by 0x4092CD3: iconv_open (in /lib/tls/i686/cmov/libc-2.3.6.so)
==11140== by 0x807C7F6: mp_msg (mp_msg.c:197)
==11140== by 0x80755EC: print_version (mplayer.c:2399)
==11140== by 0x8076BD3: main (mplayer.c:2573)
==11140==
==11140==
==11140== 120 bytes in 1 blocks are still reachable in loss record 4 of 7
==11140== Stack hash: 3664937563
==11140== at 0x401D898: malloc (vg_replace_malloc.c:207)
==11140== by 0x409B7B4: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==11140== by 0x4094480: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==11140== by 0x4093063: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==11140== by 0x4092CD3: iconv_open (in /lib/tls/i686/cmov/libc-2.3.6.so)
==11140== by 0x807C7F6: mp_msg (mp_msg.c:197)
==11140== by 0x80755EC: print_version (mplayer.c:2399)
==11140== by 0x8076BD3: main (mplayer.c:2573)
==11140==
==11140==
==11140== 2,048 bytes in 1 blocks are definitely lost in loss record 5 of 7
==11140== Stack hash: 600738452
==11140== at 0x401D898: malloc (vg_replace_malloc.c:207)
==11140== by 0x401D9DC: realloc (vg_replace_malloc.c:429)
==11140== by 0x853D760: build_table (bitstream.c:132)
==11140== by 0x853DB40: init_vlc_sparse (bitstream.c:302)
==11140== by 0x845EC8C: imc_decode_init (imc.c:138)
==11140== by 0x82EDFAD: avcodec_open (utils.c:831)
==11140== by 0x8198BA8: init (ad_ffmpeg.c:90)
==11140== by 0x80DB112: init_audio (dec_audio.c:95)
==11140== by 0x80DB508: init_best_audio_codec (dec_audio.c:270)
==11140== by 0x8076778: reinit_audio_chain (mplayer.c:1585)
==11140== by 0x8078121: main (mplayer.c:3583)
==11140==
==11140==
==11140== 32,640 bytes in 1 blocks are still reachable in loss record 6 of 7
==11140== Stack hash: 481172370
==11140== at 0x401D898: malloc (vg_replace_malloc.c:207)
==11140== by 0x409325E: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==11140== by 0x4092CD3: iconv_open (in /lib/tls/i686/cmov/libc-2.3.6.so)
==11140== by 0x807C7F6: mp_msg (mp_msg.c:197)
==11140== by 0x80755EC: print_version (mplayer.c:2399)
==11140== by 0x8076BD3: main (mplayer.c:2573)
==11140==
==11140==
==11140== 61,440 bytes in 15 blocks are definitely lost in loss record 7 of 7
==11140== Stack hash: 439380004
==11140== at 0x401D96E: realloc (vg_replace_malloc.c:429)
==11140== by 0x853D760: build_table (bitstream.c:132)
==11140== by 0x853DA76: build_table (bitstream.c:231)
==11140== by 0x853DB40: init_vlc_sparse (bitstream.c:302)
==11140== by 0x845EC8C: imc_decode_init (imc.c:138)
==11140== by 0x82EDFAD: avcodec_open (utils.c:831)
==11140== by 0x8198BA8: init (ad_ffmpeg.c:90)
==11140== by 0x80DB112: init_audio (dec_audio.c:95)
==11140== by 0x80DB508: init_best_audio_codec (dec_audio.c:270)
==11140== by 0x8076778: reinit_audio_chain (mplayer.c:1585)
==11140== by 0x8078121: main (mplayer.c:3583)
==11140==
==11140== LEAK SUMMARY:
==11140== definitely lost: 63,488 bytes in 16 blocks.
==11140== possibly lost: 0 bytes in 0 blocks.
==11140== still reachable: 32,908 bytes in 12 blocks.
==11140== suppressed: 0 bytes in 0 blocks.

comment:2 by compn, 14 years ago

Owner: changed from r_togni@… to reimar
Note: See TracTickets for help on using tickets.