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

main.func_time fails with valgrind warning "Conditional jump or move depends on uninitialised" in Item_time_typecast::get_date

    XMLWordPrintable

Details

    Description

      Starting from revno 3729 on 5.3 tree and the corresponding merges, the test main.func_time fails in the valgrind builder:

      ==26262== Thread 4:
      ==26262== Conditional jump or move depends on uninitialised value(s)
      ==26262==    at 0x5C91E3: Item_time_typecast::get_date(st_mysql_time*, unsigned int) (item_func.h:162)
      ==26262==    by 0x544297: Item::send(Protocol*, String*) (item.h:957)
      ==26262==    by 0x63A7DC: select_send::send_data(List<Item>&) (sql_class.cc:2012)
      ==26262==    by 0x6FFA2E: JOIN::exec() (sql_select.cc:2169)
      ==26262==    by 0x7013D1: 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:3009)
      ==26262==    by 0x705378: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:288)
      ==26262==    by 0x65F3B7: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5172)
      ==26262==    by 0x667681: mysql_execute_command(THD*) (sql_parse.cc:2305)
      ==26262==    by 0x66C49C: mysql_parse(THD*, char*, unsigned int, char const**) (sql_parse.cc:6173)
      ==26262==    by 0x66CAB7: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1243)
      ==26262==    by 0x66DDF1: do_command(THD*) (sql_parse.cc:923)
      ==26262==    by 0x65C394: handle_one_connection (sql_connect.cc:1231)
      ==26262==    by 0x58BB06F: start_thread (in /lib64/libpthread-2.9.so)
      ==26262==    by 0x652413C: clone (in /lib64/libc-2.9.so)
      ==26262== Conditional jump or move depends on uninitialised value(s)
      ==26262==    at 0x5C94DF: Item_func_hour::val_int() (item_func.h:162)
      ==26262==    by 0x577EDC: eval_const_cond(Item*) (item_func.cc:63)
      ==26262==    by 0x6E4CB3: remove_eq_conds(THD*, Item*, Item::cond_result*) (sql_select.cc:13714)
      ==26262==    by 0x6EDB13: optimize_cond(JOIN*, Item*, List<TABLE_LIST>*, bool, Item::cond_result*, COND_EQUAL**) (sql_select.cc:13237)
      ==26262==    by 0x6FBF8C: JOIN::optimize() (sql_select.cc:1028)
      ==26262==    by 0x701381: 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:2995)
      ==26262==    by 0x705378: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:288)
      ==26262==    by 0x65F3B7: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5172)
      ==26262==    by 0x667681: mysql_execute_command(THD*) (sql_parse.cc:2305)
      ==26262==    by 0x66C49C: mysql_parse(THD*, char*, unsigned int, char const**) (sql_parse.cc:6173)
      ==26262==    by 0x66CAB7: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1243)
      ==26262==    by 0x66DDF1: do_command(THD*) (sql_parse.cc:923)
      ==26262==    by 0x65C394: handle_one_connection (sql_connect.cc:1231)
      ==26262==    by 0x58BB06F: start_thread (in /lib64/libpthread-2.9.so)
      ==26262==    by 0x652413C: clone (in /lib64/libc-2.9.so)
      ==26262== Conditional jump or move depends on uninitialised value(s)
      ==26262==    at 0x5C943F: Item_func_minute::val_int() (item_func.h:162)
      ==26262==    by 0x577EDC: eval_const_cond(Item*) (item_func.cc:63)
      ==26262==    by 0x6E4CB3: remove_eq_conds(THD*, Item*, Item::cond_result*) (sql_select.cc:13714)
      ==26262==    by 0x6EDB13: optimize_cond(JOIN*, Item*, List<TABLE_LIST>*, bool, Item::cond_result*, COND_EQUAL**) (sql_select.cc:13237)
      ==26262==    by 0x6FBF8C: JOIN::optimize() (sql_select.cc:1028)
      ==26262==    by 0x701381: 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:2995)
      ==26262==    by 0x705378: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:288)
      ==26262==    by 0x65F3B7: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5172)
      ==26262==    by 0x667681: mysql_execute_command(THD*) (sql_parse.cc:2305)
      ==26262==    by 0x66C49C: mysql_parse(THD*, char*, unsigned int, char const**) (sql_parse.cc:6173)
      ==26262==    by 0x66CAB7: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1243)
      ==26262==    by 0x66DDF1: do_command(THD*) (sql_parse.cc:923)
      ==26262==    by 0x65C394: handle_one_connection (sql_connect.cc:1231)
      ==26262==    by 0x58BB06F: start_thread (in /lib64/libpthread-2.9.so)
      ==26262==    by 0x652413C: clone (in /lib64/libc-2.9.so)
      ==26262== Conditional jump or move depends on uninitialised value(s)
      ==26262==    at 0x5C939F: Item_func_second::val_int() (item_func.h:162)
      ==26262==    by 0x577EDC: eval_const_cond(Item*) (item_func.cc:63)
      ==26262==    by 0x6E4CB3: remove_eq_conds(THD*, Item*, Item::cond_result*) (sql_select.cc:13714)
      ==26262==    by 0x6EDB13: optimize_cond(JOIN*, Item*, List<TABLE_LIST>*, bool, Item::cond_result*, COND_EQUAL**) (sql_select.cc:13237)
      ==26262==    by 0x6FBF8C: JOIN::optimize() (sql_select.cc:1028)
      ==26262==    by 0x701381: 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:2995)
      ==26262==    by 0x705378: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:288)
      ==26262==    by 0x65F3B7: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5172)
      ==26262==    by 0x667681: mysql_execute_command(THD*) (sql_parse.cc:2305)
      ==26262==    by 0x66C49C: mysql_parse(THD*, char*, unsigned int, char const**) (sql_parse.cc:6173)
      ==26262==    by 0x66CAB7: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1243)
      ==26262==    by 0x66DDF1: do_command(THD*) (sql_parse.cc:923)
      ==26262==    by 0x65C394: handle_one_connection (sql_connect.cc:1231)
      ==26262==    by 0x58BB06F: start_thread (in /lib64/libpthread-2.9.so)
      ==26262==    by 0x652413C: clone (in /lib64/libc-2.9.so)

      http://buildbot.askmonty.org/buildbot/builders/work-amd64-valgrind/builds/4932/steps/test/logs/stdio
      http://buildbot.askmonty.org/buildbot/builders/work-amd64-valgrind/builds/4931/steps/test/logs/stdio

      Attachments

        Activity

          People

            bar Alexander Barkov
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.