Crash/valgrind warning in Bitmap<64u>::intersect in maria-5.1-wl21
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
High
|
Igor Babaev |
Bug Description
backtrace:
#5 0x081c13a9 in Bitmap<
#6 0x08386601 in sel_trees_
#7 0x08386661 in sel_trees_
#8 0x08377839 in SEL_IMERGE:
is_
#9 0x08377b0b in SEL_IMERGE:
is_
#10 0x08377ee7 in imerge_list_or_list (param=0xae9dd41c, im1=0xa9053c0, im2=0xa905c40) at opt_range.cc:1385
#11 0x083872a6 in tree_or (param=0xae9dd41c, tree1=0xa9052b0, tree2=0xa905b30) at opt_range.cc:8176
#12 0x0838413c in get_mm_tree (param=0xae9dd41c, cond=0xa901898) at opt_range.cc:6969
#13 0x0837b855 in SQL_SELECT:
force_
#14 0x082e7b1b in get_quick_
#15 0x082e98d9 in make_join_
#16 0x082e2067 in JOIN::optimize (this=0xa902130) at sql_select.cc:1029
#17 0x082e7843 in mysql_select (thd=0xa76a4a0, rref_pointer_
group=0x0, having=0x0, proc_param=0x0, select_
#18 0x082dff49 in handle_select (thd=0xa76a4a0, lex=0xa76b750, result=0xa8eb4c8, setup_tables_
#19 0x08286dda in execute_
#20 0x0827d736 in mysql_execute_
#21 0x08288e46 in mysql_parse (thd=0xa76a4a0,
rawbuf=
found_
#22 0x0827b222 in dispatch_command (command=COM_QUERY, thd=0xa76a4a0,
packet=
packet_
#23 0x0827a47f in do_command (thd=0xa76a4a0) at sql_parse.cc:895
#24 0x08277490 in handle_
#25 0x00821919 in start_thread () from /lib/libpthread
#26 0x0076acce in clone () from /lib/libc.so.6
testcase:
CREATE TABLE t1 (f1 int,f2 int,f3 int,f4 int,f5 int,
PRIMARY KEY (f4),KEY (f1),KEY (f2),KEY (f3)) ;
INSERT IGNORE INTO t1 VALUES (0,0,NULL,
SELECT f5 FROM t1
WHERE f2 != 'Missouri'
OR f1 IS NULL
OR f4 = 4
OR f2
AND ( f4 BETWEEN 6 AND 255 OR f3 IS NULL ) ;
Related branches
Changed in maria: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in maria: | |
status: | Confirmed → In Progress |
Changed in maria: | |
status: | In Progress → Fix Committed |
Changed in maria: | |
status: | Fix Committed → Fix Released |
Not repeatable with maria-5.1
valgrind warning:
==24571== Use of uninitialised value of size 4 :or_sel_ tree_with_ checks( RANGE_OPT_ PARAM*, unsigned int, SEL_TREE*, bool, bool*) (opt_range.cc:1101) :or_sel_ imerge_ with_checks( RANGE_OPT_ PARAM*, unsigned int, SEL_IMERGE*, bool, bool*) (opt_range.cc:1203) list_or_ list(RANGE_ OPT_PARAM* , List<SEL_IMERGE>*, List<SEL_IMERGE>*) (opt_range.cc:1385) RANGE_OPT_ PARAM*, SEL_TREE*, SEL_TREE*) (opt_range.cc:8176) tree(RANGE_ OPT_PARAM* , Item*) (opt_range.cc:6969) :test_quick_ select( THD*, Bitmap<64u>, unsigned long long, unsigned long long, bool) (opt_range.cc:2983) record_ count(THD* , SQL_SELECT*, st_table*, Bitmap<64u> const*, unsigned long long) (sql_select. cc:2600) statistics( JOIN*, TABLE_LIST*, Item*, st_dynamic_array*) (sql_select. cc:3037) cc:1029) lex_unit* , st_select_lex*) (sql_select. cc:2538) sqlcom_ select( THD*, TABLE_LIST*) (sql_parse.cc:5166) command( THD*) (sql_parse.cc:2340)
==24571== by 0x8377838: SEL_IMERGE:
==24571== by 0x8377B0A: SEL_IMERGE:
==24571== by 0x8377EE6: imerge_
==24571== by 0x83872A5: tree_or(
==24571== by 0x838413B: get_mm_
==24571== by 0x837B854: SQL_SELECT:
==24571== by 0x82E7B1A: get_quick_
==24571== by 0x82E98D8: make_join_
==24571== by 0x82E2066: JOIN::optimize() (sql_select.
==24571== by 0x82E7842: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, un
signed long long, select_result*, st_select_
==24571== by 0x82DFF48: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:280)
==24571== by 0x8286DD9: execute_
==24571== by 0x827D735: mysql_execute_