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

innodb_buffer_pool_size is an uninitialized variable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 5.7.23-25
    • Fix Version/s: 5.7.24-26
    • Component/s: None

      Description

      SET GLOBAL innodb_buffer_pool_size= 25165824;
      

      causes `innodb_buffer_pool_size` to be uninitialized.

      Valgrind shows:

      ==24620== Conditional jump or move depends on uninitialised value(s)
      ==24620==    at 0x5DD184A: std::ostreambuf_iterator<char, std::char_traits<char> > std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::_M_insert_int<long long>(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, long long) const (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25)
      ==24620==    by 0x5DDD9A4: std::ostream& std::ostream::_M_insert<long long>(long long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25)
      ==24620==    by 0x1AD5C79: ib::logger& ib::logger::operator<< <long long>(long long const&) (ut0ut.h:527)
      ==24620==    by 0x1AC7DCA: innodb_buffer_pool_size_update(THD*, st_mysql_sys_var*, void*, void const*) (ha_innodb.cc:19450)
      ==24620==    by 0x1669967: sys_var_pluginvar::global_update(THD*, set_var*) (sql_plugin.cc:3843)
      ==24620==    by 0x1558F30: sys_var::update(THD*, set_var*) (set_var.cc:183)
      ==24620==    by 0x155A7F9: set_var::update(THD*) (set_var.cc:836)
      ==24620==    by 0x155A057: sql_set_variables(THD*, List<set_var_base>*, bool) (set_var.cc:672)
      ==24620==    by 0x16337DD: mysql_execute_command(THD*, bool) (sql_parse.cc:3908)
      ==24620==    by 0x16396C4: mysql_parse(THD*, Parser_state*, bool) (sql_parse.cc:5880)
      ==24620==    by 0x162D79F: dispatch_command(THD*, COM_DATA const*, enum_server_command) (sql_parse.cc:1528)
      ==24620==    by 0x162C52B: do_command(THD*) (sql_parse.cc:1053)
      ==24620==    by 0x1785E36: handle_connection (connection_handler_per_thread.cc:312)
      ==24620==    by 0x19E8891: pfs_spawn_thread (pfs.cc:2190)
      ==24620==    by 0x5AB16DA: start_thread (pthread_create.c:463)
      ==24620==    by 0x672988E: clone (clone.S:95)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                przemyslaw.skibinski Przemyslaw Skibinski
                Reporter:
                przemyslaw.skibinski Przemyslaw Skibinski
              • 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 - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h