You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Bryan Call (JIRA)" <ji...@apache.org> on 2016/10/31 17:37:58 UTC
[jira] [Assigned] (TS-4986) Memory leak in test_Map
[ https://issues.apache.org/jira/browse/TS-4986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Call reassigned TS-4986:
------------------------------
Assignee: Bryan Call
> Memory leak in test_Map
> -----------------------
>
> Key: TS-4986
> URL: https://issues.apache.org/jira/browse/TS-4986
> Project: Traffic Server
> Issue Type: Bug
> Components: Core, Tests
> Reporter: Bryan Call
> Assignee: Bryan Call
> Fix For: 7.1.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> {noformat}
> =================================================================
> ==22202==ERROR: LeakSanitizer: detected memory leaks
> Direct leak of 3216 byte(s) in 134 object(s) allocated from:
> #0 0x7f4d3de22ea0 in operator new(unsigned long) (/lib64/libasan.so.3+0xc7ea0)
> #1 0x402df9 in test_TSHashTable() /home/bcall/dev/apache/trafficserver/lib/ts/test_Map.cc:76
> #2 0x402380 in main /home/bcall/dev/apache/trafficserver/lib/ts/test_Map.cc:214
> #3 0x7f4d3b09b730 in __libc_start_main (/lib64/libc.so.6+0x20730)
> Direct leak of 112 byte(s) in 1 object(s) allocated from:
> #0 0x7f4d3de21e60 in malloc (/lib64/libasan.so.3+0xc6e60)
> #1 0x7f4d3db28f85 in ats_malloc /home/bcall/dev/apache/trafficserver/lib/ts/ink_memory.cc:59
> #2 0x406576 in DefaultAlloc::alloc(int) ../../lib/ts/defalloc.h:34
> #3 0x406576 in Vec<MapElem<char const*, int>, DefaultAlloc, 2>::set_expand() ../../lib/ts/Vec.h:781
> #4 0x406576 in HashMap<char const*, StringHashFns, int, DefaultAlloc>::put(char const*, int) ../../lib/ts/Map.h:552
> #5 0x401d90 in main /home/bcall/dev/apache/trafficserver/lib/ts/test_Map.cc:174
> #6 0x7f4d3b09b730 in __libc_start_main (/lib64/libc.so.6+0x20730)
> Direct leak of 24 byte(s) in 1 object(s) allocated from:
> #0 0x7f4d3de21e60 in malloc (/lib64/libasan.so.3+0xc6e60)
> #1 0x7f4d3db28f85 in ats_malloc /home/bcall/dev/apache/trafficserver/lib/ts/ink_memory.cc:59
> #2 0x4126bf in DefaultAlloc::alloc(int) ../../lib/ts/defalloc.h:34
> #3 0x4126bf in ConsCell<MapElem<char const*, int>, DefaultAlloc>::operator new(unsigned long) ../../lib/ts/List.h:603
> #4 0x4126bf in List<MapElem<char const*, int>, DefaultAlloc>::List(MapElem<char const*, int>) ../../lib/ts/List.h:663
> #5 0x4126bf in ChainHashMap<char const*, StringHashFns, int, DefaultAlloc>::put(char const*, int) ../../lib/ts/Map.h:691
> #6 0x401f26 in main /home/bcall/dev/apache/trafficserver/lib/ts/test_Map.cc:196
> #7 0x7f4d3b09b730 in __libc_start_main (/lib64/libc.so.6+0x20730)
> Direct leak of 24 byte(s) in 1 object(s) allocated from:
> #0 0x7f4d3de22ea0 in operator new(unsigned long) (/lib64/libasan.so.3+0xc7ea0)
> #1 0x402d4a in test_TSHashTable() /home/bcall/dev/apache/trafficserver/lib/ts/test_Map.cc:73
> #2 0x402380 in main /home/bcall/dev/apache/trafficserver/lib/ts/test_Map.cc:214
> #3 0x7f4d3b09b730 in __libc_start_main (/lib64/libc.so.6+0x20730)
> Direct leak of 24 byte(s) in 1 object(s) allocated from:
> #0 0x7f4d3de21e60 in malloc (/lib64/libasan.so.3+0xc6e60)
> #1 0x7f4d3db28f85 in ats_malloc /home/bcall/dev/apache/trafficserver/lib/ts/ink_memory.cc:59
> #2 0x4126bf in DefaultAlloc::alloc(int) ../../lib/ts/defalloc.h:34
> #3 0x4126bf in ConsCell<MapElem<char const*, int>, DefaultAlloc>::operator new(unsigned long) ../../lib/ts/List.h:603
> #4 0x4126bf in List<MapElem<char const*, int>, DefaultAlloc>::List(MapElem<char const*, int>) ../../lib/ts/List.h:663
> #5 0x4126bf in ChainHashMap<char const*, StringHashFns, int, DefaultAlloc>::put(char const*, int) ../../lib/ts/Map.h:691
> #6 0x401efe in main /home/bcall/dev/apache/trafficserver/lib/ts/test_Map.cc:194
> #7 0x7f4d3b09b730 in __libc_start_main (/lib64/libc.so.6+0x20730)
> Direct leak of 24 byte(s) in 1 object(s) allocated from:
> #0 0x7f4d3de21e60 in malloc (/lib64/libasan.so.3+0xc6e60)
> #1 0x7f4d3db28f85 in ats_malloc /home/bcall/dev/apache/trafficserver/lib/ts/ink_memory.cc:59
> #2 0x4126bf in DefaultAlloc::alloc(int) ../../lib/ts/defalloc.h:34
> #3 0x4126bf in ConsCell<MapElem<char const*, int>, DefaultAlloc>::operator new(unsigned long) ../../lib/ts/List.h:603
> #4 0x4126bf in List<MapElem<char const*, int>, DefaultAlloc>::List(MapElem<char const*, int>) ../../lib/ts/List.h:663
> #5 0x4126bf in ChainHashMap<char const*, StringHashFns, int, DefaultAlloc>::put(char const*, int) ../../lib/ts/Map.h:691
> #6 0x401f12 in main /home/bcall/dev/apache/trafficserver/lib/ts/test_Map.cc:195
> #7 0x7f4d3b09b730 in __libc_start_main (/lib64/libc.so.6+0x20730)
> Direct leak of 24 byte(s) in 1 object(s) allocated from:
> #0 0x7f4d3de21e60 in malloc (/lib64/libasan.so.3+0xc6e60)
> #1 0x7f4d3db28f85 in ats_malloc /home/bcall/dev/apache/trafficserver/lib/ts/ink_memory.cc:59
> #2 0x4126bf in DefaultAlloc::alloc(int) ../../lib/ts/defalloc.h:34
> #3 0x4126bf in ConsCell<MapElem<char const*, int>, DefaultAlloc>::operator new(unsigned long) ../../lib/ts/List.h:603
> #4 0x4126bf in List<MapElem<char const*, int>, DefaultAlloc>::List(MapElem<char const*, int>) ../../lib/ts/List.h:663
> #5 0x4126bf in ChainHashMap<char const*, StringHashFns, int, DefaultAlloc>::put(char const*, int) ../../lib/ts/Map.h:691
> #6 0x401e6d in main /home/bcall/dev/apache/trafficserver/lib/ts/test_Map.cc:186
> #7 0x7f4d3b09b730 in __libc_start_main (/lib64/libc.so.6+0x20730)
> Direct leak of 24 byte(s) in 1 object(s) allocated from:
> #0 0x7f4d3de21e60 in malloc (/lib64/libasan.so.3+0xc6e60)
> #1 0x7f4d3db28f85 in ats_malloc /home/bcall/dev/apache/trafficserver/lib/ts/ink_memory.cc:59
> #2 0x4126bf in DefaultAlloc::alloc(int) ../../lib/ts/defalloc.h:34
> #3 0x4126bf in ConsCell<MapElem<char const*, int>, DefaultAlloc>::operator new(unsigned long) ../../lib/ts/List.h:603
> #4 0x4126bf in List<MapElem<char const*, int>, DefaultAlloc>::List(MapElem<char const*, int>) ../../lib/ts/List.h:663
> #5 0x4126bf in ChainHashMap<char const*, StringHashFns, int, DefaultAlloc>::put(char const*, int) ../../lib/ts/Map.h:691
> #6 0x401e81 in main /home/bcall/dev/apache/trafficserver/lib/ts/test_Map.cc:187
> #7 0x7f4d3b09b730 in __libc_start_main (/lib64/libc.so.6+0x20730)
> Direct leak of 24 byte(s) in 1 object(s) allocated from:
> #0 0x7f4d3de21e60 in malloc (/lib64/libasan.so.3+0xc6e60)
> #1 0x7f4d3db28f85 in ats_malloc /home/bcall/dev/apache/trafficserver/lib/ts/ink_memory.cc:59
> #2 0x4126bf in DefaultAlloc::alloc(int) ../../lib/ts/defalloc.h:34
> #3 0x4126bf in ConsCell<MapElem<char const*, int>, DefaultAlloc>::operator new(unsigned long) ../../lib/ts/List.h:603
> #4 0x4126bf in List<MapElem<char const*, int>, DefaultAlloc>::List(MapElem<char const*, int>) ../../lib/ts/List.h:663
> #5 0x4126bf in ChainHashMap<char const*, StringHashFns, int, DefaultAlloc>::put(char const*, int) ../../lib/ts/Map.h:691
> #6 0x401eea in main /home/bcall/dev/apache/trafficserver/lib/ts/test_Map.cc:193
> #7 0x7f4d3b09b730 in __libc_start_main (/lib64/libc.so.6+0x20730)
> Direct leak of 24 byte(s) in 1 object(s) allocated from:
> #0 0x7f4d3de21e60 in malloc (/lib64/libasan.so.3+0xc6e60)
> #1 0x7f4d3db28f85 in ats_malloc /home/bcall/dev/apache/trafficserver/lib/ts/ink_memory.cc:59
> #2 0x4126bf in DefaultAlloc::alloc(int) ../../lib/ts/defalloc.h:34
> #3 0x4126bf in ConsCell<MapElem<char const*, int>, DefaultAlloc>::operator new(unsigned long) ../../lib/ts/List.h:603
> #4 0x4126bf in List<MapElem<char const*, int>, DefaultAlloc>::List(MapElem<char const*, int>) ../../lib/ts/List.h:663
> #5 0x4126bf in ChainHashMap<char const*, StringHashFns, int, DefaultAlloc>::put(char const*, int) ../../lib/ts/Map.h:691
> #6 0x401f4e in main /home/bcall/dev/apache/trafficserver/lib/ts/test_Map.cc:198
> #7 0x7f4d3b09b730 in __libc_start_main (/lib64/libc.so.6+0x20730)
> Direct leak of 24 byte(s) in 1 object(s) allocated from:
> #0 0x7f4d3de21e60 in malloc (/lib64/libasan.so.3+0xc6e60)
> #1 0x7f4d3db28f85 in ats_malloc /home/bcall/dev/apache/trafficserver/lib/ts/ink_memory.cc:59
> #2 0x4126bf in DefaultAlloc::alloc(int) ../../lib/ts/defalloc.h:34
> #3 0x4126bf in ConsCell<MapElem<char const*, int>, DefaultAlloc>::operator new(unsigned long) ../../lib/ts/List.h:603
> #4 0x4126bf in List<MapElem<char const*, int>, DefaultAlloc>::List(MapElem<char const*, int>) ../../lib/ts/List.h:663
> #5 0x4126bf in ChainHashMap<char const*, StringHashFns, int, DefaultAlloc>::put(char const*, int) ../../lib/ts/Map.h:691
> #6 0x401f3a in main /home/bcall/dev/apache/trafficserver/lib/ts/test_Map.cc:197
> #7 0x7f4d3b09b730 in __libc_start_main (/lib64/libc.so.6+0x20730)
> Direct leak of 16 byte(s) in 1 object(s) allocated from:
> #0 0x7f4d3de21e60 in malloc (/lib64/libasan.so.3+0xc6e60)
> #1 0x7f4d3db28f85 in ats_malloc /home/bcall/dev/apache/trafficserver/lib/ts/ink_memory.cc:59
> #2 0x40ead7 in DefaultAlloc::alloc(int) ../../lib/ts/defalloc.h:34
> #3 0x40ead7 in ConsCell<char const*, DefaultAlloc>::operator new(unsigned long) ../../lib/ts/List.h:603
> #4 0x40ead7 in List<char const*, DefaultAlloc>::List(char const*) ../../lib/ts/List.h:663
> #5 0x40ead7 in ChainHash<char const*, StringHashFns, DefaultAlloc>::put(char const*) ../../lib/ts/Map.h:579
> #6 0x401b30 in main /home/bcall/dev/apache/trafficserver/lib/ts/test_Map.cc:145
> #7 0x7f4d3b09b730 in __libc_start_main (/lib64/libc.so.6+0x20730)
> Direct leak of 16 byte(s) in 1 object(s) allocated from:
> #0 0x7f4d3de21e60 in malloc (/lib64/libasan.so.3+0xc6e60)
> #1 0x7f4d3db28f85 in ats_malloc /home/bcall/dev/apache/trafficserver/lib/ts/ink_memory.cc:59
> #2 0x40edb9 in DefaultAlloc::alloc(int) ../../lib/ts/defalloc.h:34
> #3 0x40edb9 in ConsCell<char const*, DefaultAlloc>::operator new(unsigned long) ../../lib/ts/List.h:603
> #4 0x40edb9 in List<char const*, DefaultAlloc>::List(char const*) ../../lib/ts/List.h:663
> #5 0x40edb9 in ChainHash<char const*, StringHashFns, DefaultAlloc>::put(char const*) ../../lib/ts/Map.h:584
> #6 0x401b30 in main /home/bcall/dev/apache/trafficserver/lib/ts/test_Map.cc:145
> #7 0x7f4d3b09b730 in __libc_start_main (/lib64/libc.so.6+0x20730)
> Direct leak of 16 byte(s) in 1 object(s) allocated from:
> #0 0x7f4d3de21e60 in malloc (/lib64/libasan.so.3+0xc6e60)
> #1 0x7f4d3db28f85 in ats_malloc /home/bcall/dev/apache/trafficserver/lib/ts/ink_memory.cc:59
> #2 0x40edb9 in DefaultAlloc::alloc(int) ../../lib/ts/defalloc.h:34
> #3 0x40edb9 in ConsCell<char const*, DefaultAlloc>::operator new(unsigned long) ../../lib/ts/List.h:603
> #4 0x40edb9 in List<char const*, DefaultAlloc>::List(char const*) ../../lib/ts/List.h:663
> #5 0x40edb9 in ChainHash<char const*, StringHashFns, DefaultAlloc>::put(char const*) ../../lib/ts/Map.h:584
> #6 0x401b4e in main /home/bcall/dev/apache/trafficserver/lib/ts/test_Map.cc:147
> #7 0x7f4d3b09b730 in __libc_start_main (/lib64/libc.so.6+0x20730)
> Direct leak of 16 byte(s) in 1 object(s) allocated from:
> #0 0x7f4d3de21e60 in malloc (/lib64/libasan.so.3+0xc6e60)
> #1 0x7f4d3db28f85 in ats_malloc /home/bcall/dev/apache/trafficserver/lib/ts/ink_memory.cc:59
> #2 0x40ead7 in DefaultAlloc::alloc(int) ../../lib/ts/defalloc.h:34
> #3 0x40ead7 in ConsCell<char const*, DefaultAlloc>::operator new(unsigned long) ../../lib/ts/List.h:603
> #4 0x40ead7 in List<char const*, DefaultAlloc>::List(char const*) ../../lib/ts/List.h:663
> #5 0x40ead7 in ChainHash<char const*, StringHashFns, DefaultAlloc>::put(char const*) ../../lib/ts/Map.h:579
> #6 0x401b3f in main /home/bcall/dev/apache/trafficserver/lib/ts/test_Map.cc:146
> #7 0x7f4d3b09b730 in __libc_start_main (/lib64/libc.so.6+0x20730)
> Direct leak of 16 byte(s) in 1 object(s) allocated from:
> #0 0x7f4d3de21e60 in malloc (/lib64/libasan.so.3+0xc6e60)
> #1 0x7f4d3db28f85 in ats_malloc /home/bcall/dev/apache/trafficserver/lib/ts/ink_memory.cc:59
> #2 0x40ead7 in DefaultAlloc::alloc(int) ../../lib/ts/defalloc.h:34
> #3 0x40ead7 in ConsCell<char const*, DefaultAlloc>::operator new(unsigned long) ../../lib/ts/List.h:603
> #4 0x40ead7 in List<char const*, DefaultAlloc>::List(char const*) ../../lib/ts/List.h:663
> #5 0x40ead7 in ChainHash<char const*, StringHashFns, DefaultAlloc>::put(char const*) ../../lib/ts/Map.h:579
> #6 0x401b4e in main /home/bcall/dev/apache/trafficserver/lib/ts/test_Map.cc:147
> #7 0x7f4d3b09b730 in __libc_start_main (/lib64/libc.so.6+0x20730)
> Direct leak of 16 byte(s) in 1 object(s) allocated from:
> #0 0x7f4d3de21e60 in malloc (/lib64/libasan.so.3+0xc6e60)
> #1 0x7f4d3db28f85 in ats_malloc /home/bcall/dev/apache/trafficserver/lib/ts/ink_memory.cc:59
> #2 0x40ead7 in DefaultAlloc::alloc(int) ../../lib/ts/defalloc.h:34
> #3 0x40ead7 in ConsCell<char const*, DefaultAlloc>::operator new(unsigned long) ../../lib/ts/List.h:603
> #4 0x40ead7 in List<char const*, DefaultAlloc>::List(char const*) ../../lib/ts/List.h:663
> #5 0x40ead7 in ChainHash<char const*, StringHashFns, DefaultAlloc>::put(char const*) ../../lib/ts/Map.h:579
> #6 0x401b5d in main /home/bcall/dev/apache/trafficserver/lib/ts/test_Map.cc:148
> #7 0x7f4d3b09b730 in __libc_start_main (/lib64/libc.so.6+0x20730)
> Direct leak of 16 byte(s) in 1 object(s) allocated from:
> #0 0x7f4d3de21e60 in malloc (/lib64/libasan.so.3+0xc6e60)
> #1 0x7f4d3db28f85 in ats_malloc /home/bcall/dev/apache/trafficserver/lib/ts/ink_memory.cc:59
> #2 0x403d87 in DefaultAlloc::alloc(int) ../../lib/ts/defalloc.h:34
> #3 0x403d87 in ConsCell<char const*, DefaultAlloc>::operator new(unsigned long) ../../lib/ts/List.h:603
> #4 0x403d87 in List<char const*, DefaultAlloc>::List(char const*) ../../lib/ts/List.h:663
> #5 0x403d87 in ChainHash<char const*, StringHashFns, DefaultAlloc>::del(char const*) ../../lib/ts/Map.h:656
> #6 0x401bae in main /home/bcall/dev/apache/trafficserver/lib/ts/test_Map.cc:151
> #7 0x7f4d3b09b730 in __libc_start_main (/lib64/libc.so.6+0x20730)
> Indirect leak of 3240 byte(s) in 135 object(s) allocated from:
> #0 0x7f4d3de22ea0 in operator new(unsigned long) (/lib64/libasan.so.3+0xc7ea0)
> #1 0x402df9 in test_TSHashTable() /home/bcall/dev/apache/trafficserver/lib/ts/test_Map.cc:76
> #2 0x402380 in main /home/bcall/dev/apache/trafficserver/lib/ts/test_Map.cc:214
> #3 0x7f4d3b09b730 in __libc_start_main (/lib64/libc.so.6+0x20730)
> SUMMARY: AddressSanitizer: 6896 byte(s) leaked in 286 allocation(s).
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)