Ticket #935: mencoder-valgrind

File mencoder-valgrind, 7.1 KB (added by mplayer@…, 19 years ago)

some memory leaks found by valgrind

Line 
1==20951==
2==20951== ERROR SUMMARY: 1412 errors from 22 contexts (suppressed: 30 from 1)
3==20951== malloc/free: in use at exit: 4,718,500 bytes in 6,822 blocks.
4==20951== malloc/free: 10,004 allocs, 3,182 frees, 58,388,785 bytes allocated.
5==20951== For counts of detected errors, rerun with: -v
6==20951== searching for pointers to 6,822 not-freed blocks.
7==20951== checked 5,997,672 bytes.
8==20951==
9==20951== Thread 1:
10==20951==
11==20951== 5 bytes in 1 blocks are definitely lost in loss record 2 of 101
12==20951== at 0x4A06B8F: malloc (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
13==20951== by 0x31C2C73271: strdup (in /lib64/libc-2.6.1.so)
14==20951== by 0x516CB3: demux_open_tv (in /usr/bin/mencoder)
15==20951== by 0x4ABDF4: demux_open_stream (in /usr/bin/mencoder)
16==20951== by 0x4AC01C: demux_open (in /usr/bin/mencoder)
17==20951== by 0x407C73: main (in /usr/bin/mencoder)
18==20951==
19==20951==
20==20951== 56 (32 direct, 24 indirect) bytes in 1 blocks are definitely lost in loss record 20 of 101
21==20951== at 0x4A06C78: realloc (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
22==20951== by 0x40BA3F: m_config_parse_me_command_line (in /usr/bin/mencoder)
23==20951== by 0x40797A: main (in /usr/bin/mencoder)
24==20951==
25==20951==
26==20951== 57 bytes in 2 blocks are definitely lost in loss record 24 of 101
27==20951== at 0x4A06B8F: malloc (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
28==20951== by 0x411E65: get_path (in /usr/bin/mencoder)
29==20951== by 0x407907: main (in /usr/bin/mencoder)
30==20951==
31==20951==
32==20951== 142,858 (64 direct, 142,794 indirect) bytes in 1 blocks are definitely lost in loss record 42 of 101
33==20951== at 0x4A06B8F: malloc (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
34==20951== by 0x5190FB: tvi_init_v4l2 (in /usr/bin/mencoder)
35==20951== by 0x516BCC: demux_open_tv (in /usr/bin/mencoder)
36==20951== by 0x4ABDF4: demux_open_stream (in /usr/bin/mencoder)
37==20951== by 0x4AC01C: demux_open (in /usr/bin/mencoder)
38==20951== by 0x407C73: main (in /usr/bin/mencoder)
39==20951==
40==20951==
41==20951== 292 (52 direct, 240 indirect) bytes in 1 blocks are definitely lost in loss record 44 of 101
42==20951== at 0x4A06B8F: malloc (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
43==20951== by 0x31C2CCDCEF: (within /lib64/libc-2.6.1.so)
44==20951== by 0x31C2CCE426: __nss_database_lookup (in /lib64/libc-2.6.1.so)
45==20951== by 0x4F3B75F: ???
46==20951== by 0x4F3C271: ???
47==20951== by 0x31C2C90224: getgrnam_r (in /lib64/libc-2.6.1.so)
48==20951== by 0x31C2C8F85F: getgrnam (in /lib64/libc-2.6.1.so)
49==20951== by 0x31C9470A3C: snd_pcm_direct_parse_open_conf (in /usr/lib64/libasound.so.2.0.0)
50==20951== by 0x31C946FAD6: _snd_pcm_dsnoop_open (in /usr/lib64/libasound.so.2.0.0)
51==20951== by 0x31C944AF66: (within /usr/lib64/libasound.so.2.0.0)
52==20951== by 0x31C944B097: (within /usr/lib64/libasound.so.2.0.0)
53==20951== by 0x31C944B10A: snd_pcm_open_slave (in /usr/lib64/libasound.so.2.0.0)
54==20951==
55==20951==
56==20951== 320 (40 direct, 280 indirect) bytes in 1 blocks are definitely lost in loss record 57 of 101
57==20951== at 0x4A06B8F: malloc (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
58==20951== by 0x42B121: vf_open (in /usr/bin/mencoder)
59==20951== by 0x43E9FA: vf_open_plugin (in /usr/bin/mencoder)
60==20951== by 0x42A80C: vf_open_encoder (in /usr/bin/mencoder)
61==20951== by 0x40AD18: main (in /usr/bin/mencoder)
62==20951==
63==20951==
64==20951== 56 bytes in 1 blocks are definitely lost in loss record 60 of 101
65==20951== at 0x4A05F45: calloc (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
66==20951== by 0x41771B: m_struct_alloc (in /usr/bin/mencoder)
67==20951== by 0x43E9AB: vf_open_plugin (in /usr/bin/mencoder)
68==20951== by 0x43EBF1: vf_open_filter (in /usr/bin/mencoder)
69==20951== by 0x40A6AC: main (in /usr/bin/mencoder)
70==20951==
71==20951==
72==20951== 320 bytes in 8 blocks are possibly lost in loss record 64 of 101
73==20951== at 0x4A06B8F: malloc (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
74==20951== by 0x31C9435B58: snd_dlobj_cache_add (in /usr/lib64/libasound.so.2.0.0)
75==20951== by 0x31C943B48F: (within /usr/lib64/libasound.so.2.0.0)
76==20951== by 0x31C94337E2: (within /usr/lib64/libasound.so.2.0.0)
77==20951== by 0x31C9434188: snd_determine_driver (in /usr/lib64/libasound.so.2.0.0)
78==20951== by 0x31C9431D16: snd_config_hook_load_for_all_cards (in /usr/lib64/libasound.so.2.0.0)
79==20951== by 0x31C9432356: (within /usr/lib64/libasound.so.2.0.0)
80==20951== by 0x31C9432A24: snd_config_searcha_hooks (in /usr/lib64/libasound.so.2.0.0)
81==20951== by 0x31C9432BE5: snd_config_search_alias_hooks (in /usr/lib64/libasound.so.2.0.0)
82==20951== by 0x31C9432D87: snd_config_search_definition (in /usr/lib64/libasound.so.2.0.0)
83==20951== by 0x31C944B00D: (within /usr/lib64/libasound.so.2.0.0)
84==20951== by 0x51E415: ai_alsa_init (in /usr/bin/mencoder)
85==20951==
86==20951==
87==20951== 2,432 (128 direct, 2,304 indirect) bytes in 1 blocks are definitely lost in loss record 74 of 101
88==20951== at 0x4A05F45: calloc (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
89==20951== by 0x42A64D: new_audio_encoder (in /usr/bin/mencoder)
90==20951== by 0x40A3BF: main (in /usr/bin/mencoder)
91==20951==
92==20951==
93==20951== 3,657 bytes in 2 blocks are definitely lost in loss record 83 of 101
94==20951== at 0x4A06B8F: malloc (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
95==20951== by 0x430090: muxer_write_chunk (in /usr/bin/mencoder)
96==20951== by 0x42CF70: encode_frame (in /usr/bin/mencoder)
97==20951== by 0x42D53D: put_image (in /usr/bin/mencoder)
98==20951== by 0x43BB96: filter_video (in /usr/bin/mencoder)
99==20951== by 0x408925: main (in /usr/bin/mencoder)
100==20951==
101==20951==
102==20951== 58,320 bytes in 810 blocks are possibly lost in loss record 95 of 101
103==20951== at 0x4A05F45: calloc (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
104==20951== by 0x31C942EBCC: (within /usr/lib64/libasound.so.2.0.0)
105==20951== by 0x31C942EC9B: (within /usr/lib64/libasound.so.2.0.0)
106==20951== by 0x31C94304B7: (within /usr/lib64/libasound.so.2.0.0)
107==20951== by 0x31C94309DE: (within /usr/lib64/libasound.so.2.0.0)
108==20951== by 0x31C9430B59: (within /usr/lib64/libasound.so.2.0.0)
109==20951== by 0x31C94327F1: snd_config_update_r (in /usr/lib64/libasound.so.2.0.0)
110==20951== by 0x31C9432988: snd_config_update (in /usr/lib64/libasound.so.2.0.0)
111==20951== by 0x31C944B25B: snd_pcm_open (in /usr/lib64/libasound.so.2.0.0)
112==20951== by 0x51E415: ai_alsa_init (in /usr/bin/mencoder)
113==20951== by 0x51D501: audio_in_setup (in /usr/bin/mencoder)
114==20951== by 0x518CCD: init_audio (in /usr/bin/mencoder)
115==20951==
116==20951== LEAK SUMMARY:
117==20951== definitely lost: 4,091 bytes in 11 blocks.
118==20951== indirectly lost: 145,642 bytes in 58 blocks.
119==20951== possibly lost: 58,640 bytes in 818 blocks.
120==20951== still reachable: 4,510,127 bytes in 5,935 blocks.
121==20951== suppressed: 0 bytes in 0 blocks.
122==20951== Reachable blocks (those to which a pointer was found) are not shown.
123==20951== To see them, rerun with: --leak-check=full --show-reachable=yes