Description:
The following Address Sanitizer log is generated after running 'group_replication.gr_majority_loss_restart' MTR test case
[ 50%] group_replication.gr_majority_loss_restart [ pass ] 96916
worker[1] Sanitizer report from /home/yura/addon/local/percona-build-5.7-asan_gcc8/mysql-test/var/log/mysqld.1.err after tests:
group_replication.gr_majority_loss_restart
--------------------------------------------------------------------------
==34406==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 10 byte(s) in 1 object(s) allocated from:
#0 0x7f726fb7a108 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xee108)
#1 0x7f7257b873bc (<unknown module>)
#2 0x7f7257b8caa2 (<unknown module>)
#3 0x7f7257b95540 (<unknown module>)
#4 0x7f7257b6b6fd (<unknown module>)
#5 0x7f7257b6e77f (<unknown module>)
#6 0x7f7257b76357 (<unknown module>)
#7 0x7f7257b7c06a (<unknown module>)
#8 0x7f7257b881e4 (<unknown module>)
#9 0x7f7257ba58b4 (<unknown module>)
#10 0x7f7257b6b24c (<unknown module>)
#11 0x7f7257c49b0e (<unknown module>)
#12 0x7f7257bdbc06 (<unknown module>)
#13 0x7f726f8746da in start_thread /build/glibc-OTsEL5/glibc-2.27/nptl/pthread_create.c:463
Direct leak of 10 byte(s) in 1 object(s) allocated from:
#0 0x7f726fb7a108 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xee108)
#1 0x7f7257b873bc (<unknown module>)
#2 0x7f7257b8caa2 (<unknown module>)
#3 0x7f7257b70f72 (<unknown module>)
#4 0x7f7257b788fa (<unknown module>)
#5 0x7f7257b8095a (<unknown module>)
#6 0x7f7257ba58b4 (<unknown module>)
#7 0x7f7257b6b24c (<unknown module>)
#8 0x7f7257c49b0e (<unknown module>)
#9 0x7f7257bdbc06 (<unknown module>)
#10 0x7f726f8746da in start_thread /build/glibc-OTsEL5/glibc-2.27/nptl/pthread_create.c:463
SUMMARY: AddressSanitizer: 20 byte(s) leaked in 2 allocation(s).
safe_process[34405]: Child process: 34406, exit: 42
[100%] sanitize_report [ fail ]
Test ended at 2019-08-08 12:23:09
How to repeat:
build MySQL Server with gcc-8 and with Address Sanitizer enabled (-DWITH_ASAN=ON)
CC=gcc-8 CXX=g++-8 cmake -DWITH_ASAN=ON ...
run
./mysql-test/mtr --big-test --debug-server --sanitize group_replication.gr_majority_loss_restart
Description: The following Address Sanitizer log is generated after running 'group_replication.gr_majority_loss_restart' MTR test case [ 50%] group_replication.gr_majority_loss_restart [ pass ] 96916 worker[1] Sanitizer report from /home/yura/addon/local/percona-build-5.7-asan_gcc8/mysql-test/var/log/mysqld.1.err after tests: group_replication.gr_majority_loss_restart -------------------------------------------------------------------------- ==34406==ERROR: LeakSanitizer: detected memory leaks Direct leak of 10 byte(s) in 1 object(s) allocated from: #0 0x7f726fb7a108 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xee108) #1 0x7f7257b873bc (<unknown module>) #2 0x7f7257b8caa2 (<unknown module>) #3 0x7f7257b95540 (<unknown module>) #4 0x7f7257b6b6fd (<unknown module>) #5 0x7f7257b6e77f (<unknown module>) #6 0x7f7257b76357 (<unknown module>) #7 0x7f7257b7c06a (<unknown module>) #8 0x7f7257b881e4 (<unknown module>) #9 0x7f7257ba58b4 (<unknown module>) #10 0x7f7257b6b24c (<unknown module>) #11 0x7f7257c49b0e (<unknown module>) #12 0x7f7257bdbc06 (<unknown module>) #13 0x7f726f8746da in start_thread /build/glibc-OTsEL5/glibc-2.27/nptl/pthread_create.c:463 Direct leak of 10 byte(s) in 1 object(s) allocated from: #0 0x7f726fb7a108 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xee108) #1 0x7f7257b873bc (<unknown module>) #2 0x7f7257b8caa2 (<unknown module>) #3 0x7f7257b70f72 (<unknown module>) #4 0x7f7257b788fa (<unknown module>) #5 0x7f7257b8095a (<unknown module>) #6 0x7f7257ba58b4 (<unknown module>) #7 0x7f7257b6b24c (<unknown module>) #8 0x7f7257c49b0e (<unknown module>) #9 0x7f7257bdbc06 (<unknown module>) #10 0x7f726f8746da in start_thread /build/glibc-OTsEL5/glibc-2.27/nptl/pthread_create.c:463 SUMMARY: AddressSanitizer: 20 byte(s) leaked in 2 allocation(s). safe_process[34405]: Child process: 34406, exit: 42 [100%] sanitize_report [ fail ] Test ended at 2019-08-08 12:23:09 How to repeat: build MySQL Server with gcc-8 and with Address Sanitizer enabled (-DWITH_ASAN=ON) CC=gcc-8 CXX=g++-8 cmake -DWITH_ASAN=ON ... run ./mysql-test/mtr --big-test --debug-server --sanitize group_replication.gr_majority_loss_restart