Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
5.3.12 , 5.5.36 , 10.0.9 , 5.5(EOL) , 10.0(EOL) , 10.1(EOL) , 10.2(EOL) , 10.3(EOL) , 10.4(EOL)
Hi,
I've just experienced a crash with mariadb 5.5.34 a few hours after changing the query cache size live.
Initialy, my query cache size was set to 128M.
I changed it several time to make some tests on a slave :
8M, 1M, 512K, 0, then back to 16M
The syntax used was : SET GLOBAL query_cache_size=8*1024*1024;
2h after those changes Mariadb finally crashed in the query cache code :
Server version: 5.5.34-MariaDB-1~squeeze-log
key_buffer_size=3221225472
read_buffer_size=4194304
max_used_connections=206
max_threads=402
thread_count=39
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 6446073 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x0x7f9f5c22a6c0
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 = 0x7f9f8d97fe58 thread_stack 0x48000
(my_addr_resolve failure: fork)
/usr/sbin/mysqld(my_print_stacktrace+0x2e) [0x7fbabbf6521e]
/usr/sbin/mysqld(handle_fatal_signal+0x4ac) [0x7fbabbb6541c]
/lib/libpthread.so.0(+0xeff0) [0x7fbabb25dff0]
/usr/sbin/mysqld(Query_cache::register_all_tables(THD*, Query_cache_block*, TABLE_LIST*, unsigned int)+0x11f) [0x7fbabb9cd69f]
/usr/sbin/mysqld(Query_cache::store_query(THD*, TABLE_LIST*)+0x42b) [0x7fbabb9cdbcb]
/usr/sbin/mysqld(+0x379f8f) [0x7fbabba04f8f]
/usr/sbin/mysqld(mysql_execute_command(THD*)+0x3427) [0x7fbabba0c0c7]
/usr/sbin/mysqld(mysql_parse(THD*, char*, unsigned int, Parser_state*)+0x29b) [0x7fbabba0ef4b]
/usr/sbin/mysqld(dispatch_command(enum_server_command, THD*, char*, unsigned int)+0x17f2) [0x7fbabba10802]
/usr/sbin/mysqld(do_handle_one_connection(THD*)+0x419) [0x7fbabbad7219]
/usr/sbin/mysqld(handle_one_connection+0x51) [0x7fbabbad72d1]
/lib/libpthread.so.0(+0x68ca) [0x7fbabb2558ca]
/lib/libc.so.6(clone+0x6d) [0x7fbab9bd4b6d]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x7f9f74717898): is an invalid pointer
Connection ID (thread ID): 1157940
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,engine_condition_pushdown=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=off,table_elimination=on,extended_keys=off
It seems the issue is quite difficult to reproduce, but hopefully with the stack you'll get some clues of what could have been corrupted.
Thanks and regards,
Jocelyn Fournier
{"report":{"fcp":1018.1000000089407,"ttfb":261.6000000089407,"pageVisibility":"visible","entityId":33150,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"22711d39-683d-4e83-b19c-f7236df17c44","navigationType":0,"readyForUser":1094.1000000089407,"redirectCount":0,"resourceLoadedEnd":1417.800000011921,"resourceLoadedStart":267.20000000298023,"resourceTiming":[{"duration":350.6000000089407,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":267.20000000298023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":267.20000000298023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":617.8000000119209,"responseStart":0,"secureConnectionStart":0},{"duration":350.79999999701977,"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":267.40000000596046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":267.40000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":618.2000000029802,"responseStart":0,"secureConnectionStart":0},{"duration":359.30000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":267.5,"connectEnd":267.5,"connectStart":267.5,"domainLookupEnd":267.5,"domainLookupStart":267.5,"fetchStart":267.5,"redirectEnd":0,"redirectStart":0,"requestStart":267.5,"responseEnd":626.8000000119209,"responseStart":626.8000000119209,"secureConnectionStart":267.5},{"duration":384.1000000089407,"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":267.70000000298023,"connectEnd":267.70000000298023,"connectStart":267.70000000298023,"domainLookupEnd":267.70000000298023,"domainLookupStart":267.70000000298023,"fetchStart":267.70000000298023,"redirectEnd":0,"redirectStart":0,"requestStart":267.70000000298023,"responseEnd":651.8000000119209,"responseStart":651.8000000119209,"secureConnectionStart":267.70000000298023},{"duration":387.70000000298023,"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":267.90000000596046,"connectEnd":267.90000000596046,"connectStart":267.90000000596046,"domainLookupEnd":267.90000000596046,"domainLookupStart":267.90000000596046,"fetchStart":267.90000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":267.90000000596046,"responseEnd":655.6000000089407,"responseStart":655.6000000089407,"secureConnectionStart":267.90000000596046},{"duration":387.90000000596046,"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":268.20000000298023,"connectEnd":268.20000000298023,"connectStart":268.20000000298023,"domainLookupEnd":268.20000000298023,"domainLookupStart":268.20000000298023,"fetchStart":268.20000000298023,"redirectEnd":0,"redirectStart":0,"requestStart":268.20000000298023,"responseEnd":656.1000000089407,"responseStart":656.1000000089407,"secureConnectionStart":268.20000000298023},{"duration":388.09999999403954,"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":268.30000001192093,"connectEnd":268.30000001192093,"connectStart":268.30000001192093,"domainLookupEnd":268.30000001192093,"domainLookupStart":268.30000001192093,"fetchStart":268.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":268.30000001192093,"responseEnd":656.4000000059605,"responseStart":656.4000000059605,"secureConnectionStart":268.30000001192093},{"duration":389.90000000596046,"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":268.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":268.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":658.4000000059605,"responseStart":0,"secureConnectionStart":0},{"duration":388.20000000298023,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":268.6000000089407,"connectEnd":268.6000000089407,"connectStart":268.6000000089407,"domainLookupEnd":268.6000000089407,"domainLookupStart":268.6000000089407,"fetchStart":268.6000000089407,"redirectEnd":0,"redirectStart":0,"requestStart":268.6000000089407,"responseEnd":656.8000000119209,"responseStart":656.8000000119209,"secureConnectionStart":268.6000000089407},{"duration":389.59999999403954,"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":268.80000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":268.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":658.4000000059605,"responseStart":0,"secureConnectionStart":0},{"duration":388.40000000596046,"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":269,"connectEnd":269,"connectStart":269,"domainLookupEnd":269,"domainLookupStart":269,"fetchStart":269,"redirectEnd":0,"redirectStart":0,"requestStart":269,"responseEnd":657.4000000059605,"responseStart":657.4000000059605,"secureConnectionStart":269},{"duration":1066.1000000089407,"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":274.20000000298023,"connectEnd":274.20000000298023,"connectStart":274.20000000298023,"domainLookupEnd":274.20000000298023,"domainLookupStart":274.20000000298023,"fetchStart":274.20000000298023,"redirectEnd":0,"redirectStart":0,"requestStart":274.20000000298023,"responseEnd":1340.300000011921,"responseStart":1340.300000011921,"secureConnectionStart":274.20000000298023},{"duration":1143.5,"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":274.30000001192093,"connectEnd":274.30000001192093,"connectStart":274.30000001192093,"domainLookupEnd":274.30000001192093,"domainLookupStart":274.30000001192093,"fetchStart":274.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":274.30000001192093,"responseEnd":1417.800000011921,"responseStart":1417.800000011921,"secureConnectionStart":274.30000001192093},{"duration":572.7000000029802,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":841.6000000089407,"connectEnd":841.6000000089407,"connectStart":841.6000000089407,"domainLookupEnd":841.6000000089407,"domainLookupStart":841.6000000089407,"fetchStart":841.6000000089407,"redirectEnd":0,"redirectStart":0,"requestStart":841.6000000089407,"responseEnd":1414.300000011921,"responseStart":1414.300000011921,"secureConnectionStart":841.6000000089407},{"duration":412.79999999701977,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1011.7000000029802,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1011.7000000029802,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1424.5,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":105,"responseStart":262,"responseEnd":272,"domLoading":265,"domInteractive":1437,"domContentLoadedEventStart":1437,"domContentLoadedEventEnd":1474,"domComplete":2353,"loadEventStart":2353,"loadEventEnd":2355,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1425.4000000059605},{"name":"bigPipe.sidebar-id.end","time":1426.2000000029802},{"name":"bigPipe.activity-panel-pipe-id.start","time":1426.300000011921},{"name":"bigPipe.activity-panel-pipe-id.end","time":1428.7000000029802},{"name":"activityTabFullyLoaded","time":1480.6000000089407}],"measures":[],"correlationId":"3d0877a3d817a","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":92,"dbReadsTimeInMs":14,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}