[MDEV-5374] main.func_time fails with valgrind warning "Conditional jump or move depends on uninitialised" in Item_time_typecast::get_date Created: 2013-12-03  Updated: 2014-01-29  Resolved: 2013-12-11

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.5.35, 10.0.7, 5.3.13

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: buildbot, tests, valgrind


 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



 Comments   
Comment by Alexander Barkov [ 2013-12-03 ]

Pushed into 5.3.

Comment by Daniel Bartholomew [ 2014-01-29 ]

http://bazaar.launchpad.net/~maria-captains/maria/5.5/revision/2502.567.175

Generated at Thu Feb 08 07:03:47 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.