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":1926.9000005722046,"ttfb":486.9000005722046,"pageVisibility":"visible","entityId":82557,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"894eb13c-29fc-4343-8d10-ef0310443046","navigationType":0,"readyForUser":2135.7000007629395,"redirectCount":0,"resourceLoadedEnd":2330.9000005722046,"resourceLoadedStart":497.1000003814697,"resourceTiming":[{"duration":609.3000001907349,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":497.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":497.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1106.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":609.4000005722046,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":497.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":497.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1106.7000007629395,"responseStart":0,"secureConnectionStart":0},{"duration":682.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":497.6000003814697,"connectEnd":497.6000003814697,"connectStart":497.6000003814697,"domainLookupEnd":497.6000003814697,"domainLookupStart":497.6000003814697,"fetchStart":497.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":497.6000003814697,"responseEnd":1179.9000005722046,"responseStart":1179.9000005722046,"secureConnectionStart":497.6000003814697},{"duration":829.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":497.80000019073486,"connectEnd":497.80000019073486,"connectStart":497.80000019073486,"domainLookupEnd":497.80000019073486,"domainLookupStart":497.80000019073486,"fetchStart":497.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":497.80000019073486,"responseEnd":1327.3000001907349,"responseStart":1327.3000001907349,"secureConnectionStart":497.80000019073486},{"duration":858.9000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":498,"connectEnd":498,"connectStart":498,"domainLookupEnd":498,"domainLookupStart":498,"fetchStart":498,"redirectEnd":0,"redirectStart":0,"requestStart":498,"responseEnd":1356.9000005722046,"responseStart":1356.9000005722046,"secureConnectionStart":498},{"duration":885.3999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":498.20000076293945,"connectEnd":498.20000076293945,"connectStart":498.20000076293945,"domainLookupEnd":498.20000076293945,"domainLookupStart":498.20000076293945,"fetchStart":498.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":498.20000076293945,"responseEnd":1383.6000003814697,"responseStart":1383.6000003814697,"secureConnectionStart":498.20000076293945},{"duration":885.6999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":498.30000019073486,"connectEnd":498.30000019073486,"connectStart":498.30000019073486,"domainLookupEnd":498.30000019073486,"domainLookupStart":498.30000019073486,"fetchStart":498.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":498.30000019073486,"responseEnd":1384,"responseStart":1384,"secureConnectionStart":498.30000019073486},{"duration":928.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":498.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":498.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1427,"responseStart":0,"secureConnectionStart":0},{"duration":889.6999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":498.70000076293945,"connectEnd":498.70000076293945,"connectStart":498.70000076293945,"domainLookupEnd":498.70000076293945,"domainLookupStart":498.70000076293945,"fetchStart":498.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":498.70000076293945,"responseEnd":1388.4000005722046,"responseStart":1388.4000005722046,"secureConnectionStart":498.70000076293945},{"duration":928.4000005722046,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/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":498.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":498.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1427.2000007629395,"responseStart":0,"secureConnectionStart":0},{"duration":890.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/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":499,"connectEnd":499,"connectStart":499,"domainLookupEnd":499,"domainLookupStart":499,"fetchStart":499,"redirectEnd":0,"redirectStart":0,"requestStart":499,"responseEnd":1389.3000001907349,"responseStart":1389.3000001907349,"secureConnectionStart":499},{"duration":1829.1999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":499.80000019073486,"connectEnd":499.80000019073486,"connectStart":499.80000019073486,"domainLookupEnd":499.80000019073486,"domainLookupStart":499.80000019073486,"fetchStart":499.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":499.80000019073486,"responseEnd":2329,"responseStart":2329,"secureConnectionStart":499.80000019073486},{"duration":1814.9000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":516,"connectEnd":516,"connectStart":516,"domainLookupEnd":516,"domainLookupStart":516,"fetchStart":516,"redirectEnd":0,"redirectStart":0,"requestStart":516,"responseEnd":2330.9000005722046,"responseStart":2330.9000005722046,"secureConnectionStart":516},{"duration":871,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1458.3000001907349,"connectEnd":1458.3000001907349,"connectStart":1458.3000001907349,"domainLookupEnd":1458.3000001907349,"domainLookupStart":1458.3000001907349,"fetchStart":1458.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1458.3000001907349,"responseEnd":2329.300000190735,"responseStart":2329.300000190735,"secureConnectionStart":1458.3000001907349},{"duration":454.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1916.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1916.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2371.300000190735,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":287,"responseStart":487,"responseEnd":516,"domLoading":495,"domInteractive":2530,"domContentLoadedEventStart":2530,"domContentLoadedEventEnd":2602,"domComplete":3603,"loadEventStart":3603,"loadEventEnd":3606,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2428.2000007629395},{"name":"bigPipe.sidebar-id.end","time":2428.9000005722046},{"name":"bigPipe.activity-panel-pipe-id.start","time":2429.1000003814697},{"name":"bigPipe.activity-panel-pipe-id.end","time":2437.4000005722046},{"name":"activityTabFullyLoaded","time":2632.1000003814697}],"measures":[],"correlationId":"a160814a4c7cd3","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":127,"dbReadsTimeInMs":10,"dbConnsTimeInMs":19,"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;