Assertion `table_list->table' failed in find_field_in_table_ref in maria-5.3 with views / WL#106
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
High
|
Oleksandr "Sanja" Byelkin |
Bug Description
Not reproducible before WL#106. Not influenced by derived_merge and derived_with_keys flag. EXPLAIN also crashes.
assertion:
mysqld: sql_base.cc:6201: Field* find_field_
#6 0x00000033b58296e6 in __assert_fail () from /lib64/libc.so.6
#7 0x00000000006fd7bb in find_field_
db_name=0x0, table_name=
register_
#8 0x00000000006fe141 in find_field_
report_
#9 0x00000000005a6ac8 in Item_field:
#10 0x00000000007284fc in find_order_in_list (thd=0x1cbc7068, ref_pointer_
is_
#11 0x0000000000728c42 in setup_order (thd=0x1cbc7068, ref_pointer_
at sql_select.cc:18645
#12 0x0000000000757dda in setup_without_group (thd=0x1cbc7068, ref_pointer_
conds=
#13 0x000000000074d779 in JOIN::prepare (this=0x1ccd9440, rref_pointer_
order_
#14 0x000000000089d4fc in st_select_
#15 0x000000000089f053 in mysql_derived_
#16 0x000000000089fc7c in mysql_handle_
#17 0x000000000070ce2d in TABLE_LIST:
#18 0x000000000057a36f in st_select_
#19 0x000000000074d35f in JOIN::prepare (this=0x1cc87d20, rref_pointer_
order_
#20 0x000000000074e7a0 in mysql_select (thd=0x1cbc7068, rref_pointer_
order=
at sql_select.cc:2867
#21 0x0000000000754c04 in handle_select (thd=0x1cbc7068, lex=0x1cbc9470, result=0x1cc84be0, setup_tables_
#22 0x00000000006a19e0 in execute_
#23 0x00000000006a36be in mysql_execute_
#24 0x00000000006ac457 in mysql_parse (thd=0x1cbc7068, rawbuf=0x1cc4ccb0 "SELECT * FROM v4 AS a1, v4 AS a2", length=33, found_semicolon
at sql_parse.cc:6088
#25 0x00000000006ad2ef in dispatch_command (command=COM_QUERY, thd=0x1cbc7068, packet=0x1cc43939 "SELECT * FROM v4 AS a1, v4 AS a2", packet_length=33)
at sql_parse.cc:1208
#26 0x00000000006ae8fd in do_command (thd=0x1cbc7068) at sql_parse.cc:906
#27 0x0000000000699373 in handle_
#28 0x00000033b600673d in start_thread () from /lib64/
#29 0x00000033b58d40cd in clone () from /lib64/libc.so.6
optimizer switch:
index_merge=
test case:
CREATE TABLE t1 (f1 int);
INSERT INTO t1 VALUES (1),(1);
CREATE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT f1 FROM t1;
CREATE ALGORITHM=MERGE VIEW v2 AS SELECT f1 FROM v1 ORDER BY f1;
SELECT * FROM v2 AS a1, v2 AS a2;
Changed in maria: | |
milestone: | none → 5.3 |
assignee: | nobody → Igor Babaev (igorb-seattle) |
summary: |
Assertion `table_list->table' failed in find_field_in_table_ref in - maria-5.3 + maria-5.3 with views / WL#106 |
Changed in maria: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in maria: | |
status: | Confirmed → In Progress |
Changed in maria: | |
assignee: | Igor Babaev (igorb-seattle) → Oleksandr "Sanja" Byelkin (sanja-byelkin) |
Changed in maria: | |
status: | In Progress → Fix Committed |
Changed in maria: | |
status: | Fix Committed → Fix Released |