Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
11.1.2, 11.2.1
-
None
-
Ubuntu 20.04 x86-64, docker image mariadb:11.1.2
Description
PoC:
SELECT ( SELECT 1 UNION SELECT 1.000000 UNION ALL SELECT 1 EXCEPT ALL SELECT 1 EXCEPT ALL SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1 ) ; |
docker log:
mariadbd(my_print_stacktrace+0x32)[0x55d30da857c2]
|
mariadbd(handle_fatal_signal+0x488)[0x55d30d55ecf8]
|
/lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7fc717e6e520]
|
mariadbd(+0xd76d7f)[0x55d30d82fd7f]
|
mariadbd(+0xd72110)[0x55d30d82b110]
|
mariadbd(_ZN11select_unit12write_recordEv+0x2c5)[0x55d30d3bc5e5]
|
mariadbd(_ZN15select_unit_ext9send_dataER4ListI4ItemE+0x102)[0x55d30d3bd882]
|
mariadbd(_ZN4JOIN10exec_innerEv+0xc90)[0x55d30d36d880]
|
mariadbd(_ZN4JOIN4execEv+0x3f)[0x55d30d36dfff]
|
mariadbd(_ZN18st_select_lex_unit10exec_innerEv+0x5b4)[0x55d30d3c0344]
|
mariadbd(_ZN22subselect_union_engine4execEv+0x22)[0x55d30d63d262]
|
mariadbd(_ZN14Item_subselect4execEv+0x4c)[0x55d30d63d73c]
|
mariadbd(_ZN24Item_singlerow_subselect7val_strEP6String+0x29)[0x55d30d63fff9]
|
mariadbd(_ZNK12Type_handler13Item_send_strEP4ItemP8ProtocolP8st_value+0x28)[0x55d30d4b5708]
|
mariadbd(_ZN8Protocol19send_result_set_rowEP4ListI4ItemE+0xea)[0x55d30d213cfa]
|
mariadbd(_ZN11select_send9send_dataER4ListI4ItemE+0x37)[0x55d30d2926a7]
|
mariadbd(_ZN4JOIN10exec_innerEv+0xc90)[0x55d30d36d880]
|
mariadbd(_ZN4JOIN4execEv+0x3f)[0x55d30d36dfff]
|
mariadbd(_Z12mysql_selectP3THDP10TABLE_LISTR4ListI4ItemEPS4_jP8st_orderS9_S7_S9_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x12c)[0x55d30d36bf7c]
|
mariadbd(_Z13handle_selectP3THDP3LEXP13select_resulty+0x154)[0x55d30d36c774]
|
mariadbd(+0x826f55)[0x55d30d2dff55]
|
mariadbd(_Z21mysql_execute_commandP3THDb+0x419e)[0x55d30d2eef0e]
|
mariadbd(_Z11mysql_parseP3THDPcjP12Parser_state+0x1e7)[0x55d30d2f0237]
|
mariadbd(_Z16dispatch_command19enum_server_commandP3THDPcjb+0x14bd)[0x55d30d2f2a1d]
|
mariadbd(_Z10do_commandP3THDb+0x138)[0x55d30d2f4818]
|
mariadbd(_Z24do_handle_one_connectionP7CONNECTb+0x3bf)[0x55d30d41c3af]
|
mariadbd(handle_one_connection+0x5d)[0x55d30d41c6fd]
|
mariadbd(+0xcd1906)[0x55d30d78a906]
|
/lib/x86_64-linux-gnu/libc.so.6(+0x94b43)[0x7fc717ec0b43]
|
/lib/x86_64-linux-gnu/libc.so.6(clone+0x44)[0x7fc717f51bb4]
|
 |
Trying to get some variables.
|
Some pointers may be invalid and cause the dump to abort.
|
Query (0x7fc6b00130d8): SELECT ( SELECT 1 UNION SELECT 1.000000 UNION ALL SELECT 1 EXCEPT ALL SELECT 1 EXCEPT ALL SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1 )
|
 |
Connection ID (thread ID): 4
|
Status: NOT_KILLED
|
 |
Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on,condition_pushdown_for_subquery=on,rowid_filter=on,condition_pushdown_from_having=on,not_null_range_scan=off,hash_join_cardinality=on
|
Attachments
Issue Links
- duplicates
-
MDEV-25158 SIGSEGV in hp_rec_key_cmp and Assertion `curr_op_type != INTERSECT_ALL' failed on SELECT ... UNION SELECT, ASAN heap-use-after-free in ha_heap::find_unique_row
- Confirmed