Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
11.3.0, 10.4(EOL), 10.5, 10.6, 10.9(EOL), 10.10(EOL), 10.11, 11.0(EOL), 11.1(EOL), 11.2(EOL)
-
None
-
Ubuntu 20.04
Description
Run these queries in debug build:
CREATE TABLE x ( x INT ) ;
INSERT INTO x ( x ) VALUES ( 1 ) ;
UPDATE x SET x = 1 WHERE x = 1 ;
INSERT INTO x ( x ) VALUES ( 1 ) , ( 1 ) ;
SELECT x , x FROM x GROUP BY x , x HAVING x = ( SELECT x IN ( SELECT x FROM x WHERE x LIKE 'x' ) FROM x GROUP BY x ) + 1 ^ 1 + 1 ^ 1.000000 NOT IN ( SELECT x FROM x WHERE x = 'x' ) ORDER BY x , x ;
Will trigger Assertion Failed.
GDB info:
#0 0x00007ffff6c0c00b in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff6beb859 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007ffff6beb729 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3 0x00007ffff6bfcfd6 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#4 0x000055555718132b in Item_func_hybrid_field_type::val_int (this=0x62900017d358) at /home/wx/mariadb-11.3.0/sql/item_func.h:904
#5 0x0000555556e14b78 in Item::val_int_result (this=0x62900017d358) at /home/wx/mariadb-11.3.0/sql/item.h:1793
#6 0x0000555557bc30d8 in Item_cache_int::cache_value (this=0x629000183c50) at /home/wx/mariadb-11.3.0/sql/item.cc:10161
#7 0x0000555557bf3310 in Item_in_optimizer::val_int (this=0x629000183b78) at /home/wx/mariadb-11.3.0/sql/item_cmpfunc.cc:1577
#8 0x00005555578b4b6e in Type_handler_int_result::Item_val_bool (this=0x55555b7b68c0 <type_handler_bool>, item=0x629000183b78) at /home/wx/mariadb-11.3.0/sql/sql_type.cc:5082
#9 0x0000555556e147f6 in Item::val_bool (this=0x629000183b78) at /home/wx/mariadb-11.3.0/sql/item.h:1701
#10 0x0000555557be2b15 in Item_func_not::val_int (this=0x62900017f0b0) at /home/wx/mariadb-11.3.0/sql/item_cmpfunc.cc:203
#11 0x00005555578cc1de in Type_handler_int_result::Item_eq_value (this=0x55555b7b6a00 <type_handler_slonglong>, thd=0x62c0001e0288, attr=0x62d000071310, a=0x62900017f0b0, b=0x62900017f0b0) at /home/wx/mariadb-11.3.0/sql/sql_type.cc:8689
#12 0x0000555557c235d4 in Item_equal::add_const (this=0x62d000071260, thd=0x62c0001e0288, c=0x62900017f0b0) at /home/wx/mariadb-11.3.0/sql/item_cmpfunc.cc:6849
#13 0x0000555557c23c81 in Item_equal::merge_with_check (this=0x62d000071260, thd=0x62c0001e0288, item=0x62d000071260, save_merged=true) at /home/wx/mariadb-11.3.0/sql/item_cmpfunc.cc:6974
#14 0x00005555573410d3 in propagate_new_equalities (thd=0x62c0001e0288, cond=0x62d000071260, new_equalities=0x62d0000713f8, inherited=0x0, is_simplifiable_cond=0x7fffd192c900) at /home/wx/mariadb-11.3.0/sql/sql_select.cc:19844
#15 0x00005555577ba9a8 in and_new_conditions_to_optimized_cond (thd=0x62c0001e0288, cond=0x62d000071260, cond_eq=0x629000181770, new_conds=..., cond_value=0x629000181648) at /home/wx/mariadb-11.3.0/sql/opt_subselect.cc:6331
#16 0x00005555572c0873 in JOIN::optimize_inner (this=0x6290001812a8) at /home/wx/mariadb-11.3.0/sql/sql_select.cc:2384
#17 0x00005555572bbba6 in JOIN::optimize (this=0x6290001812a8) at /home/wx/mariadb-11.3.0/sql/sql_select.cc:1944
#18 0x00005555572dd9ba in mysql_select (thd=0x62c0001e0288, tables=0x6290000f5c58, fields=..., conds=0x0, og_num=4, order=0x62900017fd58, group=0x6290000f64d0, having=0x62900017f170, proc_param=0x0, select_options=2165049856, result=0x629000180098, unit=0x62c0001e46d8, select_lex=0x6290000f54a0) at /home/wx/mariadb-11.3.0/sql/sql_select.cc:5235
#19 0x00005555572ad18a in handle_select (thd=0x62c0001e0288, lex=0x62c0001e45f8, result=0x629000180098, setup_tables_done_option=0) at /home/wx/mariadb-11.3.0/sql/sql_select.cc:628
#20 0x00005555571ce583 in execute_sqlcom_select (thd=0x62c0001e0288, all_tables=0x6290000f5c58) at /home/wx/mariadb-11.3.0/sql/sql_parse.cc:6013
#21 0x00005555571becf6 in mysql_execute_command (thd=0x62c0001e0288, is_called_from_prepared_stmt=false) at /home/wx/mariadb-11.3.0/sql/sql_parse.cc:3912
#22 0x00005555571d95e2 in mysql_parse (thd=0x62c0001e0288, rawbuf=0x6290000f52a8 "SELECT x , x FROM x GROUP BY x , x HAVING x = ( SELECT x IN ( SELECT x FROM x WHERE x LIKE 'x' ) FROM x GROUP BY x ) + 1 ^ 1 + 1 ^ 1.000000 NOT IN ( SELECT x FROM x WHERE x = 'x' ) ORDER BY x , x", length=195, parser_state=0x7fffd192e870) at /home/wx/mariadb-11.3.0/sql/sql_parse.cc:7734
#23 0x00005555571b1237 in dispatch_command (command=COM_QUERY, thd=0x62c0001e0288, packet=0x6290000fa289 " SELECT x , x FROM x GROUP BY x , x HAVING x = ( SELECT x IN ( SELECT x FROM x WHERE x LIKE 'x' ) FROM x GROUP BY x ) + 1 ^ 1 + 1 ^ 1.000000 NOT IN ( SELECT x FROM x WHERE x = 'x' ) ORDER BY x , x ;\n", packet_length=199, blocking=true) at /home/wx/mariadb-11.3.0/sql/sql_parse.cc:1893
#24 0x00005555571adf7c in do_command (thd=0x62c0001e0288, blocking=true) at /home/wx/mariadb-11.3.0/sql/sql_parse.cc:1406
#25 0x000055555768e557 in do_handle_one_connection (connect=0x611000055988, put_in_cache=true) at /home/wx/mariadb-11.3.0/sql/sql_connect.cc:1445
#26 0x000055555768deb4 in handle_one_connection (arg=0x611000055848) at /home/wx/mariadb-11.3.0/sql/sql_connect.cc:1347
#27 0x00005555582fa350 in pfs_spawn_thread (arg=0x618000005508) at /home/wx/mariadb-11.3.0/storage/perfschema/pfs.cc:2201
#28 0x00007ffff7115609 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#29 0x00007ffff6ce8133 in clone () from /lib/x86_64-linux-gnu/libc.so.6
Attachments
Issue Links
- duplicates
-
MDEV-32603 Server crash
- Closed
- relates to
-
MDEV-32763 Assertion `fixed' failed at /mariadb-11.3.0/sql/item_strfunc.cc:2391
- Confirmed
-
MDEV-32700 Assertion Failed at /mariadb-11.3.0/sql/item.cc:10737
- Closed