Bug #87923 ASan reporting a memory leak on merge_large_tests-t
Submitted: 29 Sep 2017 19:21 Modified: 11 Apr 2018 16:34
Reporter: Laurynas Biveinis (OCA) Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Tests Severity:S3 (Non-critical)
Version:8.0.3 OS:Any
Assigned to: CPU Architecture:Any
Tags: asan, memory leak, unit tests

[29 Sep 2017 19:21] Laurynas Biveinis
Description:
cmake ... -DWITH_DEBUG=ON -DWITH_ASAN=ON
make
./runtime_output_directory/merge_large_tests-t
...
[  PASSED  ] 980 tests.

=================================================================
==1663==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 96 byte(s) in 6 object(s) allocated from:
    #0 0x7faf12bab270 in __interceptor_realloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc7270)
    #1 0x7faf112d5fd3  (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x91fd3)

SUMMARY: AddressSanitizer: 96 byte(s) leaked in 6 allocation(s).

How to repeat:
See above
[3 Oct 2017 6:09] MySQL Verification Team
Hello Laurynas,

Thank you for the report and feedback!

Regards,
Umesh
[3 Oct 2017 6:11] MySQL Verification Team
test results

Attachment: 87923.results (application/octet-stream, text), 391.58 KiB.

[21 Nov 2017 15:20] Tor Didriksen
Posted by developer:
 
Fixed by the patch for
https://bugs.mysql.com/bug.php?id=87922