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

Memory leak after 'innodb.log_encrypt_1_rk' - in 'redo_log_keys::load_latest_key()'

    Details

    • Type: Bug
    • Status: Pending Release
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 5.7.26-29, 8.0.15-6
    • Fix Version/s: 5.7.27-30, 8.0.NEXT
    • Component/s: None
    • Labels:

      Description

      Run the following command under Address Sanitizer

      ./mysql-test/mtr --big-test --debug-server --sanitize innodb.log_encrypt_1_rk
      
      [ 50%] innodb.log_encrypt_1_rk                  [ pass ]  16781
      worker[1] Sanitizer report from /home/yura/addon/local/percona-build-5.7-asan_gcc8/mysql-test/var/log/mysqld.1.err after tests:
       innodb.log_encrypt_1_rk
      --------------------------------------------------------------------------
      ==34956==ERROR: LeakSanitizer: detected memory leaks
      
      Direct leak of 66 byte(s) in 1 object(s) allocated from:
          #0 0x7f15420edf00 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xedf00)
          #1 0x5619f2e47d1a in my_raw_malloc /home/yura/addon/local/percona-server/mysys/my_malloc.c:191
          #2 0x5619f2e47d1a in my_malloc /home/yura/addon/local/percona-server/mysys/my_malloc.c:54
          #3 0x7f153837dc15  (<unknown module>)
          #4 0x7f153837e60d  (<unknown module>)
          #5 0x7f153839324d  (<unknown module>)
          #6 0x7f15383982f8  (<unknown module>)
          #7 0x7f1538395367  (<unknown module>)
          #8 0x5619f28b8b05 in key_fetch /home/yura/addon/local/percona-server/sql/keyring_service.cc:49
          #9 0x5619f2475779 in plugin_foreach_with_mask(THD*, char (**)(THD*, st_plugin_int**, void*), int, unsigned int, void*) /home/yura/addon/local/percona-server/sql/sql_plugin.cc:2573
          #10 0x5619f24759eb in plugin_foreach_with_mask(THD*, char (*)(THD*, st_plugin_int**, void*), int, unsigned int, void*) /home/yura/addon/local/percona-server/sql/sql_plugin.cc:2588
          #11 0x5619f28b9496 in my_key_fetch /home/yura/addon/local/percona-server/sql/keyring_service.cc:117
          #12 0x5619f38da526 in redo_log_keys::load_latest_key(THD*, bool) /home/yura/addon/local/percona-server/storage/innobase/fil/fil0crypt.cc:3176
          #13 0x5619f31e922a in log_rotate_default_key() /home/yura/addon/local/percona-server/storage/innobase/log/log0log.cc:1421
          #14 0x5619f30613b2 in innobase_fix_tablespaces_empty_uuid() /home/yura/addon/local/percona-server/storage/innobase/handler/ha_innodb.cc:3948
          #15 0x5619f274e501 in mysqld_main(int, char**) /home/yura/addon/local/percona-server/sql/mysqld.cc:5159
          #16 0x5619f108675d in main /home/yura/addon/local/percona-server/sql/main.cc:25
          #17 0x7f153fd0cb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
      

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                zsolt.parragi Zsolt Parragi
                Reporter:
                yura.sorokin Yura Sorokin
              • Votes:
                0 Vote for this issue
                Watchers:
                1 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 - 4 hours
                  4h