Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-21378

Valgrind uninitialised value in MYSQLtoPLG

    XMLWordPrintable

    Details

      Description

      10.1 1f1e3ce8 valgrind

      $ perl ./mtr connect.pivot --valgrind
       
      connect.pivot                            [ fail ]  Found warnings/errors in server log file!
              Test ended at 2019-12-22 01:12:25
      line
      ==28830== Thread 6:
      ==28830== Conditional jump or move depends on uninitialised value(s)
      ==28830==    at 0xC1411D8: MYSQLtoPLG(int, char*) (myutil.cpp:221)
      ==28830==    by 0xC140380: MYSQLC::GetResult(_global*, bool) (myconn.cpp:924)
      ==28830==    by 0xC1744A9: PIVAID::MakePivotColumns(_global*) (tabpivot.cpp:256)
      ==28830==    by 0xC17388E: PivotColumns(_global*, char const*, char const*, char const*, char const*, char const*, char const*, char const*, char const*, char const*, int) (tabpivot.cpp:65)
      ==28830==    by 0xC0FA69D: connect_assisted_discovery(handlerton*, THD*, TABLE_SHARE*, HA_CREATE_INFO*) (ha_connect.cc:5992)
      ==28830==    by 0x6A887B: create_table_impl(THD*, char const*, char const*, char const*, char const*, char const*, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) (sql_table.cc:4864)
      ==28830==    by 0x6A8F37: mysql_create_table_no_lock(THD*, char const*, char const*, Table_specification_st*, Alter_info*, bool*, int) (sql_table.cc:5007)
      ==28830==    by 0x6A91AD: mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) (sql_table.cc:5069)
      ==28830==    by 0x6B72B7: Sql_cmd_create_table::execute(THD*) (sql_table.cc:10408)
      ==28830==    by 0x5EF832: mysql_execute_command(THD*) (sql_parse.cc:5442)
      ==28830==    by 0x5F4408: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7209)
      ==28830==    by 0x5E35B8: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1499)
      ==28830==    by 0x5E2376: do_command(THD*) (sql_parse.cc:1131)
      ==28830==    by 0x7257AE: do_handle_one_connection(THD*) (sql_connect.cc:1331)
      ==28830==    by 0x7254DF: handle_one_connection (sql_connect.cc:1242)
      ==28830==    by 0xB889E3: pfs_spawn_thread (pfs.cc:1861)
      

      Not reproducible on 10.2.

        Attachments

          Activity

            People

            Assignee:
            bertrandop Olivier Bertrand
            Reporter:
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: