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

best_access_path: Conditional jump or move depends on uninitialised value

    XMLWordPrintable

    Details

      Description

      $ perl ./mtr binlog.binlog_stm_blackhole --valgrind
      

      10.3 9aacda40

      binlog.binlog_stm_blackhole 'stmt'       [ fail ]  Found warnings/errors in server log file!
              Test ended at 2020-04-16 00:16:28
      line
      ==20490== Thread 7:
      ==20490== Conditional jump or move depends on uninitialised value(s)
      ==20490==    at 0x847746: best_access_path(JOIN*, st_join_table*, unsigned long long, st_position const*, unsigned int, bool, double, st_position*, st_position*) (sql_select.cc:6963)
      ==20490==    by 0x84CEAA: best_extension_by_limited_search(JOIN*, unsigned long long, unsigned int, double, double, unsigned int, unsigned int, unsigned int) (sql_select.cc:8892)
      ==20490==    by 0x84AE8E: greedy_search(JOIN*, unsigned long long, unsigned int, unsigned int, unsigned int) (sql_select.cc:8103)
      ==20490==    by 0x84A17C: choose_plan(JOIN*, unsigned long long) (sql_select.cc:7679)
      ==20490==    by 0x8428EA: make_join_statistics(JOIN*, List<TABLE_LIST>&, st_dynamic_array*) (sql_select.cc:5147)
      ==20490==    by 0x837076: JOIN::optimize_inner() (sql_select.cc:1942)
      ==20490==    by 0x835526: JOIN::optimize() (sql_select.cc:1488)
      ==20490==    by 0x83F74B: mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:4287)
      ==20490==    by 0x830CCD: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:370)
      ==20490==    by 0x7F7B72: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:6293)
      ==20490==    by 0x7EE498: mysql_execute_command(THD*) (sql_parse.cc:3820)
      ==20490==    by 0x7FBE6A: mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) (sql_parse.cc:7817)
      ==20490==    by 0x7E88AD: dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) (sql_parse.cc:1856)
      ==20490==    by 0x7E71F2: do_command(THD*) (sql_parse.cc:1401)
      ==20490==    by 0x964B11: do_handle_one_connection(CONNECT*) (sql_connect.cc:1403)
      ==20490==    by 0x964873: handle_one_connection (sql_connect.cc:1308)
      ^ Found warnings in /data/bld/10.3-valgrind-nightly/mysql-test/var/log/mysqld.1.err
      

      Not reproducible on 10.2 or 10.4.

      There are more tests failing the same way on 10.3, especially in main and mroonga/storage suites, but also elsewhere.

        Attachments

          Activity

            People

            Assignee:
            igor Igor Babaev
            Reporter:
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: