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

Direct leak in innodb.percona_expand_fast_index_creation_innodb

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 8.0.16-7
    • Fix Version/s: 8.0.17-8
    • Component/s: None
    • Labels:

      Description

      Build Percona Server with "-DWITH_ASAN=ON -DWITH_ASAN_SCOPE=ON".
      Run

      ./mtr --debug-server --sanitize innodb.percona_expand_fast_index_creation_innodb
      
      ==41589==ERROR: LeakSanitizer: detected memory leaks
      
      Direct leak of 1792 byte(s) in 8 object(s) allocated from:
          #0 0x7f20e77ad17f in operator new(unsigned long) (/lib/x86_64-linux-gnu/libasan.so.5+0x10e17f)
          #1 0x55a49d224c14 in restore_secondary_keys /mnt/hgfs/repos/percona-server/sql/sql_table.cc:15203
          #2 0x55a49d286d28 in mysql_alter_table(THD*, char const*, char const*, HA_CREATE_INFO*, TABLE_LIST*, Alter_info*) /mnt/hgfs/repos/percona-server/sql/sql_table.cc:17014
          #3 0x55a49cf64a9d in Sql_cmd_alter_table::execute(THD*) /mnt/hgfs/repos/percona-server/sql/sql_alter.cc:368
          #4 0x55a49d0f6e17 in mysql_execute_command(THD*, bool) /mnt/hgfs/repos/percona-server/sql/sql_parse.cc:4637
          #5 0x55a49d0f9cbc in mysql_parse(THD*, Parser_state*, bool) /mnt/hgfs/repos/percona-server/sql/sql_parse.cc:5445
          #6 0x55a49d0fc7aa in dispatch_command(THD*, COM_DATA const*, enum_server_command) /mnt/hgfs/repos/percona-server/sql/sql_parse.cc:1805
          #7 0x55a49d0ff54c in do_command(THD*) /mnt/hgfs/repos/percona-server/sql/sql_parse.cc:1299
          #8 0x55a49d43f108 in handle_connection /mnt/hgfs/repos/percona-server/sql/conn_handler/connection_handler_per_thread.cc:308
          #9 0x55a49fc668a9 in pfs_spawn_thread /mnt/hgfs/repos/percona-server/storage/perfschema/pfs.cc:2855
          #10 0x7f20e763f181 in start_thread /build/glibc-KRRWSm/glibc-2.29/nptl/pthread_create.c:486
      
      Direct leak of 1792 byte(s) in 8 object(s) allocated from:
          #0 0x7f20e77ad17f in operator new(unsigned long) (/lib/x86_64-linux-gnu/libasan.so.5+0x10e17f)
          #1 0x55a49d26410c in remove_secondary_keys /mnt/hgfs/repos/percona-server/sql/sql_table.cc:15119
          #2 0x55a49d286bb3 in mysql_alter_table(THD*, char const*, char const*, HA_CREATE_INFO*, TABLE_LIST*, Alter_info*) /mnt/hgfs/repos/percona-server/sql/sql_table.cc:16999
          #3 0x55a49cf64a9d in Sql_cmd_alter_table::execute(THD*) /mnt/hgfs/repos/percona-server/sql/sql_alter.cc:368
          #4 0x55a49d0f6e17 in mysql_execute_command(THD*, bool) /mnt/hgfs/repos/percona-server/sql/sql_parse.cc:4637
          #5 0x55a49d0f9cbc in mysql_parse(THD*, Parser_state*, bool) /mnt/hgfs/repos/percona-server/sql/sql_parse.cc:5445
          #6 0x55a49d0fc7aa in dispatch_command(THD*, COM_DATA const*, enum_server_command) /mnt/hgfs/repos/percona-server/sql/sql_parse.cc:1805
          #7 0x55a49d0ff54c in do_command(THD*) /mnt/hgfs/repos/percona-server/sql/sql_parse.cc:1299
          #8 0x55a49d43f108 in handle_connection /mnt/hgfs/repos/percona-server/sql/conn_handler/connection_handler_per_thread.cc:308
          #9 0x55a49fc668a9 in pfs_spawn_thread /mnt/hgfs/repos/percona-server/storage/perfschema/pfs.cc:2855
          #10 0x7f20e763f181 in start_thread /build/glibc-KRRWSm/glibc-2.29/nptl/pthread_create.c:486
      

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                robert.golebiowski Robert Golebiowski
                Reporter:
                yura.sorokin Yura Sorokin
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 1 hour, 30 minutes
                  1h 30m