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

LP:752353 - Second crash/valgrind warning in sel_trees_must_be_ored

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      even afer the fix for bug #702403 , valgrind reports the following failure:

      ==7344== Conditional jump or move depends on uninitialised value(s)
      ==7344== at 0x83B26C0: sel_trees_must_be_ored(RANGE_OPT_PARAM*, SEL_TREE*, SEL_TREE*, Bitmap<64u>) (opt_range.cc:8132)
      ==7344== by 0x83B2B80: tree_or(RANGE_OPT_PARAM*, SEL_TREE*, SEL_TREE*) (opt_range.cc:8327)
      ==7344== by 0x83AF566: get_ne_mm_tree(RANGE_OPT_PARAM*, Item_func*, Field*, Item*, Item*, Item_result) (opt_range.cc:6765)
      ==7344== by 0x83AF60C: get_func_mm_tree(RANGE_OPT_PARAM*, Item_func*, Field*, Item*, Item_result, bool) (opt_range.cc:6798)
      ==7344== by 0x83AFEEA: get_full_func_mm_tree(RANGE_OPT_PARAM*, Item_func*, Item_field*, Item*, bool) (opt_range.cc:7103)
      ==7344== by 0x83B0BCC: get_mm_tree(RANGE_OPT_PARAM*, Item*) (opt_range.cc:7293)
      ==7344== by 0x83B012E: get_mm_tree(RANGE_OPT_PARAM*, Item*) (opt_range.cc:7145)
      ==7344== by 0x83A8418: SQL_SELECT::test_quick_select(THD*, Bitmap<64u>, unsigned long long, unsigned long long, bool, bool) (opt_range.cc:3025)
      ==7344== by 0x831A967: make_join_select(JOIN*, SQL_SELECT*, Item*) (sql_select.cc:7418)
      ==7344== by 0x8309B2B: JOIN::optimize() (sql_select.cc:1130)
      ==7344== by 0x830EA44: mysql_select(THD*, Item**, 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:2687)
      ==7344== by 0x8307326: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:282)
      ==7344== by 0x82A4748: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5090)
      ==7344== by 0x829B5BA: mysql_execute_command(THD*) (sql_parse.cc:2235)
      ==7344== by 0x82A6CEB: mysql_parse(THD*, char*, unsigned int, char const**) (sql_parse.cc:6090)
      ==7344== by 0x8299243: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1211)

      Unfortunately, simplification for valgrind failures is not available. So the test case consists of a mysqldump on the table and the unsimplified offending query. If the valgrind failure is converted into an assertion, then I will be able to apply simplification.

      Attachments

        1. LPexportBug752353_bug752353-unsimplified.test
          138 kB
          Rasmus Johansson
        2. LPexportBug752353.xml
          11 kB
          Rasmus Johansson

        Activity

          People

            igor Igor Babaev (Inactive)
            philipstoev Philip Stoev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.