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

Valgrind warnings in select_union::send_data on UNION with blob (also in buildbot)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.0.4
    • Component/s: None
    • Labels:
      None

      Description

      CREATE TABLE t1 (b LONGBLOB);
      INSERT INTO t1 VALUES ('2'), ('3'), ('2');
      SELECT b FROM t1 UNION SELECT 1;

      No need to add the test case to the MTR suite, it already exists in buildbot and fails there, see for example http://buildbot.askmonty.org/buildbot/builders/work-amd64-valgrind/builds/4338/steps/test/logs/stdio

      ==1349== Conditional jump or move depends on uninitialised value(s)
      ==1349==    at 0x6E086A: select_union::send_data(List<Item>&) (sql_union.cc:94)
      ==1349==    by 0x67E79E: end_send(JOIN*, st_join_table*, bool) (sql_select.cc:17946)
      ==1349==    by 0x67C671: evaluate_join_record(JOIN*, st_join_table*, int) (sql_select.cc:17059)
      ==1349==    by 0x67C0FC: sub_select(JOIN*, st_join_table*, bool) (sql_select.cc:16876)
      ==1349==    by 0x67B823: do_select(JOIN*, List<Item>*, TABLE*, Procedure*) (sql_select.cc:16507)
      ==1349==    by 0x65A539: JOIN::exec_inner() (sql_select.cc:2997)
      ==1349==    by 0x657808: JOIN::exec() (sql_select.cc:2296)
      ==1349==    by 0x6E2674: st_select_lex_unit::exec() (sql_union.cc:665)
      ==1349==    by 0x6E05AE: mysql_union(THD*, LEX*, select_result*, st_select_lex_unit*, unsigned long) (sql_union.cc:38)
      ==1349==    by 0x6514A0: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:354)
      ==1349==    by 0x624F83: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:4846)
      ==1349==    by 0x61D573: mysql_execute_command(THD*) (sql_parse.cc:2278)
      ==1349==    by 0x6277EE: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:5969)
      ==1349==    by 0x61A828: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1094)
      ==1349==    by 0x619D26: do_command(THD*) (sql_parse.cc:810)
      ==1349==    by 0x738E22: do_handle_one_connection(THD*) (sql_connect.cc:1266)

      86:    bool is_duplicate;
      87:    /* create_internal_tmp_table_from_heap will generate error if needed */
      88:    if (table->file->is_fatal_error(write_err, HA_CHECK_DUP) &&
      89:        create_internal_tmp_table_from_heap(thd, table,
      90:                                            tmp_table_param.start_recinfo, 
      91:                                            &tmp_table_param.recinfo,
      92:                                            write_err, 1, &is_duplicate))
      93:      return 1;
      94:    if (is_duplicate)
      95:      return -1;
      96:  }
      97:  return 0;
      98:}

      bzr version-info

      revision-id: sergii@pisem.net-20130717192429-9cttx7c6606u7xly
      revno: 3672
      branch-nick: 10.0-base

        Attachments

          Activity

            People

            Assignee:
            sanja Oleksandr Byelkin
            Reporter:
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: