Type:
Bug
Priority:
Major
Resolution:
Cannot Reproduce
Affects Version/s:
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
Environment:
Server version: 11.5.0-MariaDB source revision: 929c2e06aae47f2dabf51b843ac84911de95bc7f
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
{"report":{"fcp":1102.3000001907349,"ttfb":301.59999990463257,"pageVisibility":"visible","entityId":128242,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"84dea239-e70e-4a39-b761-a7c7a1f76f5b","navigationType":0,"readyForUser":1205.0999999046326,"redirectCount":0,"resourceLoadedEnd":843.0999999046326,"resourceLoadedStart":307.59999990463257,"resourceTiming":[{"duration":286.2000002861023,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":307.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":307.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":593.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":286.2999997138977,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":307.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":307.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":594.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":295.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":308,"connectEnd":308,"connectStart":308,"domainLookupEnd":308,"domainLookupStart":308,"fetchStart":308,"redirectEnd":0,"redirectStart":0,"requestStart":308,"responseEnd":603.0999999046326,"responseStart":603.0999999046326,"secureConnectionStart":308},{"duration":337.2000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":308.19999980926514,"connectEnd":308.19999980926514,"connectStart":308.19999980926514,"domainLookupEnd":308.19999980926514,"domainLookupStart":308.19999980926514,"fetchStart":308.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":308.19999980926514,"responseEnd":645.4000000953674,"responseStart":645.4000000953674,"secureConnectionStart":308.19999980926514},{"duration":341.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":308.30000019073486,"connectEnd":308.30000019073486,"connectStart":308.30000019073486,"domainLookupEnd":308.30000019073486,"domainLookupStart":308.30000019073486,"fetchStart":308.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":308.30000019073486,"responseEnd":649.4000000953674,"responseStart":649.4000000953674,"secureConnectionStart":308.30000019073486},{"duration":341.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":308.59999990463257,"connectEnd":308.59999990463257,"connectStart":308.59999990463257,"domainLookupEnd":308.59999990463257,"domainLookupStart":308.59999990463257,"fetchStart":308.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":308.59999990463257,"responseEnd":649.9000000953674,"responseStart":649.9000000953674,"secureConnectionStart":308.59999990463257},{"duration":341.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":308.80000019073486,"connectEnd":308.80000019073486,"connectStart":308.80000019073486,"domainLookupEnd":308.80000019073486,"domainLookupStart":308.80000019073486,"fetchStart":308.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":308.80000019073486,"responseEnd":650.3000001907349,"responseStart":650.3000001907349,"secureConnectionStart":308.80000019073486},{"duration":436.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":309,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":309,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":745.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":341.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":309.09999990463257,"connectEnd":309.09999990463257,"connectStart":309.09999990463257,"domainLookupEnd":309.09999990463257,"domainLookupStart":309.09999990463257,"fetchStart":309.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":309.09999990463257,"responseEnd":650.6999998092651,"responseStart":650.6999998092651,"secureConnectionStart":309.09999990463257},{"duration":436.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":309.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":309.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":745.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":341.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":309.5,"connectEnd":309.5,"connectStart":309.5,"domainLookupEnd":309.5,"domainLookupStart":309.5,"fetchStart":309.5,"redirectEnd":0,"redirectStart":0,"requestStart":309.5,"responseEnd":651.4000000953674,"responseStart":651.4000000953674,"secureConnectionStart":309.5},{"duration":486.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":314.80000019073486,"connectEnd":314.80000019073486,"connectStart":314.80000019073486,"domainLookupEnd":314.80000019073486,"domainLookupStart":314.80000019073486,"fetchStart":314.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":314.80000019073486,"responseEnd":801.6999998092651,"responseStart":801.6999998092651,"secureConnectionStart":314.80000019073486},{"duration":528.1999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":314.90000009536743,"connectEnd":314.90000009536743,"connectStart":314.90000009536743,"domainLookupEnd":314.90000009536743,"domainLookupStart":314.90000009536743,"fetchStart":314.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":314.90000009536743,"responseEnd":843.0999999046326,"responseStart":843.0999999046326,"secureConnectionStart":314.90000009536743},{"duration":45.200000286102295,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":757.5999999046326,"connectEnd":757.5999999046326,"connectStart":757.5999999046326,"domainLookupEnd":757.5999999046326,"domainLookupStart":757.5999999046326,"fetchStart":757.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":757.5999999046326,"responseEnd":802.8000001907349,"responseStart":802.8000001907349,"secureConnectionStart":757.5999999046326}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":102,"responseStart":301,"responseEnd":308,"domLoading":305,"domInteractive":1277,"domContentLoadedEventStart":1277,"domContentLoadedEventEnd":1337,"domComplete":2118,"loadEventStart":2118,"loadEventEnd":2119,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1255.5},{"name":"bigPipe.sidebar-id.end","time":1256.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1256.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1259.5},{"name":"activityTabFullyLoaded","time":1345.4000000953674}],"measures":[],"correlationId":"527c90595f8b30","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":126,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}