LeakSanitizer fails build at gen_lex_hash invocation

Bug #1580993 reported by Laurynas Biveinis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Server
Unknown
Unknown
Percona Server moved to https://jira.percona.com/projects/PS
Status tracked in 5.7
5.5
Fix Released
Medium
Laurynas Biveinis
5.6
Fix Released
Medium
Laurynas Biveinis
5.7
Invalid
Undecided
Unassigned

Bug Description

Copy of http://bugs.mysql.com/bug.php?id=80014:

AddressSanitizer build with LeakSanitizer enabled will fail at gen_lex_hash invocation:

[ 16%] Generating lex_hash.h

=================================================================
==22469==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 13100 byte(s) in 1 object(s) allocated from:
    #0 0x7f673682f8ca in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x988ca)
    #1 0x4018b1 in add_struct_to_map(hash_lex_struct*) /mnt/workspace/percona-server-5.5-asan-param/BUILD_TYPE/release-asan/Host/ubuntu-xenial-64bit/sql/gen_lex_hash.cc:239
    #2 0x401afb in add_structs_to_map(hash_lex_struct*, int) /mnt/workspace/percona-server-5.5-asan-param/BUILD_TYPE/release-asan/Host/ubuntu-xenial-64bit/sql/gen_lex_hash.cc:261
    #3 0x401b6d in add_structs_to_map(hash_lex_struct*, int) /mnt/workspace/percona-server-5.5-asan-param/BUILD_TYPE/release-asan/Host/ubuntu-xenial-64bit/sql/gen_lex_hash.cc:265
    #4 0x401b6d in add_structs_to_map(hash_lex_struct*, int) /mnt/workspace/percona-server-5.5-asan-param/BUILD_TYPE/release-asan/Host/ubuntu-xenial-64bit/sql/gen_lex_hash.cc:265
    #5 0x401b6d in add_structs_to_map(hash_lex_struct*, int) /mnt/workspace/percona-server-5.5-asan-param/BUILD_TYPE/release-asan/Host/ubuntu-xenial-64bit/sql/gen_lex_hash.cc:265
    #6 0x401b6d in add_structs_to_map(hash_lex_struct*, int) /mnt/workspace/percona-server-5.5-asan-param/BUILD_TYPE/release-asan/Host/ubuntu-xenial-64bit/sql/gen_lex_hash.cc:265
    #7 0x401b6d in add_structs_to_map(hash_lex_struct*, int) /mnt/workspace/percona-server-5.5-asan-param/BUILD_TYPE/release-asan/Host/ubuntu-xenial-64bit/sql/gen_lex_hash.cc:265
    #8 0x401b6d in add_structs_to_map(hash_lex_struct*, int) /mnt/workspace/percona-server-5.5-asan-param/BUILD_TYPE/release-asan/Host/ubuntu-xenial-64bit/sql/gen_lex_hash.cc:265
    #9 0x401f00 in print_find_structs() /mnt/workspace/percona-server-5.5-asan-param/BUILD_TYPE/release-asan/Host/ubuntu-xenial-64bit/sql/gen_lex_hash.cc:310
    #10 0x400c82 in main /mnt/workspace/percona-server-5.5-asan-param/BUILD_TYPE/release-asan/Host/ubuntu-xenial-64bit/sql/gen_lex_hash.cc:395
    #11 0x7f67363ee82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)

SUMMARY: AddressSanitizer: 13100 byte(s) leaked in 1 allocation(s).
sql/CMakeFiles/GenServerSource.dir/build.make:70: recipe for target 'sql/lex_hash.h' failed
make[2]: *** [sql/lex_hash.h] Error 23
make[2]: *** Deleting file 'sql/lex_hash.h'

Tags: asan ci upstream
tags: added: asan ci
tags: added: upstream
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-3433

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.