As i’m unable to create a local 4.5 server which is what we use in production, i’m sadly not. After running my current script after the envvars you posted, I had to set LD_PRELOAD to find my ASAN, and then my program gave me the output of:
==6945==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 8410520 byte(s) in 13220 object(s) allocated from:
#0 0x7f3cd6dbab40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
#1 0x5ab684 (/usr/bin/python3.6+0x5ab684)
Direct leak of 62976 byte(s) in 53 object(s) allocated from:
#0 0x7f3cd6dbab40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
#1 0x54485e in PyUnicode_New (/usr/bin/python3.6+0x54485e)
Direct leak of 23256 byte(s) in 41 object(s) allocated from:
#0 0x7f3cd6dbab40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
#1 0x5a41ba (/usr/bin/python3.6+0x5a41ba)
Direct leak of 9320 byte(s) in 10 object(s) allocated from:
#0 0x7f3cd6dbab40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
#1 0x5518cb in PyType_GenericAlloc (/usr/bin/python3.6+0x5518cb)
Direct leak of 4680 byte(s) in 6 object(s) allocated from:
#0 0x7f3cd6dbab40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
#1 0x59203b in PyBytes_FromStringAndSize (/usr/bin/python3.6+0x59203b)
Direct leak of 1728 byte(s) in 3 object(s) allocated from:
#0 0x7f3cd6dbab40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
#1 0x5abd13 (/usr/bin/python3.6+0x5abd13)
Direct leak of 528 byte(s) in 1 object(s) allocated from:
#0 0x7f3cd6dbad28 in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xded28)
#1 0x582742 in PyList_New (/usr/bin/python3.6+0x582742)
Direct leak of 2 byte(s) in 2 object(s) allocated from:
#0 0x7f3cd6dbab40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
#1 0x5aca9a in PyMem_Malloc (/usr/bin/python3.6+0x5aca9a)
Indirect leak of 323408 byte(s) in 346 object(s) allocated from:
#0 0x7f3cd6dbab40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
#1 0x5518cb in PyType_GenericAlloc (/usr/bin/python3.6+0x5518cb)
Indirect leak of 28717 byte(s) in 26 object(s) allocated from:
#0 0x7f3cd6dbab40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
#1 0x54485e in PyUnicode_New (/usr/bin/python3.6+0x54485e)
Indirect leak of 28053 byte(s) in 26 object(s) allocated from:
#0 0x7f3cd6dbab40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
#1 0x5ac33a in PyObject_Malloc (/usr/bin/python3.6+0x5ac33a)
Indirect leak of 12883 byte(s) in 7 object(s) allocated from:
#0 0x7f3cd6dbaf30 in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdef30)
#1 0x5475d4 (/usr/bin/python3.6+0x5475d4)
Indirect leak of 7912 byte(s) in 13 object(s) allocated from:
#0 0x7f3cd6dbab40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
#1 0x5a41ba (/usr/bin/python3.6+0x5a41ba)
Indirect leak of 1728 byte(s) in 3 object(s) allocated from:
#0 0x7f3cd6dbab40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
#1 0x5ab684 (/usr/bin/python3.6+0x5ab684)
Indirect leak of 528 byte(s) in 1 object(s) allocated from:
#0 0x7f3cd6dbab40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
#1 0x5abd13 (/usr/bin/python3.6+0x5abd13)
SUMMARY: AddressSanitizer: 8916239 byte(s) leaked in 13758 allocation(s).