Type:
Bug
Priority:
Critical
Resolution:
Incomplete
Affects Version/s:
None
Hi,
We have encountered the MariaDB signal 6 error on production database and DB got crashed. I have provided our DB version and error log.
Kindly provide the permanent fix for this solution
mysql Ver 15.1 Distrib 10.2.7-MariaDB, for Linux (x86_64) using readline 5.1
Nov 12 12:12:54 ks-s301 mysqld: InnoDB: Failing assertion: offsets_rec != NULL
Nov 12 12:12:54 ks-s301 mysqld: InnoDB: We intentionally generate a memory trap.
Nov 12 12:12:54 ks-s301 mysqld: InnoDB: Submit a detailed bug report to http://bugs.mysql.com .
Nov 12 12:12:54 ks-s301 mysqld: InnoDB: If you get repeated assertion failures or crashes, even
Nov 12 12:12:54 ks-s301 mysqld: InnoDB: immediately after the mysqld startup, there may be
Nov 12 12:12:54 ks-s301 mysqld: InnoDB: corruption in the InnoDB tablespace. Please refer to
Nov 12 12:12:54 ks-s301 mysqld: InnoDB: http://dev.mysql.com/doc/refman/5.7/en/forcing-innodb-recovery.html
Nov 12 12:12:54 ks-s301 mysqld: InnoDB: about forcing recovery.
Nov 12 12:12:54 ks-s301 mysqld: 181112 12:12:54 [ERROR] mysqld got signal 6 ;
Nov 12 12:12:54 ks-s301 mysqld: This could be because you hit a bug. It is also possible that this binary
Nov 12 12:12:54 ks-s301 mysqld: or one of the libraries it was linked against is corrupt, improperly built,
Nov 12 12:12:54 ks-s301 mysqld: or misconfigured. This error can also be caused by malfunctioning hardware.
Nov 12 12:12:54 ks-s301 mysqld: To report this bug, see https://mariadb.com/kb/en/reporting-bugs
Nov 12 12:12:54 ks-s301 mysqld: We will try our best to scrape up some info that will hopefully help
Nov 12 12:12:54 ks-s301 mysqld: diagnose the problem, but since we have already crashed,
Nov 12 12:12:54 ks-s301 mysqld: something is definitely wrong and this may fail.
Nov 12 12:12:54 ks-s301 mysqld: Server version: 10.2.7-MariaDB-log
Nov 12 12:12:54 ks-s301 mysqld: key_buffer_size=134217728
Nov 12 12:12:54 ks-s301 mysqld: read_buffer_size=131072
Nov 12 12:12:54 ks-s301 mysqld: max_used_connections=34
Nov 12 12:12:54 ks-s301 mysqld: max_threads=153
Nov 12 12:12:54 ks-s301 mysqld: thread_count=21
Nov 12 12:12:54 ks-s301 mysqld: It is possible that mysqld could use up to
Nov 12 12:12:54 ks-s301 mysqld: key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467207 K bytes of memory
Nov 12 12:12:54 ks-s301 mysqld: Hope that's ok; if not, decrease some variables in the equation.
Nov 12 12:12:54 ks-s301 mysqld: Thread pointer: 0x0
Nov 12 12:12:54 ks-s301 mysqld: Attempting backtrace. You can use the following information to find out
Nov 12 12:12:54 ks-s301 mysqld: where mysqld died. If you see no messages after this, something went
Nov 12 12:12:54 ks-s301 mysqld: terribly wrong...
Nov 12 12:12:54 ks-s301 mysqld: stack_bottom = 0x0 thread_stack 0x49000
Nov 12 12:12:55 ks-s301 mysqld: /usr/sbin/mysqld(my_print_stacktrace+0x2e)[0x7ff4cafb437e]
Nov 12 12:12:55 ks-s301 mysqld: /usr/sbin/mysqld(handle_fatal_signal+0x30d)[0x7ff4ca9f9fad]
Nov 12 12:12:55 ks-s301 mysqld: /lib64/libpthread.so.0(+0xf100)[0x7ff4c9f66100]
{"report":{"fcp":739.1000003814697,"ttfb":186.10000038146973,"pageVisibility":"visible","entityId":70797,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"a469fd7b-9cc3-4d64-afd9-247fc0a9c87e","navigationType":0,"readyForUser":845.2000002861023,"redirectCount":0,"resourceLoadedEnd":753.8000001907349,"resourceLoadedStart":192.40000009536743,"resourceTiming":[{"duration":28.800000190734863,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":192.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":192.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":221.2000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":28.90000009536743,"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":192.7000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":192.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":221.60000038146973,"responseStart":0,"secureConnectionStart":0},{"duration":85.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":192.90000009536743,"connectEnd":192.90000009536743,"connectStart":192.90000009536743,"domainLookupEnd":192.90000009536743,"domainLookupStart":192.90000009536743,"fetchStart":192.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":192.90000009536743,"responseEnd":278.80000019073486,"responseStart":278.80000019073486,"secureConnectionStart":192.90000009536743},{"duration":144.09999990463257,"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":193.10000038146973,"connectEnd":193.10000038146973,"connectStart":193.10000038146973,"domainLookupEnd":193.10000038146973,"domainLookupStart":193.10000038146973,"fetchStart":193.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":193.10000038146973,"responseEnd":337.2000002861023,"responseStart":337.2000002861023,"secureConnectionStart":193.10000038146973},{"duration":147.80000019073486,"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":193.30000019073486,"connectEnd":193.30000019073486,"connectStart":193.30000019073486,"domainLookupEnd":193.30000019073486,"domainLookupStart":193.30000019073486,"fetchStart":193.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":193.30000019073486,"responseEnd":341.1000003814697,"responseStart":341.1000003814697,"secureConnectionStart":193.30000019073486},{"duration":148.10000038146973,"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":193.5,"connectEnd":193.5,"connectStart":193.5,"domainLookupEnd":193.5,"domainLookupStart":193.5,"fetchStart":193.5,"redirectEnd":0,"redirectStart":0,"requestStart":193.5,"responseEnd":341.6000003814697,"responseStart":341.6000003814697,"secureConnectionStart":193.5},{"duration":148.2999997138977,"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":193.7000002861023,"connectEnd":193.7000002861023,"connectStart":193.7000002861023,"domainLookupEnd":193.7000002861023,"domainLookupStart":193.7000002861023,"fetchStart":193.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":193.7000002861023,"responseEnd":342,"responseStart":342,"secureConnectionStart":193.7000002861023},{"duration":226.90000009536743,"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":193.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":193.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":420.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":148.39999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":194.10000038146973,"connectEnd":194.10000038146973,"connectStart":194.10000038146973,"domainLookupEnd":194.10000038146973,"domainLookupStart":194.10000038146973,"fetchStart":194.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":194.10000038146973,"responseEnd":342.5,"responseStart":342.5,"secureConnectionStart":194.10000038146973},{"duration":226.69999980926514,"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":194.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":194.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":420.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":148.7000002861023,"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":194.40000009536743,"connectEnd":194.40000009536743,"connectStart":194.40000009536743,"domainLookupEnd":194.40000009536743,"domainLookupStart":194.40000009536743,"fetchStart":194.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":194.40000009536743,"responseEnd":343.1000003814697,"responseStart":343.1000003814697,"secureConnectionStart":194.40000009536743},{"duration":533.2999997138977,"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":195.2000002861023,"connectEnd":195.2000002861023,"connectStart":195.2000002861023,"domainLookupEnd":195.2000002861023,"domainLookupStart":195.2000002861023,"fetchStart":195.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":195.2000002861023,"responseEnd":728.5,"responseStart":728.5,"secureConnectionStart":195.2000002861023},{"duration":535.1999998092651,"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":195.30000019073486,"connectEnd":195.30000019073486,"connectStart":195.30000019073486,"domainLookupEnd":195.30000019073486,"domainLookupStart":195.30000019073486,"fetchStart":195.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":195.30000019073486,"responseEnd":730.5,"responseStart":730.5,"secureConnectionStart":195.30000019073486},{"duration":139.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":448.2000002861023,"connectEnd":448.2000002861023,"connectStart":448.2000002861023,"domainLookupEnd":448.2000002861023,"domainLookupStart":448.2000002861023,"fetchStart":448.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":448.2000002861023,"responseEnd":588.1000003814697,"responseStart":588.1000003814697,"secureConnectionStart":448.2000002861023},{"duration":51.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/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&whisper-enabled=true","startTime":692.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":692.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":744.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":52.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/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&whisper-enabled=true","startTime":693.8000001907349,"connectEnd":693.8000001907349,"connectStart":693.8000001907349,"domainLookupEnd":693.8000001907349,"domainLookupStart":693.8000001907349,"fetchStart":693.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":693.8000001907349,"responseEnd":746.6000003814697,"responseStart":746.6000003814697,"secureConnectionStart":693.8000001907349},{"duration":59.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/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&whisper-enabled=true","startTime":694.2000002861023,"connectEnd":694.2000002861023,"connectStart":694.2000002861023,"domainLookupEnd":694.2000002861023,"domainLookupStart":694.2000002861023,"fetchStart":694.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":694.2000002861023,"responseEnd":753.8000001907349,"responseStart":753.8000001907349,"secureConnectionStart":694.2000002861023},{"duration":147,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":732.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":732.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":879.3000001907349,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":28,"responseStart":186,"responseEnd":188,"domLoading":190,"domInteractive":912,"domContentLoadedEventStart":912,"domContentLoadedEventEnd":959,"domComplete":1416,"loadEventStart":1417,"loadEventEnd":1417,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":885.6000003814697},{"name":"bigPipe.sidebar-id.end","time":886.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":886.6000003814697},{"name":"bigPipe.activity-panel-pipe-id.end","time":887.6000003814697},{"name":"activityTabFullyLoaded","time":980.5}],"measures":[],"correlationId":"2eeac0857f785b","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":104,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
I did a really quick look and this seems to be from a code path associated with innodb persistent stats. Would this be right based on your configuration? Its possibly associated with an `ANALYSE TABLE` query? Was something like that in progress when the server crashed.
Can you include your configuration file.
If I'm correct disabling innodb persistent stats will prevent this crash.