Uploaded image for project: 'Percona Server for MySQL'
  1. Percona Server for MySQL
  2. PS-3433

LP #1580993: LeakSanitizer fails build at gen_lex_hash invocation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None

      Description

      **Reported in Launchpad by Laurynas Biveinis last update 16-05-2016 06:10:13

      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'

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            lpjirasync lpjirasync (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Smart Checklist