Details
-
Bug
-
Status: Closed (View Workflow)
-
Blocker
-
Resolution: Duplicate
-
10.5.2
-
None
-
Ubtuntu 18.04
Description
A crash in MDEV. Release build affected.
POC:
—
CREATE TABLE v0 ( v1 INT ) ; |
INSERT INTO v0 ( v1 ) VALUES ( 90 ) ; |
UPDATE v0 SET v1 = 46 WHERE ( SELECT v1 , v1 FROM v0 WHERE v1 = -1 ) IN ( SELECT v1 / 2147483647 , v1 / -1 FROM v0 GROUP BY ( SELECT -128 WHERE v1 = v1 OR v1 = 'x' ) HAVING v1 < 'x' ) ; |
INSERT INTO v0 ( v1 ) VALUES ( -1 ) , ( 36 ) ; |
SELECT MAX ( v1 ) OVER w , JSON_OBJECTAGG ( v1 ) OVER w FROM v0 WINDOW v2 AS ( PARTITION BY v1 ORDER BY v1 DESC ) ; |
Stack dump:
—
200505 17:59:00 [ERROR] mysqld got signal 11 ;
|
This could be because you hit a bug. It is also possible that this binary
|
or one of the libraries it was linked against is corrupt, improperly built,
|
or misconfigured. This error can also be caused by malfunctioning hardware.
|
|
To report this bug, see https://mariadb.com/kb/en/reporting-bugs
|
|
We will try our best to scrape up some info that will hopefully help
|
diagnose the problem, but since we have already crashed,
|
something is definitely wrong and this may fail.
|
|
Server version: 10.5.3-MariaDB
|
key_buffer_size=134217728
|
read_buffer_size=131072
|
max_used_connections=2
|
max_threads=153
|
thread_count=3
|
It is possible that mysqld could use up to
|
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467821 K bytes of memory
|
Hope that's ok; if not, decrease some variables in the equation.
|
|
Thread pointer: 0x62b00007e218
|
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 = 0x7f7118463840 thread_stack 0x5fc00
|
/usr/local/mysql/bin/mysqld[0x864c31]
|
innobase/lexyy.cc:2122(yy_get_next_buffer())[0x47c6b56]
|
sql/sql_type.h:2949(Type_handler::Item_time_typecast_fix_length_and_dec(Item_time_typecast*) const)[0x1dc0714]
|
??:0(__restore_rt)[0x7f7139ca9890]
|
sql/proxy_protocol.cc:84(parse_v1_header(char*, unsigned long, proxy_peer_info*))[0x1f0c92a]
|
sql/sql_error.h:726(Field_bit_as_char::store(char const*, unsigned long, charset_info_st const*))[0x21451b0]
|
sql/sql_string.h:631(Query_cache::send_result_to_client(THD*, char*, unsigned int))[0x103eb2c]
|
sql/item_cmpfunc.cc:5052(Item_cond::find_not_null_fields(unsigned long long))[0x2430758]
|
sql/item_cmpfunc.cc:2044(Item_func_interval::val_int())[0x23e6899]
|
sql/item_func.h:1056(Item_int_func::Item_int_func(THD*, Item_int_func*))[0x24297ea]
|
asan_interceptors.cc.o:0(__interceptor___lxstat.part.240)[0xc09f62]
|
sql/sql_cache.cc:782(has_no_cache_directive(char const*))[0x103d01f]
|
sql/item.h:5464(Item_direct_ref_to_ident::fix_fields(THD*, Item**))[0x10224b6]
|
sql/item.h:2462(With_sum_func_cache::With_sum_func_cache(Item const*))[0x14bba4c]
|
sql/sql_acl.cc:8196(check_grant_column(THD*, st_grant_info*, char const*, char const*, char const*, unsigned long, Security_context*))[0xf17731]
|
sql/sql_acl.cc:4146(find_user_exact(char const*, char const*))[0xee155b]
|
sql/sql_acl.cc:2951(unsigned long find_first_user<ACL_USER>(ACL_USER*, unsigned long, char const*))[0xed270c]
|
sql/sql_acl.cc:4584(replace_user_table(THD*, User_table const&, LEX_USER*, privilege_t, bool, bool, bool))[0xee38b9]
|
sql/sql_show.cc:6451(store_schema_proc(THD*, TABLE*, TABLE*, char const*, bool, char const*))[0x16b6012]
|
sql/sql_string.h:420(Binary_string::Binary_string(char*, unsigned long))[0x16b49c1]
|
maria/ma_loghandler.c:4114(translog_init_with_table)[0x31b30c1]
|
/usr/local/mysql/bin/mysqld[0x8b014f]
|
nptl/pthread_create.c:463(start_thread)[0x7f7139c9e6db]
|
x86_64/clone.S:97(clone)[0x7f713783688f]
|
|
Trying to get some variables.
|
Some pointers may be invalid and cause the dump to abort.
|
Query (0x62b000085425): UPDATE v0 SET v1 = 46 WHERE ( SELECT v1 , v1 FROM v0 WHERE v1 = -1 ) IN ( SELECT v1 / 2147483647 , v1 / -1 FROM v0 GROUP BY ( SELECT -128 WHERE v1 = v1 OR v1 = 'x' ) HAVING v1 < 'x' )
|
Connection ID (thread ID): 30255
|
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
|
|
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
|
information that should help you find out what is causing the crash.
|
Writing a core file...
|
Working directory at /usr/local/mysql/data
|
Resource Limits:
|
Limit Soft Limit Hard Limit Units
|
Max cpu time unlimited unlimited seconds
|
Max file size unlimited unlimited bytes
|
Max data size unlimited unlimited bytes
|
Max stack size 8388608 unlimited bytes
|
Max core file size 0 0 bytes
|
Max resident set unlimited unlimited bytes
|
Max processes unlimited unlimited processes
|
Max open files 1048576 1048576 files
|
Max locked memory 16777216 16777216 bytes
|
Max address space unlimited unlimited bytes
|
Max file locks unlimited unlimited locks
|
Max pending signals 1030951 1030951 signals
|
Max msgqueue size 819200 819200 bytes
|
Max nice priority 0 0
|
Max realtime priority 0 0
|
Max realtime timeout unlimited unlimited us
|
Core pattern: co...
|
Attachments
Issue Links
- duplicates
-
MDEV-22464 Server crash on UPDATE with nested subquery
- Closed