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

Valgrind: 1,160 bytes in 1 blocks are definitely lost in keyring_vault.rpl_key_rotation MTR test case

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 5.7.22-22
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      Tested on Ubuntu Bionic

      Build with Valgrind enabled ('-DWITH_VALGRIND=ON')

      ./mysql-test/mtr --debug-server --valgrind --testcase-timeout=999 --suite-timeout=999 keyring_vault.rpl_key_rotation
      
      HEAP SUMMARY:
          in use at exit: 7,336 bytes in 130 blocks
        total heap usage: 95,270 allocs, 95,140 frees, 180,807,018 bytes allocated
      
      1,160 bytes in 1 blocks are definitely lost in loss record 2 of 4
         at 0x4C2FA3F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
         by 0x1AA2DF1: ut_allocator<unsigned char>::allocate(unsigned long, unsigned char const*, char const*, bool, bool) (ut0new.h:359)
         by 0x1B5282A: mem_heap_create_block_func(mem_block_info_t*, unsigned long, char const*, unsigned long, unsigned long) (mem0mem.cc:302)
         by 0x1A71C7E: mem_heap_create_func(unsigned long, char const*, unsigned long, unsigned long) (mem0mem.ic:493)
         by 0x1AA08B1: create_table_info_t::create_table_def() (ha_innodb.cc:10870)
         by 0x1A8BA41: create_table_info_t::create_table() (ha_innodb.cc:12808)
         by 0x1A8C8C9: ha_innobase::create(char const*, TABLE*, st_ha_create_information*) (ha_innodb.cc:13171)
         by 0xF8175F: handler::ha_create(char const*, TABLE*, st_ha_create_information*) (handler.cc:5273)
         by 0xF824C9: ha_create_table(THD*, char const*, char const*, char const*, st_ha_create_information*, List<Create_field> const*, bool, bool) (handler.cc:5556)
         by 0x1728925: rea_create_table(THD*, char const*, char const*, char const*, st_ha_create_information*, List<Create_field>&, unsigned int, st_key*, handler*, bool) (unireg.cc:558)
         by 0x169CF90: create_table_impl(THD*, char const*, char const*, char const*, char const*, st_ha_create_information*, Alter_info*, bool, unsigned int, bool, bool*, st_key**, unsigned int*) (sql_table.cc:5602)
         by 0x169D5A4: mysql_create_table_no_lock(THD*, char const*, char const*, st_ha_create_information*, Alter_info*, unsigned int, bool*) (sql_table.cc:5732)
         by 0x169D6F4: mysql_create_table(THD*, TABLE_LIST*, st_ha_create_information*, Alter_info*) (sql_table.cc:5778)
         by 0x15FCA96: mysql_execute_command(THD*, bool) (sql_parse.cc:3450)
         by 0x1603FBD: mysql_parse(THD*, Parser_state*) (sql_parse.cc:5873)
         by 0x189B2C6: Query_log_event::do_apply_event(Relay_log_info const*, char const*, unsigned long) (log_event.cc:4915)
      
      6,096 bytes in 127 blocks are indirectly lost in loss record 3 of 4
         at 0x4C2FA3F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
         by 0x1D82FF4: ut_allocator<std::_List_node<unsigned char*> >::allocate(unsigned long, std::_List_node<unsigned char*> const*, char const*, bool, bool) (ut0new.h:359)
         by 0x1D82EC4: __gnu_cxx::__alloc_traits<ut_allocator<std::_List_node<unsigned char*> > >::allocate(ut_allocator<std::_List_node<unsigned char*> >&, unsigned long) (alloc_traits.h:130)
         by 0x1D82E54: std::__cxx11::_List_base<unsigned char*, ut_allocator<unsigned char*> >::_M_get_node() (stl_list.h:383)
         by 0x1D82D6F: std::__cxx11::list<unsigned char*, ut_allocator<unsigned char*> >::_M_create_node(unsigned char* const&) (stl_list.h:554)
         by 0x1D82D18: std::__cxx11::list<unsigned char*, ut_allocator<unsigned char*> >::_M_insert(std::_List_iterator<unsigned char*>, unsigned char* const&) (stl_list.h:1792)
         by 0x1D82C1D: std::__cxx11::list<unsigned char*, ut_allocator<unsigned char*> >::push_back(unsigned char* const&) (stl_list.h:1118)
         by 0x1D82B0E: recv_dblwr_t::add_to_sys(unsigned char*) (log0recv.h:325)
         by 0x1D7ECB7: buf_dblwr_init_or_load_pages(pfs_os_file_t, char const*) (buf0dblwr.cc:619)
         by 0x1E31C50: SysTablespace::read_lsn_and_check_flags(unsigned long*) (fsp0sysspace.cc:575)
         by 0x1E333F4: SysTablespace::open_or_create(bool, bool, unsigned long*, unsigned long*) (fsp0sysspace.cc:939)
         by 0x1C97D5A: innobase_start_or_create_for_mysql() (srv0start.cc:2075)
         by 0x1A7A7DF: innobase_init(void*) (ha_innodb.cc:4414)
         by 0xF7688E: ha_initialize_handlerton(st_plugin_int*) (handler.cc:873)
         by 0x162D8B8: plugin_initialize(st_plugin_int*) (sql_plugin.cc:1252)
         by 0x162E5CF: plugin_register_builtin_and_init_core_se(int*, char**) (sql_plugin.cc:1615)
      
      6,144 (48 direct, 6,096 indirect) bytes in 1 blocks are definitely lost in loss record 4 of 4
         at 0x4C2FA3F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
         by 0x1D82FF4: ut_allocator<std::_List_node<unsigned char*> >::allocate(unsigned long, std::_List_node<unsigned char*> const*, char const*, bool, bool) (ut0new.h:359)
         by 0x1D82EC4: __gnu_cxx::__alloc_traits<ut_allocator<std::_List_node<unsigned char*> > >::allocate(ut_allocator<std::_List_node<unsigned char*> >&, unsigned long) (alloc_traits.h:130)
         by 0x1D82E54: std::__cxx11::_List_base<unsigned char*, ut_allocator<unsigned char*> >::_M_get_node() (stl_list.h:383)
         by 0x1D82D6F: std::__cxx11::list<unsigned char*, ut_allocator<unsigned char*> >::_M_create_node(unsigned char* const&) (stl_list.h:554)
         by 0x1D82D18: std::__cxx11::list<unsigned char*, ut_allocator<unsigned char*> >::_M_insert(std::_List_iterator<unsigned char*>, unsigned char* const&) (stl_list.h:1792)
         by 0x1D82C1D: std::__cxx11::list<unsigned char*, ut_allocator<unsigned char*> >::push_back(unsigned char* const&) (stl_list.h:1118)
         by 0x1D82B0E: recv_dblwr_t::add_to_sys(unsigned char*) (log0recv.h:325)
         by 0x1D7ECB7: buf_dblwr_init_or_load_pages(pfs_os_file_t, char const*) (buf0dblwr.cc:619)
         by 0x1E31C50: SysTablespace::read_lsn_and_check_flags(unsigned long*) (fsp0sysspace.cc:575)
         by 0x1E333F4: SysTablespace::open_or_create(bool, bool, unsigned long*, unsigned long*) (fsp0sysspace.cc:939)
         by 0x1C97D5A: innobase_start_or_create_for_mysql() (srv0start.cc:2075)
         by 0x1A7A7DF: innobase_init(void*) (ha_innodb.cc:4414)
         by 0xF7688E: ha_initialize_handlerton(st_plugin_int*) (handler.cc:873)
         by 0x162D8B8: plugin_initialize(st_plugin_int*) (sql_plugin.cc:1252)
         by 0x162E5CF: plugin_register_builtin_and_init_core_se(int*, char**) (sql_plugin.cc:1615)
      
      LEAK SUMMARY:
         definitely lost: 1,208 bytes in 2 blocks
         indirectly lost: 6,096 bytes in 127 blocks
           possibly lost: 0 bytes in 0 blocks
         still reachable: 0 bytes in 0 blocks
              suppressed: 32 bytes in 1 blocks
      

        Smart Checklist

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated: