Hello,

I built haproxy using gcc-9

make CC=gcc V=1 TARGET=linux2628 USE_ZLIB=1 USE_PCRE=1 USE_PCRE_JIT=1
USE_LUA=1 USE_OPENSSL=1 DEBUG_CFLAGS="-g -fsanitize=address"
LDFLAGS="-lasan"

finding is:

***  h1    0.1 debug|==8326==ERROR: LeakSanitizer: detected memory leaks
***  h1    0.1 debug|
***  h1    0.1 debug|Direct leak of 24 byte(s) in 1 object(s) allocated
from:
***  h1    0.1 debug|    #0 0x7f33138ec1a8 in __interceptor_malloc
(/lib64/libasan.so.5+0x10e1a8)
***  h1    0.1 debug|    #1 0x7f33136f3b1b  (/lib64/libssl.so.1.1+0x33b1b)
***  h1    0.1 debug|
***  h1    0.1 debug|Direct leak of 1 byte(s) in 1 object(s) allocated from:
***  h1    0.1 debug|    #0 0x7f33138749dd in strdup
(/lib64/libasan.so.5+0x969dd)
***  h1    0.1 debug|    #1 0x817241 in mworker_env_to_proc_list
src/mworker.c:167
***  h1    0.1 debug|
***  h1    0.1 debug|SUMMARY: AddressSanitizer: 25 byte(s) leaked in 2
allocation(s).

Reply via email to