Memory leak in innochecksum utility detected by ASan

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.

Environment

None

relates to

Smart Checklist

Activity

Show:

Yura Sorokin May 8, 2019 at 1:37 PM

Yura Sorokin December 5, 2018 at 3:14 PM

Fixed by upstream in 5.7.26, 8.0.15

Memory leaks discovered in the innochecksum utility were removed.

Peter Schwaller November 27, 2018 at 1:18 PM

Deferred from 8.0 bug triage.

Done

Details

Assignee

Reporter

Labels

Time tracking

1h 30m logged

Fix versions

Priority

Smart Checklist

Created November 12, 2018 at 2:31 PM
Updated March 6, 2024 at 12:42 PM
Resolved June 21, 2019 at 8:35 AM