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

Direct leak in encryption.innodb_encryption_tables

    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 encryption.innodb_encryption_tables
      
      ==16431==ERROR: LeakSanitizer: detected memory leaks
      
      Direct leak of 192 byte(s) in 2 object(s) allocated from:
          #0 0x7f1bec88a448 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.5.0.0+0x10c448)
          #1 0x55f87ae94484 in ut_allocator<unsigned char>::allocate(unsigned long, unsigned char const*, unsigned int, bool, bool) /mnt/hgfs/repos/percona-server/storage/innobase/include/ut0new.h:686
          #2 0x55f87b6303dd in fil_space_rotate_state_t::create_flush_observer(unsigned int) /mnt/hgfs/repos/percona-server/storage/innobase/fil/fil0crypt.cc:340
          #3 0x55f87b63523d in fil_crypt_start_rotate_space /mnt/hgfs/repos/percona-server/storage/innobase/fil/fil0crypt.cc:1408
          #4 0x55f87b639c90 in fil_crypt_thread() /mnt/hgfs/repos/percona-server/storage/innobase/fil/fil0crypt.cc:2536
          #5 0x55f87aec7f0b in void std::__invoke_impl<void, void (*&)()>(std::__invoke_other, void (*&)()) /usr/include/c++/9/bits/invoke.h:60
          #6 0x55f87aec7f26 in std::__invoke_result<void (*&)()>::type std::__invoke<void (*&)()>(void (*&)()) /usr/include/c++/9/bits/invoke.h:95
          #7 0x55f87aec7f32 in void std::_Bind<void (*())()>::__call<void>(std::tuple<>&&, std::_Index_tuple<>) /usr/include/c++/9/functional:400
          #8 0x55f87aec7fb5 in void std::_Bind<void (*())()>::operator()<, void>() /usr/include/c++/9/functional:484
          #9 0x55f87aec8125 in void Runnable::operator()<void (*)()>(void (*&&)()) /mnt/hgfs/repos/percona-server/storage/innobase/include/os0thread-create.h:101
          #10 0x55f87aec81d3 in void std::__invoke_impl<void, Runnable, void (*)()>(std::__invoke_other, Runnable&&, void (*&&)()) /usr/include/c++/9/bits/invoke.h:60
          #11 0x55f87aec8200 in std::__invoke_result<Runnable, void (*)()>::type std::__invoke<Runnable, void (*)()>(Runnable&&, void (*&&)()) /usr/include/c++/9/bits/invoke.h:95
          #12 0x55f87aec8232 in void std::thread::_Invoker<std::tuple<Runnable, void (*)()> >::_M_invoke<0ul, 1ul>(std::_Index_tuple<0ul, 1ul>) /usr/include/c++/9/thread:244
          #13 0x55f87aec8240 in std::thread::_Invoker<std::tuple<Runnable, void (*)()> >::operator()() /usr/include/c++/9/thread:251
          #14 0x55f87aec8250 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<Runnable, void (*)()> > >::_M_run() /usr/include/c++/9/thread:195
          #15 0x7f1beb8e962f  (/lib/x86_64-linux-gnu/libstdc++.so.6+0xd062f)
      

        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:
                  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