hipfw and memory leaks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HIPL |
New
|
High
|
Unassigned |
Bug Description
Rene: This is the output of valgrind after a test run between 2 end-hosts with the
command "sudo valgrind -v --leak-check=full --show-
-kdeF" after commit hipl--esp-
in this commit.
==4406==
==4406== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 29 from 1)
--4406--
--4406-- supp: 29 dl-hack3-1
==4406== malloc/free: in use at exit: 4,888 bytes in 12 blocks.
==4406== malloc/free: 6,215 allocs, 6,203 frees, 4,678,448 bytes allocated.
==4406==
==4406== searching for pointers to 12 not-freed blocks.
==4406== checked 8,265,264 bytes.
==4406==
==4406== 64 bytes in 2 blocks are still reachable in loss record 1 of 5
==4406== at 0x4022AB8: malloc (vg_replace_
==4406== by 0x80A3F07: ipq_create_handle (in
/home/hummen/
==4406== by 0x804FE64: main (firewall.c:2156)
==4406==
==4406==
==4406== 120 bytes in 1 blocks are possibly lost in loss record 2 of 5
==4406== at 0x4022AB8: malloc (vg_replace_
==4406== by 0x439AA03: getdelim (in /lib/tls/
==4406== by 0x43979D2: getline (in /lib/tls/
==4406== by 0x80587AA: read_file (rule_managemen
==4406== by 0x804FDDF: main (firewall.c:2140)
==4406==
==4406==
==4406== 128 bytes in 2 blocks are definitely lost in loss record 3 of 5
==4406== at 0x4022AB8: malloc (vg_replace_
==4406== by 0x4238D0D: (within /usr/lib/
==4406== by 0x423936E: CRYPTO_malloc (in
/usr/lib/
==4406== by 0x42A19EE: lh_new (in /usr/lib/
==4406== by 0x805F17F: hip_ht_init (hashtable.h:29)
==4406== by 0x805F099: hip_sadb_init (user_ipsec_
==4406== by 0x805C460: userspace_
==4406== by 0x804C26F: hip_fw_
==4406== by 0x804CA6F: firewall_init_rules (firewall.c:652)
==4406== by 0x804FFDD: main (firewall.c:2185)
==4406==
==4406==
==4406== 480 bytes in 6 blocks are still reachable in loss record 4 of 5
==4406== at 0x4022AB8: malloc (vg_replace_
==4406== by 0x4238D0D: (within /usr/lib/
==4406== by 0x423936E: CRYPTO_malloc (in
/usr/lib/
==4406== by 0x42A19C9: lh_new (in /usr/lib/
==4406== by 0x8070536: hip_ht_init (hashtable.h:29)
==4406== by 0x8070512: firewall_init_hldb (firewalldb.c:179)
==4406== by 0x804CBC6: firewall_init_rules (firewall.c:668)
==4406== by 0x804FFDD: main (firewall.c:2185)
==4406==
==4406==
==4406== 4,096 bytes in 1 blocks are still reachable in loss record 5 of 5
==4406== at 0x4022AB8: malloc (vg_replace_
==4406== by 0x807B9FF: hip_msg_alloc (builder.c:90)
==4406== by 0x8050021: main (firewall.c:2192)
==4406==
==4406== LEAK SUMMARY:
==4406== definitely lost: 128 bytes in 2 blocks.
==4406== possibly lost: 120 bytes in 1 blocks.
==4406== still reachable: 4,640 bytes in 9 blocks.
==4406== suppressed: 0 bytes in 0 blocks.
--4406-- memcheck: sanity checks: 602 cheap, 20 expensive
--4406-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--4406-- memcheck: auxmaps_L1: 0 searches, 0 cmps, ratio 0:10
--4406-- memcheck: auxmaps_L2: 0 searches, 0 nodes
--4406-- memcheck: SMs: n_issued = 94 (1504k, 1M)
--4406-- memcheck: SMs: n_deissued = 0 (0k, 0M)
--4406-- memcheck: SMs: max_noaccess = 65535 (1048560k, 1023M)
--4406-- memcheck: SMs: max_undefined = 0 (0k, 0M)
--4406-- memcheck: SMs: max_defined = 193 (3088k, 3M)
--4406-- memcheck: SMs: max_non_DSM = 94 (1504k, 1M)
--4406-- memcheck: max sec V bit nodes: 2 (0k, 0M)
--4406-- memcheck: set_sec_vbits8 calls: 2 (new: 2, updates: 0)
--4406-- memcheck: max shadow mem size: 1808k, 1M
--4406-- translate: fast SP updates identified: 6,974 ( 85.0%)
--4406-- translate: generic_known SP updates identified: 877 ( 10.6%)
--4406-- translate: generic_unknown SP updates identified: 349 ( 4.2%)
--4406-- tt/tc: 48,535 tt lookups requiring 49,640 probes
--4406-- tt/tc: 48,535 fast-cache updates, 2 flushes
--4406-- transtab: new 5,836 (161,981 -> 2,118,048; ratio 130:10) [0
scs]
--4406-- transtab: dumped 0 (0 -> ??)
--4406-- transtab: discarded 0 (0 -> ??)
--4406-- scheduler: 60,237,677 jumps (bb entries).
--4406-- scheduler: 602/151,740 major/minor sched events.
--4406-- sanity: 603 cheap, 20 expensive checks.
--4406-- exectx: 769 lists, 299 contexts (avg 0 per list)
--4406-- exectx: 12,447 searches, 12,534 full compares (1,006 per 1000)
--4406-- exectx: 10 cmp2, 62 cmp4, 0 cmpAll
--4406-- errormgr: 11 supplist searches, 425 comparisons during search
--4406-- errormgr: 29 errlist searches, 62 comparisons during search
Changed in hipl: | |
importance: | Undecided → High |
Changed in hipl: | |
assignee: | David Martin (martin-lp) → nobody |
Please, check again with "sudo valgrind -v --leak-check=full --show- reachable= yes firewall/hipfw -kd".