jump or move depends on uninitialised value in myxt_get_key_length
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
Undecided
|
Unassigned | ||
PBXT |
Fix Released
|
Undecided
|
Vladimir Kolesnikov |
Bug Description
Valgrind catches jump or move depends on uninitialised value myxt_get_key_length in func_math test (for example)
==32123== Conditional jump or move depends on uninitialised value(s)
==32123== at 0x9BA145: myxt_get_
==32123== by 0x9B46C7: idx_next_
==32123== by 0x9B67B1: xt_idx_
==32123== by 0x9A9319: ha_pbxt:
==32123== by 0x7A4F57: handler:
==32123== by 0x7A32BE: handler:
==32123== by 0x7811D6: QUICK_RANGE_
==32123== by 0x7A1084: find_all_
==32123== by 0x7A1BF3: filesort(THD*, st_table*, st_sort_field*, unsigned int, SQL_SELECT*, unsigned long long, bool, unsigned long long*) (filesort.cc:244)
==32123== by 0x6EFC78: create_
==32123== by 0x70C6AA: JOIN::exec() (sql_select.
==32123== by 0x707778: 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_
==32123== by 0x70CCD1: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:278)
==32123== by 0x679355: execute_
==32123== by 0x67B124: mysql_execute_
==32123== by 0x683ECE: mysql_parse(THD*, char const*, unsigned int, char const**) (sql_parse.cc:5979)
==32123==
==32123== Conditional jump or move depends on uninitialised value(s)
==32123== at 0x9BA145: myxt_get_
==32123== by 0x9B46C7: idx_next_
==32123== by 0x9B6B98: xt_idx_
==32123== by 0x9A9319: ha_pbxt:
==32123== by 0x7A4F57: handler:
==32123== by 0x7A32BE: handler:
==32123== by 0x7811D6: QUICK_RANGE_
==32123== by 0x7A1084: find_all_
==32123== by 0x7A1BF3: filesort(THD*, st_table*, st_sort_field*, unsigned int, SQL_SELECT*, unsigned long long, bool, unsigned long long*) (filesort.cc:244)
==32123== by 0x6EFC78: create_
==32123== by 0x70C6AA: JOIN::exec() (sql_select.
==32123== by 0x707778: 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_
==32123== by 0x70CCD1: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:278)
==32123== by 0x679355: execute_
==32123== by 0x67B124: mysql_execute_
==32123== by 0x683ECE: mysql_parse(THD*, char const*, unsigned int, char const**) (sql_parse.cc:5979)
For other cases see:
http://
http://
http://
Can be repeated if run pbxt test suite under valgrind (valgrind build (one of BUILD/compile*
Related branches
Changed in pbxt: | |
assignee: | nobody → Vladimir Kolesnikov (vkolesnikov) |
status: | New → In Progress |
Changed in pbxt: | |
status: | In Progress → Fix Committed |
Changed in pbxt: | |
status: | Fix Committed → Fix Released |
Changed in maria: | |
status: | New → Fix Released |
Hi!
>>>>> "Oleksandr" == Oleksandr Byelkin <Oleksandr> writes:
Oleksandr> Public bug reported:
Oleksandr> Valgrind catches jump or move depends on uninitialised value
Oleksandr> myxt_get_key_length in func_math test (for example)
Oleksandr> ==32123== Conditional jump or move depends on uninitialised value(s) key_length( XTIndex* , unsigned char*) (myxt_xt.cc:995) branch_ item(XTTable* , XTIndex*, XTIdxBranch*, XTIdxResult*) (index_xt.cc:835)
Oleksandr> ==32123== at 0x9BA145: myxt_get_
Oleksandr> ==32123== by 0x9B46C7: idx_next_
This however looks like a true bug that needs to be fixed.
Regards,
Monty