#7 0x00007fd30efa1662 in __GI___assert_fail (assertion=0x5584b8fe5560 "(writeptr + (i * size)) != local_frame", file=0x5584b8fe1100 "/data/src/10.3/storage/innobase/row/row0import.cc", line=3724, function=0x5584b8fe5240 "dberr_t fil_iterate(const fil_iterator_t&, buf_block_t*, AbstractCallback&)") at assert.c:101
#8 0x00005584b7e04455 in fil_iterate (iter=..., block=0x617000025000, callback=...) at /data/src/10.3/storage/innobase/row/row0import.cc:3724
#9 0x00005584b7e0c503 in PageConverter::run (this=0x7fd2f8894bc0, iter=..., block=0x617000025000) at /data/src/10.3/storage/innobase/row/row0import.cc:830
#10 0x00005584b7e06056 in fil_tablespace_iterate (table=0x6190000d3508, n_io_buffers=128, callback=...) at /data/src/10.3/storage/innobase/row/row0import.cc:3947
#11 0x00005584b7e07ac0 in row_import_for_mysql (table=0x6190000d3508, prebuilt=0x620000010108) at /data/src/10.3/storage/innobase/row/row0import.cc:4142
#12 0x00005584b7b60b45 in ha_innobase::discard_or_import_tablespace (this=0x61c0000548a8, discard=0 '\000') at /data/src/10.3/storage/innobase/handler/ha_innodb.cc:13149
#13 0x00005584b75efb7b in handler::ha_discard_or_import_tablespace (this=0x61c0000548a8, discard=0 '\000') at /data/src/10.3/sql/handler.cc:4587
#14 0x00005584b70b668b in mysql_discard_or_import_tablespace (thd=0x62a00009c208, table_list=0x62b000000340, discard=false) at /data/src/10.3/sql/sql_table.cc:6070
#15 0x00005584b723be5d in Sql_cmd_discard_import_tablespace::execute (this=0x62b0000009e0, thd=0x62a00009c208) at /data/src/10.3/sql/sql_alter.cc:553
#16 0x00005584b6e887d6 in mysql_execute_command (thd=0x62a00009c208) at /data/src/10.3/sql/sql_parse.cc:6076
#17 0x00005584b6e94608 in mysql_parse (thd=0x62a00009c208, rawbuf=0x62b000000228 "alter table t1 import tablespace", length=32, parser_state=0x7fd2f88979d0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:7855
#18 0x00005584b6e6bc56 in dispatch_command (command=COM_QUERY, thd=0x62a00009c208, packet=0x629000127209 "alter table t1 import tablespace", packet_length=32, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1852
#19 0x00005584b6e6880e in do_command (thd=0x62a00009c208) at /data/src/10.3/sql/sql_parse.cc:1398
#20 0x00005584b722b336 in do_handle_one_connection (connect=0x6080000012a8) at /data/src/10.3/sql/sql_connect.cc:1403
#21 0x00005584b722ac32 in handle_one_connection (arg=0x6080000012a8) at /data/src/10.3/sql/sql_connect.cc:1308
#22 0x00005584b87d629f in pfs_spawn_thread (arg=0x615000006e88) at /data/src/10.3/storage/perfschema/pfs.cc:1869
#23 0x00007fd30f14cea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#24 0x00007fd30f06caef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Reproducible on all of 10.3+, also on previous minor releases.
No obvious problem on a non-debug build.
On my system, writeptr==local_frame and i==0. The assertion fails on page 4096 of the tablespace, which happens to be the second allocation bitmap page when using innodb_page_size=4k.
The local_frame was assigned from block->frame, which was assigned from src. The suspicious-looking assignment block->frame = src was originally added in MDEV-11656.
Marko Mäkelä
added a comment - On my system, writeptr==local_frame and i==0 . The assertion fails on page 4096 of the tablespace, which happens to be the second allocation bitmap page when using innodb_page_size=4k .
The local_frame was assigned from block->frame , which was assigned from src . The suspicious-looking assignment block->frame = src was originally added in MDEV-11656 .
People
Marko Mäkelä
Elena Stepanova
Votes:
0Vote for this issue
Watchers:
2Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":956.1999999880791,"ttfb":223.89999997615814,"pageVisibility":"visible","entityId":115169,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"a4b1bf1d-59ee-4e9f-b9ad-2419f73f28ab","navigationType":0,"readyForUser":1063.3999999761581,"redirectCount":0,"resourceLoadedEnd":668.1000000238419,"resourceLoadedStart":237.69999998807907,"resourceTiming":[{"duration":57,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":237.69999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":237.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":294.69999998807907,"responseStart":0,"secureConnectionStart":0},{"duration":49.60000002384186,"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":247.19999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":247.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":296.80000001192093,"responseStart":0,"secureConnectionStart":0},{"duration":286.69999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":247.5,"connectEnd":247.5,"connectStart":247.5,"domainLookupEnd":247.5,"domainLookupStart":247.5,"fetchStart":247.5,"redirectEnd":0,"redirectStart":0,"requestStart":307.5,"responseEnd":534.1999999880791,"responseStart":323.60000002384186,"secureConnectionStart":247.5},{"duration":408.7999999523163,"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":248.10000002384186,"connectEnd":248.10000002384186,"connectStart":248.10000002384186,"domainLookupEnd":248.10000002384186,"domainLookupStart":248.10000002384186,"fetchStart":248.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":305.89999997615814,"responseEnd":656.8999999761581,"responseStart":320.5,"secureConnectionStart":248.10000002384186},{"duration":75.80000001192093,"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":248.30000001192093,"connectEnd":248.30000001192093,"connectStart":248.30000001192093,"domainLookupEnd":248.30000001192093,"domainLookupStart":248.30000001192093,"fetchStart":248.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":307.69999998807907,"responseEnd":324.10000002384186,"responseStart":322.80000001192093,"secureConnectionStart":248.30000001192093},{"duration":88.5,"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":248.5,"connectEnd":248.5,"connectStart":248.5,"domainLookupEnd":248.5,"domainLookupStart":248.5,"fetchStart":248.5,"redirectEnd":0,"redirectStart":0,"requestStart":307.80000001192093,"responseEnd":337,"responseStart":330.19999998807907,"secureConnectionStart":248.5},{"duration":88.59999996423721,"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":248.60000002384186,"connectEnd":248.60000002384186,"connectStart":248.60000002384186,"domainLookupEnd":248.60000002384186,"domainLookupStart":248.60000002384186,"fetchStart":248.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":308.19999998807907,"responseEnd":337.19999998807907,"responseStart":331.39999997615814,"secureConnectionStart":248.60000002384186},{"duration":54.10000002384186,"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":248.69999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":248.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":302.80000001192093,"responseStart":0,"secureConnectionStart":0},{"duration":88.40000003576279,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":248.89999997615814,"connectEnd":248.89999997615814,"connectStart":248.89999997615814,"domainLookupEnd":248.89999997615814,"domainLookupStart":248.89999997615814,"fetchStart":248.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":308.39999997615814,"responseEnd":337.30000001192093,"responseStart":332.39999997615814,"secureConnectionStart":248.89999997615814},{"duration":54.89999997615814,"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":249,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":249,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":303.89999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":92.10000002384186,"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":249.19999998807907,"connectEnd":249.19999998807907,"connectStart":249.19999998807907,"domainLookupEnd":249.19999998807907,"domainLookupStart":249.19999998807907,"fetchStart":249.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":308.39999997615814,"responseEnd":341.30000001192093,"responseStart":333.69999998807907,"secureConnectionStart":249.19999998807907},{"duration":388.0999999642372,"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":279.80000001192093,"connectEnd":279.80000001192093,"connectStart":279.80000001192093,"domainLookupEnd":279.80000001192093,"domainLookupStart":279.80000001192093,"fetchStart":279.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":466.5,"responseEnd":667.8999999761581,"responseStart":664.1000000238419,"secureConnectionStart":279.80000001192093},{"duration":366.9000000357628,"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":301.19999998807907,"connectEnd":301.19999998807907,"connectStart":301.19999998807907,"domainLookupEnd":301.19999998807907,"domainLookupStart":301.19999998807907,"fetchStart":301.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":496.10000002384186,"responseEnd":668.1000000238419,"responseStart":665.3000000119209,"secureConnectionStart":301.19999998807907},{"duration":142.69999998807907,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":696.1000000238419,"connectEnd":696.1000000238419,"connectStart":696.1000000238419,"domainLookupEnd":696.1000000238419,"domainLookupStart":696.1000000238419,"fetchStart":696.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":806.6999999880791,"responseEnd":838.8000000119209,"responseStart":838,"secureConnectionStart":696.1000000238419}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":49,"responseStart":224,"responseEnd":302,"domLoading":230,"domInteractive":1126,"domContentLoadedEventStart":1126,"domContentLoadedEventEnd":1170,"domComplete":1938,"loadEventStart":1938,"loadEventEnd":1939,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1106.3999999761581},{"name":"bigPipe.sidebar-id.end","time":1107.199999988079},{"name":"bigPipe.activity-panel-pipe-id.start","time":1107.3999999761581},{"name":"bigPipe.activity-panel-pipe-id.end","time":1108.5},{"name":"activityTabFullyLoaded","time":1184.8999999761581}],"measures":[],"correlationId":"cd11e89b739da9","effectiveType":"4g","downlink":9.8,"rtt":0,"serverDuration":101,"dbReadsTimeInMs":21,"dbConnsTimeInMs":29,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
On my system, writeptr==local_frame and i==0. The assertion fails on page 4096 of the tablespace, which happens to be the second allocation bitmap page when using innodb_page_size=4k.
The local_frame was assigned from block->frame, which was assigned from src. The suspicious-looking assignment block->frame = src was originally added in
MDEV-11656.