Details
-
Bug
-
Status: Stalled (View Workflow)
-
Critical
-
Resolution: Unresolved
-
11.1.2, 11.2.1, 10.4(EOL), 10.5, 10.6, 10.9(EOL), 10.10(EOL), 10.11, 11.0(EOL), 11.1(EOL), 11.2
-
Ubuntu 20.04 x86-64, docker image mariadb:11.1.2
Description
PoC:
SELECT ( WITH RECURSIVE x AS ( WITH x AS ( SELECT 1 FROM t14 ) SELECT x ) , t14 AS ( SELECT 1 UNION SELECT 'x' FROM x ) SELECT x FROM x WHERE ( SELECT x FROM x ) ) ; |
docker log:
mariadbd(my_print_stacktrace+0x32)[0x5617194927c2]
|
mariadbd(handle_fatal_signal+0x488)[0x561718f6bcf8]
|
/lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7ff65ab11520]
|
mariadbd(_ZN18st_select_lex_unit7cleanupEv+0x97)[0x561718dce0c7]
|
mariadbd(_ZN18st_select_lex_unit7prepareEP10TABLE_LISTP13select_resulty+0x841)[0x561718dcead1]
|
mariadbd(+0x7ed21f)[0x561718cb321f]
|
mariadbd(_Z27mysql_handle_single_derivedP3LEXP10TABLE_LISTj+0xda)[0x561718cb1e7a]
|
mariadbd(_ZN13st_select_lex14handle_derivedEP3LEXj+0x47)[0x561718cd0697]
|
mariadbd(_ZN4JOIN7prepareEP10TABLE_LISTP4ItemjP8st_orderbS5_S3_S5_P13st_select_lexP18st_select_lex_unit+0x20f)[0x561718d649ff]
|
mariadbd(+0xb8b908)[0x561719051908]
|
mariadbd(_ZN14Item_subselect10fix_fieldsEP3THDPP4Item+0x1ad)[0x561719050fcd]
|
mariadbd(_Z12setup_fieldsP3THD20Bounds_checked_arrayIP4ItemER4ListIS2_E17enum_column_usagePS6_S9_b+0x147)[0x561718c8b0a7]
|
mariadbd(_ZN4JOIN7prepareEP10TABLE_LISTP4ItemjP8st_orderbS5_S3_S5_P13st_select_lexP18st_select_lex_unit+0x52d)[0x561718d64d1d]
|
mariadbd(_Z12mysql_selectP3THDP10TABLE_LISTR4ListI4ItemEPS4_jP8st_orderS9_S7_S9_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x624)[0x561718d79474]
|
mariadbd(_Z13handle_selectP3THDP3LEXP13select_resulty+0x154)[0x561718d79774]
|
mariadbd(+0x826f55)[0x561718cecf55]
|
mariadbd(_Z21mysql_execute_commandP3THDb+0x419e)[0x561718cfbf0e]
|
mariadbd(_Z11mysql_parseP3THDPcjP12Parser_state+0x1e7)[0x561718cfd237]
|
mariadbd(_Z16dispatch_command19enum_server_commandP3THDPcjb+0x14bd)[0x561718cffa1d]
|
mariadbd(_Z10do_commandP3THDb+0x138)[0x561718d01818]
|
mariadbd(_Z24do_handle_one_connectionP7CONNECTb+0x3bf)[0x561718e293af]
|
mariadbd(handle_one_connection+0x5d)[0x561718e296fd]
|
mariadbd(+0xcd1906)[0x561719197906]
|
/lib/x86_64-linux-gnu/libc.so.6(+0x94b43)[0x7ff65ab63b43]
|
/lib/x86_64-linux-gnu/libc.so.6(clone+0x44)[0x7ff65abf4bb4]
|
 |
Trying to get some variables.
|
Some pointers may be invalid and cause the dump to abort.
|
Query (0x7ff5f40130d8): SELECT ( WITH RECURSIVE x AS ( WITH x AS ( SELECT 1 FROM t14 ) SELECT x ) , t14 AS ( SELECT 1 UNION SELECT 'x' FROM x ) SELECT x FROM x WHERE ( SELECT x FROM x ) )
|
 |
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
- relates to
-
MDEV-32724 Segmentation fault due to Deep Recursion in table.cc and sql_lex.cc
- Confirmed