Sprint:
10.2.2-4, 10.1.18
MariaDB 10.1.16 server crashed after running for 1 hour with the query_cache_info plugin enabled:
INSTALL PLUGIN query_cache_info SONAME 'query_cache_info';
with the following related settings:
mysql ((none))> show global variables like 'query%';
+------------------------------+----------+
| Variable_name | Value |
+------------------------------+----------+
| query_alloc_block_size | 16384 |
| query_cache_limit | 8388608 |
| query_cache_min_res_unit | 1024 |
| query_cache_size | 67108864 |
| query_cache_strip_comments | OFF |
| query_cache_type | ON |
| query_cache_wlock_invalidate | OFF |
| query_prealloc_size | 24576 |
+------------------------------+----------+
and query cache related status typically looking like this:
| Qcache_free_blocks | 432 |
| Qcache_free_memory | 14381680 |
| Qcache_hits | 1320200 |
| Qcache_inserts | 1980307 |
| Qcache_lowmem_prunes | 252808 |
| Qcache_not_cached | 1089705 |
| Qcache_queries_in_cache | 17940 |
| Qcache_total_blocks | 37205 |
Stack trace is the following:
160909 10:36:35 [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.1.16-MariaDB
key_buffer_size=67108864
read_buffer_size=1048576
max_used_connections=61
max_threads=1002
thread_count=60
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 3164184 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x0x7f5ec28ba008
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 = 0x7f6bd4dad288 thread_stack 0x48400
/opt/mysql/bin/mysqld(my_print_stacktrace+0x2e)[0xc099ee]
/opt/mysql/bin/mysqld(handle_fatal_signal+0x4ba)[0x7664da]
/lib64/libpthread.so.0(+0xf100)[0x7f6be9f89100]
/opt/mysql/lib/plugin/query_cache_info.so(+0xf35)[0x7f6bde5fef35]
/opt/mysql/bin/mysqld(_Z24get_schema_tables_resultP4JOIN23enum_schema_table_state+0x2ee)[0x612dfe]
/opt/mysql/bin/mysqld(_ZN4JOIN10exec_innerEv+0x907)[0x609927]
/opt/mysql/bin/mysqld(_Z12mysql_selectP3THDPPP4ItemP10TABLE_LISTjR4ListIS1_ES2_jP8st_orderSB_S2_SB_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x28f)[0x60855f]
/opt/mysql/bin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x250)[0x60c130]
/opt/mysql/bin/mysqld[0x5ac8e8]
/opt/mysql/bin/mysqld(_Z21mysql_execute_commandP3THD+0x14f7)[0x5b2a97]
/opt/mysql/bin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0x2b4)[0x5baeb4]
/opt/mysql/bin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x23a7)[0x5bdee7]
/opt/mysql/bin/mysqld(_Z10do_commandP3THD+0x2a7)[0x5be2f7]
/opt/mysql/bin/mysqld(_Z24do_handle_one_connectionP3THD+0x183)[0x68d423]
/opt/mysql/bin/mysqld(handle_one_connection+0x42)[0x68d642]
/lib64/libpthread.so.0(+0x7dc5)[0x7f6be9f81dc5]
/lib64/libc.so.6(clone+0x6d)[0x7f6be8e5fced]
and crashing query was:
select statement_schema, statement_text, result_blocks_count, result_blocks_size from information_schema.query_cache_info
Oleksandr Byelkin
made changes -
2016-09-14 15:19
Assignee
Vladislav Vaintroub
[ wlad
]
Oleksandr Byelkin
[ sanja
]
Oleksandr Byelkin
made changes -
2016-09-14 15:19
Status
Open
[ 1
]
In Progress
[ 3
]
Oleksandr Byelkin
made changes -
2016-09-14 16:15
Status
In Progress
[ 3
]
Stalled
[ 10000
]
Oleksandr Byelkin
made changes -
2016-09-16 19:41
Assignee
Oleksandr Byelkin
[ sanja
]
Vladislav Vaintroub
[ wlad
]
Status
Stalled
[ 10000
]
In Review
[ 10002
]
Vladislav Vaintroub
made changes -
2016-09-20 16:43
Sprint
10.2.2-4
[ 96
]
10.2.2-4, 10.1.18
[ 96, 98
]
Vladislav Vaintroub
made changes -
2016-09-23 19:21
Status
In Review
[ 10002
]
Stalled
[ 10000
]
Vladislav Vaintroub
made changes -
2016-09-27 11:21
Assignee
Vladislav Vaintroub
[ wlad
]
Oleksandr Byelkin
[ sanja
]
Oleksandr Byelkin
made changes -
2016-09-27 12:50
Fix Version/s
10.1.18
[ 22110
]
Fix Version/s
10.1
[ 16100
]
Resolution
Fixed
[ 1
]
Status
Stalled
[ 10000
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2021-12-06 21:43
Workflow
MariaDB v3
[ 77016
]
MariaDB v4
[ 150895
]
{"report":{"fcp":962.8000001907349,"ttfb":249,"pageVisibility":"visible","entityId":58016,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"8a0c248d-bcd7-4da9-af81-f1298925098a","navigationType":0,"readyForUser":1048.7000007629395,"redirectCount":0,"resourceLoadedEnd":1106.5,"resourceLoadedStart":278.30000019073486,"resourceTiming":[{"duration":14.600000381469727,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":278.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":278.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":292.9000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":47,"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":278.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":278.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":325.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":71.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":278.80000019073486,"connectEnd":278.80000019073486,"connectStart":278.80000019073486,"domainLookupEnd":278.80000019073486,"domainLookupStart":278.80000019073486,"fetchStart":278.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":278.80000019073486,"responseEnd":350.5,"responseStart":350.5,"secureConnectionStart":278.80000019073486},{"duration":184.4000005722046,"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":279,"connectEnd":279,"connectStart":279,"domainLookupEnd":279,"domainLookupStart":279,"fetchStart":279,"redirectEnd":0,"redirectStart":0,"requestStart":279,"responseEnd":463.4000005722046,"responseStart":463.4000005722046,"secureConnectionStart":279},{"duration":188.5999994277954,"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":279.20000076293945,"connectEnd":279.20000076293945,"connectStart":279.20000076293945,"domainLookupEnd":279.20000076293945,"domainLookupStart":279.20000076293945,"fetchStart":279.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":279.20000076293945,"responseEnd":467.80000019073486,"responseStart":467.80000019073486,"secureConnectionStart":279.20000076293945},{"duration":189.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":279.4000005722046,"connectEnd":279.4000005722046,"connectStart":279.4000005722046,"domainLookupEnd":279.4000005722046,"domainLookupStart":279.4000005722046,"fetchStart":279.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":279.4000005722046,"responseEnd":468.70000076293945,"responseStart":468.6000003814697,"secureConnectionStart":279.4000005722046},{"duration":215.60000038146973,"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":279.5,"connectEnd":279.5,"connectStart":279.5,"domainLookupEnd":279.5,"domainLookupStart":279.5,"fetchStart":279.5,"redirectEnd":0,"redirectStart":0,"requestStart":279.5,"responseEnd":495.1000003814697,"responseStart":495,"secureConnectionStart":279.5},{"duration":302.5,"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":279.70000076293945,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":279.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":582.2000007629395,"responseStart":0,"secureConnectionStart":0},{"duration":234.89999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":279.9000005722046,"connectEnd":279.9000005722046,"connectStart":279.9000005722046,"domainLookupEnd":279.9000005722046,"domainLookupStart":279.9000005722046,"fetchStart":279.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":279.9000005722046,"responseEnd":514.8000001907349,"responseStart":514.8000001907349,"secureConnectionStart":279.9000005722046},{"duration":302.4000005722046,"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":280,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":280,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":582.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":235.89999961853027,"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":280.1000003814697,"connectEnd":280.1000003814697,"connectStart":280.1000003814697,"domainLookupEnd":280.1000003814697,"domainLookupStart":280.1000003814697,"fetchStart":280.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":280.1000003814697,"responseEnd":516,"responseStart":515.9000005722046,"secureConnectionStart":280.1000003814697},{"duration":397.80000019073486,"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":281,"connectEnd":281,"connectStart":281,"domainLookupEnd":281,"domainLookupStart":281,"fetchStart":281,"redirectEnd":0,"redirectStart":0,"requestStart":281,"responseEnd":678.8000001907349,"responseStart":678.8000001907349,"secureConnectionStart":281},{"duration":724.2000007629395,"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":281,"connectEnd":281,"connectStart":281,"domainLookupEnd":281,"domainLookupStart":281,"fetchStart":281,"redirectEnd":0,"redirectStart":0,"requestStart":281,"responseEnd":1005.2000007629395,"responseStart":1005.2000007629395,"secureConnectionStart":281},{"duration":83.89999961853027,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":595.6000003814697,"connectEnd":595.6000003814697,"connectStart":595.6000003814697,"domainLookupEnd":595.6000003814697,"domainLookupStart":595.6000003814697,"fetchStart":595.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":595.6000003814697,"responseEnd":679.5,"responseStart":679.5,"secureConnectionStart":595.6000003814697},{"duration":206.10000038146973,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bv2/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":877.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":877.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1083.2000007629395,"responseStart":0,"secureConnectionStart":0},{"duration":189,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":878.5,"connectEnd":878.5,"connectStart":878.5,"domainLookupEnd":878.5,"domainLookupStart":878.5,"fetchStart":878.5,"redirectEnd":0,"redirectStart":0,"requestStart":878.5,"responseEnd":1067.5,"responseStart":1067.5,"secureConnectionStart":878.5},{"duration":224.30000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":956.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":956.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1180.7000007629395,"responseStart":0,"secureConnectionStart":0},{"duration":227.5999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/53a43b6764f587426c7bb9a150184c00-CDN/lu2bv2/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":878.9000005722046,"connectEnd":878.9000005722046,"connectStart":878.9000005722046,"domainLookupEnd":878.9000005722046,"domainLookupStart":878.9000005722046,"fetchStart":878.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":878.9000005722046,"responseEnd":1106.5,"responseStart":1106.5,"secureConnectionStart":878.9000005722046}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":34,"responseStart":249,"responseEnd":275,"domLoading":256,"domInteractive":1121,"domContentLoadedEventStart":1121,"domContentLoadedEventEnd":1173,"domComplete":1341,"loadEventStart":1341,"loadEventEnd":1342,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1097.2000007629395},{"name":"bigPipe.sidebar-id.end","time":1098},{"name":"bigPipe.activity-panel-pipe-id.start","time":1098.1000003814697},{"name":"bigPipe.activity-panel-pipe-id.end","time":1102},{"name":"activityTabFullyLoaded","time":1218.2000007629395}],"measures":[],"correlationId":"c7427fc1c4facb","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":134,"dbReadsTimeInMs":22,"dbConnsTimeInMs":31,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
revision-id: 325a9c760c9b13a9748a0cee27a98455b558df30 (mariadb-10.1.17-11-g325a9c7)
parent(s): bb2c1a52c61706dde8c525a8887f2d364c0db1eb
committer: Oleksandr Byelkin
timestamp: 2016-09-14 18:15:03 +0200
message:
MDEV-10777: Server crashed due to query_cache_info pluginPossible fix. Make the pluging more safe.
—