Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Major
-
Resolution: Unresolved
-
11.5.1, 10.4(EOL), 10.5, 10.6, 10.11, 11.0(EOL), 11.1(EOL), 11.2(EOL), 11.3(EOL), 11.4
-
None
-
None
-
Server version: 11.5.0-MariaDB source revision: 929c2e06aae47f2dabf51b843ac84911de95bc7f
Description
I run the following SQL, and then the server crashed.
CREATE TABLE `t1` ( `c1` char ); |
SELECT c1 AS ca1 FROM t1 GROUP BY ca1 |
HAVING ((BIT_AND('6YEgVkuSQ3')) IS NULL) SOUNDS LIKE ((ca1) NOT LIKE (CURRENT_TIMESTAMP)); -- Crash the server |
The following is outputted by the server.
Version: '11.5.0-MariaDB' socket: '/tmp/mysql.sock' port: 14002 Source distribution |
240306 16:33:35 [ERROR] mysqld got signal 11 ;
|
Sorry, we probably made a mistake, and this is a bug.
|
|
Your assistance in bug reporting will enable us to fix this for the next release. |
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: 11.5.0-MariaDB source revision: 929c2e06aae47f2dabf51b843ac84911de95bc7f |
key_buffer_size=134217728
|
read_buffer_size=131072
|
max_used_connections=1
|
max_threads=153
|
thread_count=1
|
It is possible that mysqld could use up to
|
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 468064 K bytes of memory
|
Hope that's ok; if not, decrease some variables in the equation. |
|
Thread pointer: 0x62b00015e218
|
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 = 0x7f6f26424d10 thread_stack 0xb00000
|
sanitizer_common/sanitizer_common_interceptors.inc:4022(__interceptor_backtrace.part.0)[0x7f6f4cebad40] |
addr2line: './mariadbd': No such file |
Printing to addr2line failed
|
./mariadbd(my_print_stacktrace+0xf6)[0x55db96993ca6] |
./mariadbd(handle_fatal_signal+0xb34)[0x55db9581b324] |
/lib/x86_64-linux-gnu/libpthread.so.0(+0x14420)[0x7f6f4ca9a420] |
addr2line: './mariadbd': No such file |
./mariadbd(_ZNK10Item_field11used_tablesEv+0x48)[0x55db958c2378] |
./mariadbd(+0x107f4df)[0x55db950c04df] |
./mariadbd(_ZN4JOIN14optimize_innerEv+0x856e)[0x55db951531ee] |
./mariadbd(_ZN4JOIN8optimizeEv+0x285)[0x55db95159015] |
./mariadbd(_Z12mysql_selectP3THDP10TABLE_LISTR4ListI4ItemEPS4_jP8st_orderS9_S7_S9_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x243)[0x55db95159393] |
./mariadbd(_Z13handle_selectP3THDP3LEXP13select_resulty+0x3e8)[0x55db9515b078] |
./mariadbd(+0xf3ac74)[0x55db94f7bc74] |
./mariadbd(_Z21mysql_execute_commandP3THDb+0xcb5c)[0x55db94fae46c] |
./mariadbd(_Z11mysql_parseP3THDPcjP12Parser_state+0x76c)[0x55db94f69d3c] |
./mariadbd(_Z16dispatch_command19enum_server_commandP3THDPcjb+0x505b)[0x55db94f98b5b] |
./mariadbd(_Z10do_commandP3THDb+0x447)[0x55db94f9e9e7] |
./mariadbd(_Z24do_handle_one_connectionP7CONNECTb+0xb7c)[0x55db953d314c] |
./mariadbd(handle_one_connection+0x75)[0x55db953d39b5] |
./mariadbd(+0x2015f70)[0x55db96056f70] |
/lib/x86_64-linux-gnu/libpthread.so.0(+0x8609)[0x7f6f4ca8e609] |
/lib/x86_64-linux-gnu/libc.so.6(clone+0x43)[0x7f6f4c65f353] |
|
Trying to get some variables.
|
Some pointers may be invalid and cause the dump to abort.
|
Query (0x629000087238): SELECT c1 AS ca1 FROM t1 GROUP BY ca1
|
HAVING ((BIT_AND('6YEgVkuSQ3')) IS NULL) SOUNDS LIKE ((ca1) NOT LIKE (CURRENT_TIMESTAMP)) |
|
Connection ID (thread ID): 3
|
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,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,cset_narrowing=off,sargable_casefold=on
|
|
The manual page at https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mariadbd/ contains |
information that should help you find out what is causing the crash. |
Writing a core file... |
Working directory at /home/fossa/mariadb/20240306 |
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 63391 63391 processes
|
Max open files 32198 32198 files |
Max locked memory 67108864 67108864 bytes
|
Max address space unlimited unlimited bytes
|
Max file locks unlimited unlimited locks |
Max pending signals 63391 63391 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: /mnt/wslg/dumps/core.%e |
|
Kernel version: Linux version 5.15.133.1-microsoft-standard-WSL2 (root@1c602f52c2e4) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP Thu Oct 5 21:02:42 UTC 2023 |
Attachments
Issue Links
- relates to
-
MDEV-26402 A SEGV in Item_field::used_tables/update_depend_map_for_order or Assertion `fixed == 1'
- Closed
-
MDEV-28082 Crash when using HAVING with IS NULL predicate in an equality
- Closed