thresh snowwhite ffmpeg ffmpeg trunk valgrind --leak-check full --show

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
thresh@snowwhite ffmpeg/ffmpeg/trunk $ valgrind --leak-check=full --show-reachable=yes ./ffmpeg_g -f oss -i /dev/dsp test.wav
==27726== Memcheck, a memory error detector.
==27726== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al.
==27726== Using LibVEX rev 1884, a library for dynamic binary translation.
==27726== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.
==27726== Using valgrind-3.4.1, a dynamic binary instrumentation framework.
==27726== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al.
==27726== For more details, rerun with: -v
==27726==
FFmpeg version SVN-r19821, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-debug
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.35. 0 / 52.35. 0
libavformat 52.38. 0 / 52.38. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
built on Sep 11 2009 15:01:22, gcc: 4.4.1 20090725 (ALT Linux 4.4.1-alt1)
[oss @ 0x4314660]/dev/dsp: No such file or directory
==27726== Invalid read of size 4
==27726== at 0x80619C8: av_open_input_stream (utils.c:415)
==27726== by 0x8063E58: av_open_input_file (utils.c:494)
==27726== by 0x80509B5: opt_input_file (ffmpeg.c:2865)
==27726== by 0x8057990: parse_options (cmdutils.c:172)
==27726== by 0x2F766563: ???
==27726== Address 0x43166e4 is 20 bytes inside a block of size 436 free'd
==27726== at 0x4022DCA: free (vg_replace_malloc.c:323)
==27726== by 0x80597DE: audio_read_header (oss_audio.c:231)
==27726==
==27726== Invalid read of size 4
==27726== at 0x80619D3: av_open_input_stream (utils.c:416)
==27726== by 0x8063E58: av_open_input_file (utils.c:494)
==27726== by 0x80509B5: opt_input_file (ffmpeg.c:2865)
==27726== by 0x8057990: parse_options (cmdutils.c:172)
==27726== by 0x2F766563: ???
==27726== Address 0x43166d8 is 8 bytes inside a block of size 436 free'd
==27726== at 0x4022DCA: free (vg_replace_malloc.c:323)
==27726== by 0x80597DE: audio_read_header (oss_audio.c:231)
==27726==
==27726== Invalid free() / delete / delete[]
==27726== at 0x4022DCA: free (vg_replace_malloc.c:323)
==27726== by 0x80619EB: av_open_input_stream (utils.c:418)
==27726== by 0x8063E58: av_open_input_file (utils.c:494)
==27726== by 0x80509B5: opt_input_file (ffmpeg.c:2865)
==27726== by 0x8057990: parse_options (cmdutils.c:172)
==27726== by 0x2F766563: ???
==27726== Address 0x43166d0 is 0 bytes inside a block of size 436 free'd
==27726== at 0x4022DCA: free (vg_replace_malloc.c:323)
==27726== by 0x80597DE: audio_read_header (oss_audio.c:231)
/dev/dsp: I/O error occurred
Usually that means that input file is truncated and/or corrupted.
==27726==
==27726== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 31 from 1)
==27726== malloc/free: in use at exit: 896 bytes in 1 blocks.
==27726== malloc/free: 11 allocs, 11 frees, 47,032 bytes allocated.
==27726== For counts of detected errors, rerun with: -v
==27726== searching for pointers to 1 not-freed blocks.
==27726== checked 4,920,204 bytes.
==27726==
==27726==
==27726== 896 bytes in 1 blocks are definitely lost in loss record 1 of 1
==27726== at 0x4021EA4: memalign (vg_replace_malloc.c:460)
==27726== by 0x4021F6E: posix_memalign (vg_replace_malloc.c:569)
==27726== by 0x851EF60: av_malloc (mem.c:66)
==27726==
==27726== LEAK SUMMARY:
==27726== definitely lost: 896 bytes in 1 blocks.
==27726== possibly lost: 0 bytes in 0 blocks.
==27726== still reachable: 0 bytes in 0 blocks.
==27726== suppressed: 0 bytes in 0 blocks.
thresh@snowwhite ffmpeg/ffmpeg/trunk $