10.2 784473b9866
|
2020-10-26 11:37:57 0x7fcaed1ba700 InnoDB: Assertion failure in file /home/mariadb/MDEV-24026/10.2/storage/innobase/os/os0proc.cc line 159
|
InnoDB: Failing assertion: os_total_large_mem_allocated >= size
|
|
#1 0x00007fcaee8c98b1 in __GI_abort () at abort.c:79
|
#2 0x000056125da95b76 in ut_dbg_assertion_failed (expr=0x56125dfa5ec8 "os_total_large_mem_allocated >= size", file=0x56125dfa5d70 "/home/mariadb/MDEV-24026/10.2/storage/innobase/os/os0proc.cc", line=159)
|
at /home/mariadb/MDEV-24026/10.2/storage/innobase/ut/ut0dbg.cc:60
|
#3 0x000056125d94ea04 in os_mem_free_large (ptr=0x7fcae4000000, size=67108864) at /home/mariadb/MDEV-24026/10.2/storage/innobase/os/os0proc.cc:159
|
#4 0x000056125d2269fd in wf_incremental_deinit (ctxt=0x7fcaed1b9740) at /home/mariadb/MDEV-24026/10.2/extra/mariabackup/write_filt.cc:189
|
#5 0x000056125d207bbe in xtrabackup_copy_datafile (node=0x56125f3b8db0, thread_n=1, dest_name=0x0, write_filter=...) at /home/mariadb/MDEV-24026/10.2/extra/mariabackup/xtrabackup.cc:2679
|
#6 0x000056125d2086c5 in data_copy_thread_func (arg=0x56125f385cb0) at /home/mariadb/MDEV-24026/10.2/extra/mariabackup/xtrabackup.cc:2977
|
#7 0x00007fcaf008d6db in start_thread (arg=0x7fcaed1ba700) at pthread_create.c:463
|
#8 0x00007fcaee9aaa3f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Failure happens upon incremental backup. There are no obvious errors in the backup log prior to the failure.
Non-debug builds are affected the same way.
rr profile is available.
The problem apparently appeared in 10.2 after this commit:
commit 985ede92034696d544d484a29b45828d56a031a5
|
Author: Vlad Lesin
|
Date: Tue Oct 20 13:05:58 2020 +0300
|
|
MDEV-20755 InnoDB: Database page corruption on disk or a failed file read of tablespace upon prepare of mariabackup incremental backup
|
The test I use to reproduce the failure (happens frequently enough on the recent 10.2, every other run or so):
git clone https://github.com/MariaDB/randgen --branch mdev24026 rqg-mdev24026
|
cd rqg-mdev24026
|
perl ./runall-trials.pl --duration=350 --threads=4 --seed=1603674122 --reporters=Backtrace,ErrorLog,Deadlock --skip-gendata --gendata-advanced --engine=InnoDB --grammar=conf/mariadb/generic-dml.yy --redefine=conf/mariadb/bulk_insert.yy --filter=conf/mariadb/10.4-combo-filter.ff --mysqld=--log_output=FILE --mysqld=--max-statement-time=20 --mysqld=--lock-wait-timeout=10 --mysqld=--loose-innodb-lock-wait-timeout=5 --scenario=MariaBackupIncremental --redefine=conf/mariadb/alter_table.yy --redefine=conf/mariadb/modules/admin.yy --basedir1=/data/src/10.2-bug --vardir1=/dev/shm/var_mbackup --trials=5
|
{"report":{"fcp":1694.5,"ttfb":821.2999997138977,"pageVisibility":"visible","entityId":93089,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"220223e0-7df4-4780-a5f6-08b8ddcfc855","navigationType":0,"readyForUser":1772.2999997138977,"redirectCount":0,"resourceLoadedEnd":1801,"resourceLoadedStart":827.6999998092651,"resourceTiming":[{"duration":328.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":827.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":827.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1156.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":328.69999980926514,"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":827.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":827.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1156.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":337.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":828.1999998092651,"connectEnd":828.1999998092651,"connectStart":828.1999998092651,"domainLookupEnd":828.1999998092651,"domainLookupStart":828.1999998092651,"fetchStart":828.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":828.1999998092651,"responseEnd":1165.5999999046326,"responseStart":1165.5999999046326,"secureConnectionStart":828.1999998092651},{"duration":394.40000009536743,"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":828.2999997138977,"connectEnd":828.2999997138977,"connectStart":828.2999997138977,"domainLookupEnd":828.2999997138977,"domainLookupStart":828.2999997138977,"fetchStart":828.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":828.2999997138977,"responseEnd":1222.6999998092651,"responseStart":1222.6999998092651,"secureConnectionStart":828.2999997138977},{"duration":398.40000009536743,"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":828.5999999046326,"connectEnd":828.5999999046326,"connectStart":828.5999999046326,"domainLookupEnd":828.5999999046326,"domainLookupStart":828.5999999046326,"fetchStart":828.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":828.5999999046326,"responseEnd":1227,"responseStart":1227,"secureConnectionStart":828.5999999046326},{"duration":399,"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":828.6999998092651,"connectEnd":828.6999998092651,"connectStart":828.6999998092651,"domainLookupEnd":828.6999998092651,"domainLookupStart":828.6999998092651,"fetchStart":828.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":828.6999998092651,"responseEnd":1227.6999998092651,"responseStart":1227.6999998092651,"secureConnectionStart":828.6999998092651},{"duration":399.69999980926514,"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":828.9000000953674,"connectEnd":828.9000000953674,"connectStart":828.9000000953674,"domainLookupEnd":828.9000000953674,"domainLookupStart":828.9000000953674,"fetchStart":828.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":828.9000000953674,"responseEnd":1228.5999999046326,"responseStart":1228.5999999046326,"secureConnectionStart":828.9000000953674},{"duration":481.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":829.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":829.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1311,"responseStart":0,"secureConnectionStart":0},{"duration":400.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":829.1999998092651,"connectEnd":829.1999998092651,"connectStart":829.1999998092651,"domainLookupEnd":829.1999998092651,"domainLookupStart":829.1999998092651,"fetchStart":829.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":829.1999998092651,"responseEnd":1229.6999998092651,"responseStart":1229.6999998092651,"secureConnectionStart":829.1999998092651},{"duration":481.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":829.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":829.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1311.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":401.19999980926514,"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":829.5999999046326,"connectEnd":829.5999999046326,"connectStart":829.5999999046326,"domainLookupEnd":829.5999999046326,"domainLookupStart":829.5999999046326,"fetchStart":829.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":829.5999999046326,"responseEnd":1230.7999997138977,"responseStart":1230.7999997138977,"secureConnectionStart":829.5999999046326},{"duration":596.7999997138977,"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":830.5,"connectEnd":830.5,"connectStart":830.5,"domainLookupEnd":830.5,"domainLookupStart":830.5,"fetchStart":830.5,"redirectEnd":0,"redirectStart":0,"requestStart":830.5,"responseEnd":1427.2999997138977,"responseStart":1427.2999997138977,"secureConnectionStart":830.5},{"duration":909.6999998092651,"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":835,"connectEnd":835,"connectStart":835,"domainLookupEnd":835,"domainLookupStart":835,"fetchStart":835,"redirectEnd":0,"redirectStart":0,"requestStart":835,"responseEnd":1744.6999998092651,"responseStart":1744.6999998092651,"secureConnectionStart":835},{"duration":97.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1330.5999999046326,"connectEnd":1330.5999999046326,"connectStart":1330.5999999046326,"domainLookupEnd":1330.5999999046326,"domainLookupStart":1330.5999999046326,"fetchStart":1330.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1330.5999999046326,"responseEnd":1428.1999998092651,"responseStart":1428.1999998092651,"secureConnectionStart":1330.5999999046326},{"duration":210.90000009536743,"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":1590.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1590.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1801,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":661,"responseStart":821,"responseEnd":827,"domLoading":824,"domInteractive":1838,"domContentLoadedEventStart":1838,"domContentLoadedEventEnd":1892,"domComplete":2078,"loadEventStart":2078,"loadEventEnd":2079,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1814.0999999046326},{"name":"bigPipe.sidebar-id.end","time":1814.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1815.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1817.2999997138977},{"name":"activityTabFullyLoaded","time":1907.1999998092651}],"measures":[],"correlationId":"48443247be299","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":99,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
The reason of the bug is the following:
{
...
xb_write_filt_ctxt_t write_filt_ctxt;
...
was_dropped = (ddl_tracker.drops.find(node->space->id) != ddl_tracker.drops.end());
pthread_mutex_unlock(&backup_mutex);
fil_space_close(node->space->name);
}
...
...
skip:
...
write_filter.deinit(&write_filt_ctxt);
}
...
}
I.e. write_filt_ctxt.u.wf_incremental_ctxt is not initialized, and it's deallocated in the case if some table was dropped during backup, and the corresponding DDL redo log record was read and parsed. This is indeed not a regression, because previous commits did not touch the sequence of local variables initialization in xtrabackup_copy_datafile().