Bug #20783 Valgrind uninitialised warning in test case ctype_uca
Submitted: 29 Jun 2006 18:41 Modified: 28 Jul 2006 4:17
Reporter: Kristian Nielsen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Charsets Severity:S2 (Serious)
Version:5.0.23,5.1 OS:Linux (Linux)
Assigned to: Tatiana Azundris Nuernberg CPU Architecture:Any

[29 Jun 2006 18:41] Kristian Nielsen
Description:
A Valgrind error has appeared in 5.0 in the test case ctype_uca:

==17303== Conditional jump or move depends on uninitialised value(s)
==17303==    at 0x8188CBC: String::c_ptr() (sql_string.h:93)
==17303==    by 0x81BAEF3: Item_func_regex::val_int() (item_cmpfunc.cc:3306)
==17303==    by 0x81831FF: Item::send(Protocol*, String*) (item.cc:4480)
==17303==    by 0x8200BF1: select_send::send_data(List<Item>&) (sql_class.cc:939)
==17303==    by 0x82830E5: end_send(JOIN*, st_join_table*, bool) (sql_select.cc:10477)
==17303==    by 0x827F695: evaluate_join_record(JOIN*, st_join_table*, int, char*) (sql_select.cc:9780)
==17303==    by 0x827FA22: sub_select(JOIN*, st_join_table*, bool) (sql_select.cc:9665)
==17303==    by 0x827FD60: do_select(JOIN*, List<Item>*, st_table*, Procedure*) (sql_select.cc:9428)
==17303==    by 0x8292E5E: JOIN::exec() (sql_select.cc:1739)
==17303==    by 0x82931D5: mysql_select(THD*, Item***, st_table_list*, unsigned, List<Item>&, Item*, unsigned, st_order*, st_order*, Item*, st_order*, unsigned long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:1903)
==17303==    by 0x82934E0: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:250)
==17303==    by 0x8231DCC: mysql_execute_command(THD*) (sql_parse.cc:2559)
==17303==    by 0x82A30B4: Prepared_statement::execute(String*, bool) (sql_prepare.cc:2931)
==17303==    by 0x82A3621: mysql_stmt_execute(THD*, char*, unsigned) (sql_prepare.cc:2258)
==17303==    by 0x823B312: dispatch_command(enum_server_command, THD*, char*, unsigned) (sql_parse.cc:1713)
==17303==    by 0x823CA3A: do_command(THD*) (sql_parse.cc:1538)

How to repeat:
perl mysql-test-run.pl --ps-protocol --valgrind-all ctype_uca
[30 Jun 2006 23:39] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/8580
[1 Jul 2006 1:06] Chad MILLER
Looks good.
[3 Jul 2006 19:41] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/8659
[4 Jul 2006 7:01] Tatiana Azundris Nuernberg
fixed in 5.0.23-release.
[6 Jul 2006 19:16] Paul Dubois
Noted in 5.0.23 changelog.
[25 Jul 2006 4:31] Tatiana Azundris Nuernberg
in 5.1.12-beta
[28 Jul 2006 4:17] Paul Dubois
Noted in 5.1.12 changelog.