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

mysqldump --innodb-optimize-keys memory leak

    Details

      Description

      Seen on MTR with Valgrind or LeakSanitizer:

      [100%] main.percona_mysqldump_innodb_optimize_keys [ fail ]
              Test ended at 2018-12-13 13:54:28
      
      CURRENT_TEST: main.percona_mysqldump_innodb_optimize_keys
      ==8087== 110 bytes in 2 blocks are definitely lost in loss record 4 of 4
      ==8087==    at 0x483774F: malloc (vg_replace_malloc.c:299)
      ==8087==    by 0x19A4A1: my_raw_malloc(unsigned long, int) (my_malloc.cc:199)
      ==8087==    by 0x19A0F9: my_malloc(unsigned int, unsigned long, int) (my_malloc.cc:81)
      ==8087==    by 0x19A6B3: my_strndup(unsigned int, char const*, unsigned long, int) (my_malloc.cc:303)
      ==8087==    by 0x1797E2: skip_secondary_keys(char const*, char*, bool) (mysqldump.cc:2785)
      ==8087==    by 0x17B227: get_table_structure(char*, char*, char*, char*, bool*) (mysqldump.cc:3392)
      ==8087==    by 0x17DC11: dump_table(char*, char*) (mysqldump.cc:4190)
      ==8087==    by 0x182264: dump_selected_tables(char*, char**, int) (mysqldump.cc:5395)
      ==8087==    by 0x18540F: main (mysqldump.cc:6521)
      ==8087== 
      mysqltest: At line 135: Command "exec" failed with error 42. my_errno=175.
      

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                laurynas.biveinis Laurynas Biveinis (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: