[MDEV-32133] Server crash in embedding_sjm Created: 2023-09-08  Updated: 2023-09-08  Resolved: 2023-09-08

Status: Closed
Project: MariaDB Server
Component/s: Server
Affects Version/s: 10.11.5
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: jiaqi Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates MDEV-20622 Server crashes in embedding_sjm with ... Confirmed

 Description   

How to trigger

CREATE TABLE t0 ( c0 INT) ENGINE = myisam ;
INSERT INTO t0 VALUES ( 1 ) ;
SELECT 1 FROM t0 ra0 GROUP BY ra0.c0 WITH ROLLUP HAVING ra0.c0 = 1;

Server version: 10.11.5-MariaDB source revision: 7875294b6b74b53dd3aaa723e6cc103d2bb47b2c
key_buffer_size=134217728
read_buffer_size=131072
max_used_connections=1
max_threads=153
thread_count=21
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 468037 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
 
Thread pointer: 0x7f105c000c18
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0x7f1138068d98 thread_stack 0x49000
mysys/stacktrace.c:216(my_print_stacktrace)[0x56388e9ed25e]
sql/signal_handler.cc:241(handle_fatal_signal)[0x56388e55e765]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12980)[0x7f113aa8b980]
sql/sql_select.cc:16871(embedding_sjm(Item*))[0x56388e3645ff]
sql/sql_select.cc:16987(eliminate_item_equal(THD*, Item*, COND_EQUAL*, Item_equal*))[0x56388e37b3dc]
sql/sql_select.cc:17292(substitute_for_best_equal_field(THD*, st_join_table*, Item*, COND_EQUAL*, void*, bool))[0x56388e37bcb3]
sql/sql_class.h:4430(JOIN::optimize_stage2())[0x56388e39bb87]
sql/sql_select.cc:2585(JOIN::optimize_inner())[0x56388e39f906]
sql/sql_select.cc:1897(JOIN::optimize())[0x56388e3a1af3]
sql/sql_select.cc:5098(mysql_select(THD*, TABLE_LIST*, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x56388e3a1bd9]
sql/sql_select.cc:586(handle_select(THD*, LEX*, select_result*, unsigned long long))[0x56388e3a23be]
sql/sql_parse.cc:6289(execute_sqlcom_select(THD*, TABLE_LIST*))[0x56388e32dcee]
sql/sql_parse.cc:6025(mysql_execute_command(THD*, bool))[0x56388e3373f1]
sql/sql_parse.cc:8051(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x56388e3293af]
sql/sql_parse.cc:1865(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool))[0x56388e334104]
sql/sql_parse.cc:1407(do_command(THD*, bool))[0x56388e33560b]
sql/sql_connect.cc:1416(do_handle_one_connection(CONNECT*, bool))[0x56388e43fbbf]
sql/sql_connect.cc:1318(handle_one_connection)[0x56388e43fefd]
perfschema/pfs.cc:2204(pfs_spawn_thread)[0x56388e73fe85]
nptl/pthread_create.c:463(start_thread)[0x7f113aa806db]
x86_64/clone.S:97(clone)[0x7f1139be261f]
 
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x7f105c014610): SELECT 1 FROM t0 ra0 GROUP BY ra0.c0 WITH ROLLUP HAVINg ra0.c0 = 1
 
Connection ID (thread ID): 23
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=off



 Comments   
Comment by Alice Sherepa [ 2023-09-08 ]

Thanks! yes, it is the same bug as MDEV-20622

Generated at Thu Feb 08 10:29:05 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.