[MDEV-472] mysql-test-run --valgrind main.ps_2myisam gives warning about not initialized memory Created: 2012-08-21  Updated: 2012-08-22  Resolved: 2012-08-22

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.5.27, 5.3.7
Fix Version/s: 5.5.27, 5.3.8

Type: Bug Priority: Major
Reporter: Michael Widenius Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: valgrind
Environment:

OpenSuse, valgrind



 Description   

mysql-test-run --valgrind main.ps_2myisam

returns in 5.5 (5.3 has an identical stack trace):

==21170== Thread 4:
==21170== Conditional jump or move depends on uninitialised value(s)
==21170==    at 0x8CBB12: pack_time (my_time.c:1456)
==21170==    by 0x802EED: get_datetime_value(THD*, Item***, Item**, Item*, bool*) (item_cmpfunc.cc:905)
==21170==    by 0x8030D5: Arg_comparator::compare_datetime() (item_cmpfunc.cc:956)
==21170==    by 0x8135B6: Arg_comparator::compare() (in /my/maria-5.5/sql/mysqld)
==21170==    by 0x805C87: Item_func_eq::val_int() (item_cmpfunc.cc:1858)
==21170==    by 0x7E0858: Item::val_bool() (item.cc:215)
==21170==    by 0x80F1BC: Item_cond_and::val_int() (item_cmpfunc.cc:4608)
==21170==    by 0x67EB74: evaluate_join_record(JOIN*, st_join_table*, int) (sql_select.cc:16200)
==21170==    by 0x67E7BC: sub_select(JOIN*, st_join_table*, bool) (sql_select.cc:16105)
==21170==    by 0x67E073: do_select(JOIN*, List<Item>*, TABLE*, Procedure*) (sql_select.cc:15775)



 Comments   
Comment by Michael Widenius [ 2012-08-22 ]

mysql-test-run --valgrind main.in_datetime_241

Gives a similar warning in latest 5.5 (but not in 5.3)

Comment by Sergei Golubchik [ 2012-08-22 ]

fixed, pushed in 5.3-serg

Generated at Thu Feb 08 06:29:00 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.