Something went wrong while setting issue due date.
ASAN: huge memory leaks in answering code
The server leaks a lot of memory when excercised by PROTOS test suite.
Configuration file:
trust_anchors.add(". IN DS 19036 8 2 49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5")
net.listen({"::1", "127.0.0.1"}, 5300)
cache.size = 100 * MB
verbose(true)
-- BLACK HOLE, authoritative Knot is running on 127.0.0.2
modules.load("policy")
policy:add(policy.all(policy.FORWARD("127.0.0.2")))
PROTOS execution:
java -jar c09-dns-query-r1.jar --host 127.0.0.1 --port 5300 --timeout 250 --delay 1
Server log:
% ./_install/bin/kresd -c _server/config.lua
[system] interactive mode
>
...
(flood server with queries from PROTOS test suite)
...
quit()
nil
>
=================================================================
==2267==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 852800 byte(s) in 52 object(s) allocated from:
#0 0x7f558accfd88 in malloc (/lib64/libasan.so.3+0xc6d88)
#1 0x7f558a9829f4 in mp_new_big_chunk (/home/fcelda/devel/resolver/_install/lib64/libkres.so.1+0x339f4)
Direct leak of 384 byte(s) in 2 object(s) allocated from:
#0 0x7f558accff40 in calloc (/lib64/libasan.so.3+0xc6f40)
#1 0x5588420638c7 in udp_bind (/home/fcelda/devel/resolver/_install/bin/kresd+0xd8c7)
Indirect leak of 32800 byte(s) in 2 object(s) allocated from:
#0 0x7f558accfd88 in malloc (/lib64/libasan.so.3+0xc6d88)
#1 0x7f558a9829f4 in mp_new_big_chunk (/home/fcelda/devel/resolver/_install/lib64/libkres.so.1+0x339f4)
SUMMARY: AddressSanitizer: 885984 byte(s) leaked in 56 allocation(s).