Details
-
Bug
-
Status: Done
-
Medium
-
Resolution: Fixed
-
5.7.x, 8.0.x, Not 5.5.x, Not 5.6.x
-
None
Description
The following memory leak is detected by ASan in the 'innochecksum' utility
==55500==ERROR: LeakSanitizer: detected memory leaks Direct leak of 131072 byte(s) in 1 object(s) allocated from: #0 0x7fe4c14b2b50 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb50) #1 0x560f2cdd5bf3 in main /mnt/hgfs/repos/mysql-server/extra/innochecksum.cc:1173 #2 0x7fe4c03ccb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) SUMMARY: AddressSanitizer: 131072 byte(s) leaked in 1 allocation(s).
How to repeat:
Build MySQL Server with Address Sanitizer enabled on Ubuntu 18.04 with default GCC (7.3.0)
cmake ... -DWITH_ASAN=ON -DWITH_ASAN_SCOPE=ON
Run
./mtr --debug-server innodb.innodb-wl6045-linux
Look at the content of the 'log/my_restart.err' file.