Type:
Bug
Priority:
Blocker
Resolution:
Fixed
Affects Version/s:
10.2.40 , 10.3.31 , 10.4.21 , 10.5.12 , 10.6.4
Environment:
FreeBSD 13.0-RELEASE-p4, running within a FreeBSD jail (amd64)
Hey,
I have a job that migrates an old database to in a different format (my custom, php based forum migrating to a django-based one).
Recently, I've seen the mariadb server crashing randomly, leaving other databases and their tables corrupted. I can't just pinpoint out the exact issue, but I can provide the traceback and coredump, in hopes of you finding and fixing the bug ASAP.
This posted crashlog is from executing mariadb-check -c --all-databases -S /tmp/mysql.sock , that according to its output, crashes on a certain CHECK TABLE command.
The crash log from mysqld.err :
===
2021-09-04 11:15:41 0x80f1b5d00 InnoDB: Assertion failure in file /wrkdirs/usr/ports/databases/mariadb105-server/work/mariadb-10.5.
12/storage/innobase/btr/btr0btr.cc line 4763
InnoDB: Failing assertion: !page_is_empty(page) || (level == 0 && page_get_page_no(page) == dict_index_get_page(index))
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to https://jira.mariadb.org/
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: https://mariadb.com/kb/en/library/innodb-recovery-modes/
InnoDB: about forcing recovery.
210904 11:15:41 [ERROR] mysqld got signal 6 ;
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.5.12-MariaDB
key_buffer_size=16777216
read_buffer_size=8388608
max_used_connections=35
max_threads=153
thread_count=34
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 11300560 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x81e206b98
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 = 0x7fffdafdef38 thread_stack 0x49000
0x130cd7c <my_print_stacktrace+0x3c> at /usr/local/libexec/mariadbd
0xc6e6af <handle_fatal_signal+0x28f> at /usr/local/libexec/mariadbd
0x801904e00 <_pthread_sigmask+0x530> at /lib/libthr.so.3
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x81e24def0): CHECK TABLE `forum_event_eventresponse`
Connection ID (thread ID): 138
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=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on,condition_pushdown_for_subquery=on,rowid_filter=on,condition_pushdown_from_having=on,not_null_range_scan=off
The manual page at https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mysqld/ contains information that should help you find out what is causing the crash.
Core pattern: %N.core
===
Since I couldn't upload the core file here (max filesize exceeded), please download the gzipped coredump from here: https://wetransfer.com/downloads/58bcaac03b364010532ebddd214c7dbd20210904093632/a91858186386ac9749129b6f2632db3520210904093659/8c9aa0
{"report":{"fcp":730.2000000476837,"ttfb":162.10000014305115,"pageVisibility":"visible","entityId":102518,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"e50dfe5a-4fb0-48a7-9679-53b6d9703ffc","navigationType":0,"readyForUser":808.1000001430511,"redirectCount":0,"resourceLoadedEnd":816,"resourceLoadedStart":167,"resourceTiming":[{"duration":5.799999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":167,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":167,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":172.79999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":6.200000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":167.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":167.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":173.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":91.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":167.29999995231628,"connectEnd":167.29999995231628,"connectStart":167.29999995231628,"domainLookupEnd":167.29999995231628,"domainLookupStart":167.29999995231628,"fetchStart":167.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":167.29999995231628,"responseEnd":259,"responseStart":258.90000009536743,"secureConnectionStart":167.29999995231628},{"duration":116.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":167.40000009536743,"connectEnd":167.40000009536743,"connectStart":167.40000009536743,"domainLookupEnd":167.40000009536743,"domainLookupStart":167.40000009536743,"fetchStart":167.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":167.40000009536743,"responseEnd":284.2000000476837,"responseStart":284.2000000476837,"secureConnectionStart":167.40000009536743},{"duration":120.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":167.5,"connectEnd":167.5,"connectStart":167.5,"domainLookupEnd":167.5,"domainLookupStart":167.5,"fetchStart":167.5,"redirectEnd":0,"redirectStart":0,"requestStart":167.5,"responseEnd":287.7999999523163,"responseStart":287.7999999523163,"secureConnectionStart":167.5},{"duration":120.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":167.60000014305115,"connectEnd":167.60000014305115,"connectStart":167.60000014305115,"domainLookupEnd":167.60000014305115,"domainLookupStart":167.60000014305115,"fetchStart":167.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":167.60000014305115,"responseEnd":288.2999999523163,"responseStart":288.2999999523163,"secureConnectionStart":167.60000014305115},{"duration":121,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":167.70000004768372,"connectEnd":167.70000004768372,"connectStart":167.70000004768372,"domainLookupEnd":167.70000004768372,"domainLookupStart":167.70000004768372,"fetchStart":167.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":167.70000004768372,"responseEnd":288.7000000476837,"responseStart":288.7000000476837,"secureConnectionStart":167.70000004768372},{"duration":121.70000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":167.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":167.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":289.60000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":122,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":168,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":168,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":290,"responseStart":0,"secureConnectionStart":0},{"duration":121.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":168,"connectEnd":168,"connectStart":168,"domainLookupEnd":168,"domainLookupStart":168,"fetchStart":168,"redirectEnd":0,"redirectStart":0,"requestStart":168,"responseEnd":289.2000000476837,"responseStart":289.2000000476837,"secureConnectionStart":168},{"duration":121.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":168.10000014305115,"connectEnd":168.10000014305115,"connectStart":168.10000014305115,"domainLookupEnd":168.10000014305115,"domainLookupStart":168.10000014305115,"fetchStart":168.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":168.10000014305115,"responseEnd":289.7999999523163,"responseStart":289.7999999523163,"secureConnectionStart":168.10000014305115},{"duration":318.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":175.29999995231628,"connectEnd":175.29999995231628,"connectStart":175.29999995231628,"domainLookupEnd":175.29999995231628,"domainLookupStart":175.29999995231628,"fetchStart":175.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":175.29999995231628,"responseEnd":493.7999999523163,"responseStart":493.7999999523163,"secureConnectionStart":175.29999995231628},{"duration":446.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":176.79999995231628,"connectEnd":176.79999995231628,"connectStart":176.79999995231628,"domainLookupEnd":176.79999995231628,"domainLookupStart":176.79999995231628,"fetchStart":176.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":176.79999995231628,"responseEnd":623.2999999523163,"responseStart":623.2999999523163,"secureConnectionStart":176.79999995231628},{"duration":120.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":479.7000000476837,"connectEnd":479.7000000476837,"connectStart":479.7000000476837,"domainLookupEnd":479.7000000476837,"domainLookupStart":479.7000000476837,"fetchStart":479.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":479.7000000476837,"responseEnd":600.6000001430511,"responseStart":600.6000001430511,"secureConnectionStart":479.7000000476837},{"duration":131,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/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":678.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":678.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":809.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":130.70000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2bu7/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":679.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":679.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":810,"responseStart":0,"secureConnectionStart":0},{"duration":130.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/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":680.1000001430511,"connectEnd":680.1000001430511,"connectStart":680.1000001430511,"domainLookupEnd":680.1000001430511,"domainLookupStart":680.1000001430511,"fetchStart":680.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":680.1000001430511,"responseEnd":810.4000000953674,"responseStart":810.4000000953674,"secureConnectionStart":680.1000001430511},{"duration":134,"initiatorType":"script","name":"https://jira.mariadb.org/s/f51ef5507eea4c158f257c66c93b2a3f-CDN/lu2bu7/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":680.5,"connectEnd":680.5,"connectStart":680.5,"domainLookupEnd":680.5,"domainLookupStart":680.5,"fetchStart":680.5,"redirectEnd":0,"redirectStart":0,"requestStart":680.5,"responseEnd":814.5,"responseStart":814.5,"secureConnectionStart":680.5},{"duration":135.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/86ee9bbc76cd1bcd8556fcdcf46241c9-CDN/lu2bu7/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/js/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":680.7999999523163,"connectEnd":680.7999999523163,"connectStart":680.7999999523163,"domainLookupEnd":680.7999999523163,"domainLookupStart":680.7999999523163,"fetchStart":680.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":680.7999999523163,"responseEnd":816,"responseStart":816,"secureConnectionStart":680.7999999523163},{"duration":153.60000014305115,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":712.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":712.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":865.9000000953674,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":19,"responseStart":162,"responseEnd":177,"domLoading":166,"domInteractive":887,"domContentLoadedEventStart":887,"domContentLoadedEventEnd":935,"domComplete":1364,"loadEventStart":1364,"loadEventEnd":1366,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":851.7999999523163},{"name":"bigPipe.sidebar-id.end","time":852.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":852.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":855.2999999523163},{"name":"activityTabFullyLoaded","time":949.7999999523163}],"measures":[],"correlationId":"9dc978f6dbc17e","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":91,"dbReadsTimeInMs":19,"dbConnsTimeInMs":26,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}