Crash with the following backtrace:
Version: '10.4.11-MariaDB-log' socket: '/var/run/mysql/3302.sock' port: 3302 MariaDB Server
|
200122 9:00: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.4.11-MariaDB-log
|
key_buffer_size=17179869184
|
read_buffer_size=131072
|
max_used_connections=158
|
max_threads=2050
|
thread_count=164
|
It is possible that mysqld could use up to
|
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 21288472 K bytes of memory
|
Hope that's ok; if not, decrease some variables in the equation.
|
|
Thread pointer: 0x7fd8780009a8
|
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 = 0x7fdd48181cf0 thread_stack 0x49000
|
/usr/sbin/mysqld(my_print_stacktrace+0x2e)[0x5647307a9ebe]
|
/usr/sbin/mysqld(handle_fatal_signal+0x30f)[0x5647302424cf]
|
sigaction.c:0(__restore_rt)[0x7fdd5121b630]
|
/usr/sbin/mysqld(_ZN15JOIN_CACHE_BKAH16skip_index_tupleEPv+0xb0)[0x56473014a2d0]
|
/usr/sbin/mysqld(+0x7ae35e)[0x56473014a35e]
|
/usr/sbin/mysqld(_ZN23Mrr_simple_index_reader8get_nextEPPv+0x47)[0x56473014d2b7]
|
/usr/sbin/mysqld(_ZN10DsMrr_impl10dsmrr_nextEPPv+0x42)[0x56473014e4f2]
|
/usr/sbin/mysqld(+0xddc910)[0x564730778910]
|
/usr/sbin/mysqld(+0xddddb3)[0x564730779db3]
|
/usr/sbin/mysqld(_ZN17JOIN_TAB_SCAN_MRR4nextEv+0x30)[0x564730145860]
|
/usr/sbin/mysqld(_ZN10JOIN_CACHE21join_matching_recordsEb+0xcd)[0x564730148a2d]
|
/usr/sbin/mysqld(_ZN10JOIN_CACHE12join_recordsEb+0xdc)[0x5647301484cc]
|
/usr/sbin/mysqld(_Z16sub_select_cacheP4JOINP13st_join_tableb+0x2e)[0x5647300717de]
|
/usr/sbin/mysqld(_ZN4JOIN10exec_innerEv+0xa86)[0x564730093636]
|
/usr/sbin/mysqld(_ZN4JOIN4execEv+0x33)[0x5647300939a3]
|
/usr/sbin/mysqld(_ZN18st_select_lex_unit4execEv+0xb34)[0x5647300d8d14]
|
/usr/sbin/mysqld(_Z11mysql_unionP3THDP3LEXP13select_resultP18st_select_lex_unitm+0x32)[0x5647300dbb22]
|
/usr/sbin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x67)[0x5647300926a7]
|
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x942e)[0x56473003d98e]
|
/usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_statebb+0x3ad)[0x56473003e23d]
|
/usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcjbb+0x217a)[0x5647300415fa]
|
/usr/sbin/mysqld(_Z10do_commandP3THD+0x11c)[0x564730042f3c]
|
/usr/sbin/mysqld(_Z24do_handle_one_connectionP7CONNECT+0x1fa)[0x56473011f24a]
|
/usr/sbin/mysqld(handle_one_connection+0x3d)[0x56473011f32d]
|
pthread_create.c:0(start_thread)[0x7fdd51213ea5]
|
/lib64/libc.so.6(clone+0x6d)[0x7fdd4f5b48cd]
|
happens for INSERT ... SELECT accessing several tables when these options are set:
set join_cache_level =8; -- or 6
|
set optimizer_switch='mrr=on';
|
set optimizer_switch='mrr_sort_keys=on';
|
It was not the case fro the same query and data in older 10.2.x and 10.3.x versions.
{"report":{"fcp":1556.5,"ttfb":333.6000003814697,"pageVisibility":"visible","entityId":82557,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"3cbbbaa6-ced1-4634-8d34-c6078e0526c4","navigationType":0,"readyForUser":1648.8000001907349,"redirectCount":0,"resourceLoadedEnd":2389.800000190735,"resourceLoadedStart":340.1000003814697,"resourceTiming":[{"duration":677.6999998092651,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":340.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":340.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1017.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":677.9000005722046,"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":340.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":340.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1018.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":733.7999992370605,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":340.6000003814697,"connectEnd":340.6000003814697,"connectStart":340.6000003814697,"domainLookupEnd":340.6000003814697,"domainLookupStart":340.6000003814697,"fetchStart":340.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":340.6000003814697,"responseEnd":1074.3999996185303,"responseStart":1074.3999996185303,"secureConnectionStart":340.6000003814697},{"duration":796.6999998092651,"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":340.80000019073486,"connectEnd":340.80000019073486,"connectStart":340.80000019073486,"domainLookupEnd":340.80000019073486,"domainLookupStart":340.80000019073486,"fetchStart":340.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":340.80000019073486,"responseEnd":1137.5,"responseStart":1137.5,"secureConnectionStart":340.80000019073486},{"duration":800.2999992370605,"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":341.1000003814697,"connectEnd":341.1000003814697,"connectStart":341.1000003814697,"domainLookupEnd":341.1000003814697,"domainLookupStart":341.1000003814697,"fetchStart":341.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":341.1000003814697,"responseEnd":1141.3999996185303,"responseStart":1141.3999996185303,"secureConnectionStart":341.1000003814697},{"duration":800.5,"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":341.30000019073486,"connectEnd":341.30000019073486,"connectStart":341.30000019073486,"domainLookupEnd":341.30000019073486,"domainLookupStart":341.30000019073486,"fetchStart":341.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":341.30000019073486,"responseEnd":1141.8000001907349,"responseStart":1141.8000001907349,"secureConnectionStart":341.30000019073486},{"duration":800.6999998092651,"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":341.5,"connectEnd":341.5,"connectStart":341.5,"domainLookupEnd":341.5,"domainLookupStart":341.5,"fetchStart":341.5,"redirectEnd":0,"redirectStart":0,"requestStart":341.5,"responseEnd":1142.1999998092651,"responseStart":1142.1999998092651,"secureConnectionStart":341.5},{"duration":878.1999998092651,"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":341.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":341.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1219.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":800.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":341.80000019073486,"connectEnd":341.80000019073486,"connectStart":341.80000019073486,"domainLookupEnd":341.80000019073486,"domainLookupStart":341.80000019073486,"fetchStart":341.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":341.80000019073486,"responseEnd":1142.6999998092651,"responseStart":1142.6999998092651,"secureConnectionStart":341.80000019073486},{"duration":878.1000003814697,"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":342,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":342,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1220.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":801.4000005722046,"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":342.19999980926514,"connectEnd":342.19999980926514,"connectStart":342.19999980926514,"domainLookupEnd":342.19999980926514,"domainLookupStart":342.19999980926514,"fetchStart":342.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":342.19999980926514,"responseEnd":1143.6000003814697,"responseStart":1143.6000003814697,"secureConnectionStart":342.19999980926514},{"duration":1398.6999998092651,"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":343,"connectEnd":343,"connectStart":343,"domainLookupEnd":343,"domainLookupStart":343,"fetchStart":343,"redirectEnd":0,"redirectStart":0,"requestStart":343,"responseEnd":1741.6999998092651,"responseStart":1741.6999998092651,"secureConnectionStart":343},{"duration":2040.6999998092651,"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":349.1000003814697,"connectEnd":349.1000003814697,"connectStart":349.1000003814697,"domainLookupEnd":349.1000003814697,"domainLookupStart":349.1000003814697,"fetchStart":349.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":349.1000003814697,"responseEnd":2389.800000190735,"responseStart":2389.800000190735,"secureConnectionStart":349.1000003814697},{"duration":516.6000003814697,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1232,"connectEnd":1232,"connectStart":1232,"domainLookupEnd":1232,"domainLookupStart":1232,"fetchStart":1232,"redirectEnd":0,"redirectStart":0,"requestStart":1232,"responseEnd":1748.6000003814697,"responseStart":1748.6000003814697,"secureConnectionStart":1232},{"duration":895.2000007629395,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1548.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1548.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2443.6000003814697,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":123,"responseStart":334,"responseEnd":346,"domLoading":338,"domInteractive":2447,"domContentLoadedEventStart":2447,"domContentLoadedEventEnd":2514,"domComplete":3246,"loadEventStart":3246,"loadEventEnd":3246,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2393.300000190735},{"name":"bigPipe.sidebar-id.end","time":2394.1000003814697},{"name":"bigPipe.activity-panel-pipe-id.start","time":2394.300000190735},{"name":"bigPipe.activity-panel-pipe-id.end","time":2402},{"name":"activityTabFullyLoaded","time":2534.199999809265}],"measures":[],"correlationId":"15982da4689cc2","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":137,"dbReadsTimeInMs":15,"dbConnsTimeInMs":25,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Analysis:
1.In the function ha_partition::multi_range_key_create_key() the code
m_mrr_range_current->key_multi_range.ptr= m_mrr_range_current
assigns the pointer m_mrr_range_current of the type PARTITION_KEY_MULTI_RANGE*
m_mrr_range_current->key_multi_range.ptr that is of the type void*
2. In the function partition_multi_range_key_next() the code
*range= partition_key_multi_range->key_multi_range;
assigns to range.ptr the value of partition_key_multi_range->key_multi_range.ptr that is not
the same as m_mrr_range_current->ptr and actually is taken from some other location of m_mrr_range_current.
3. Finally in the function Mrr_simple_index_reader::init() the call in the code
while (!(res= file->handler::multi_range_read_next(range_info)))
brings us to execution of the code
*range_info= mrr_cur_range.ptr;
that returns some garbage from mrr_cur_range.ptr;