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

ASan: Direct leak of 272 byte(s) in main.mysqlpump_partial_bkp MTR test case

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 5.7.22-22, Not 5.5.x, Not 5.6.x
    • Fix Version/s: 5.7.25-28
    • Component/s: None
    • Labels:

      Description

      main.mysqlpump_partial_bkp               [ fail ]
              Test ended at 2018-08-22 17:36:38
      
      CURRENT_TEST: main.mysqlpump_partial_bkp
      Dump completed in 1773 milliseconds
      Dump completed in 1491 milliseconds
      mysqlpump: [ERROR] (1) A partial dump from a server that is using GTID-based replication requires the --set-gtid-purged=[ON|OFF] option to be specified. Use ON if the intention is to deploy a new replication slave using only some of the data from the dumped server. Use OFF if the intention is to repair a table by copying it within a topology, and use OFF if the intention is to copy a table between replication topologies that are disjoint and will remain so.
      
      Dump process encountered error and will not continue.
      
      =================================================================
      ==73076==ERROR: LeakSanitizer: detected memory leaks
      
      Direct leak of 272 byte(s) in 2 object(s) allocated from:
          #0 0x7fea402b3458 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0458)
          #1 0x5575fc705965 in Mysql::Tools::Dump::Mysql_crawler::enumerate_objects() /mnt/hgfs/repos/percona-server/client/dump/mysql_crawler.cc:101
          #2 0x5575fc6ee786 in Mysql::Tools::Dump::Program::execute(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >) /mnt/hgfs/repos/percona-server/client/dump/program.cc:201
          #3 0x5575fc7f2c1c in Mysql::Tools::Base::Abstract_program::run(int, char**) /mnt/hgfs/repos/percona-server/client/base/abstract_program.cc:98
          #4 0x5575fc6ebd63 in main /mnt/hgfs/repos/percona-server/client/dump/program.cc:277
          #5 0x7fea3eb3bb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
      
      Indirect leak of 200719 byte(s) in 195 object(s) allocated from:
          #0 0x7fea402b3458 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0458)
          #1 0x7fea3f24bdbe in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long) (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x128dbe)
      
      Indirect leak of 153896 byte(s) in 31 object(s) allocated from:
          #0 0x7fea402b3458 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0458)
          #1 0x5575fc6f1a8c in void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag) /usr/include/c++/7/bits/basic_string.tcc:219
          #2 0x5575fc7a6c8e in void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct_aux<char*>(char*, char*, std::__false_type) /usr/include/c++/7/bits/basic_string.h:236
          #3 0x5575fc7a6c8e in void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*) /usr/include/c++/7/bits/basic_string.h:255
          #4 0x5575fc7a6c8e in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /usr/include/c++/7/bits/basic_string.h:440
          #5 0x5575fc7a6c8e in Mysql::Tools::Dump::Abstract_plain_sql_object::Abstract_plain_sql_object(unsigned long long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /mnt/hgfs/repos/percona-server/client/dump/abstract_plain_sql_object.cc:36
          #6 0x5575fc7a6e28 in Mysql::Tools::Dump::Abstract_plain_sql_object_dump_task::Abstract_plain_sql_object_dump_task(unsigned long long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /mnt/hgfs/repos/percona-server/client/dump/abstract_plain_sql_object_dump_task.cc:26
          #7 0x5575fc7878aa in Mysql::Tools::Dump::Stored_procedure::Stored_procedure(unsigned long long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /mnt/hgfs/repos/percona-server/client/dump/stored_procedure.cc:25
          #8 0x5575fc70c933 in void Mysql::Tools::Dump::Mysql_crawler::enumerate_functions<Mysql::Tools::Dump::Stored_procedure>(Mysql::Tools::Dump::Database const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) /mnt/hgfs/repos/percona-server/client/dump/mysql_crawler.cc:310
          #9 0x5575fc6fe683 in Mysql::Tools::Dump::Mysql_crawler::enumerate_database_objects(Mysql::Tools::Dump::Database const&) /mnt/hgfs/repos/percona-server/client/dump/mysql_crawler.cc:145
          #10 0x5575fc705cdd in Mysql::Tools::Dump::Mysql_crawler::enumerate_objects() /mnt/hgfs/repos/percona-server/client/dump/mysql_crawler.cc:110
          #11 0x5575fc6ee786 in Mysql::Tools::Dump::Program::execute(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >) /mnt/hgfs/repos/percona-server/client/dump/program.cc:201
          #12 0x5575fc7f2c1c in Mysql::Tools::Base::Abstract_program::run(int, char**) /mnt/hgfs/repos/percona-server/client/base/abstract_program.cc:98
          #13 0x5575fc6ebd63 in main /mnt/hgfs/repos/percona-server/client/dump/program.cc:277
          #14 0x7fea3eb3bb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
      
      ...
      
      SUMMARY: AddressSanitizer: 1135041 byte(s) leaked in 6027 allocation(s).
      mysqltest: At line 38: command "$MYSQL_PUMP --databases bug26199978 --set-gtid-purged=AUTO > $MYSQLTEST_VARDIR/tmp/bug26199978_auto.sql" failed with wrong error: 42
      

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned
                Reporter:
                yura.sorokin Yura Sorokin
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: