#6 0x00007f14992ba235 in __assert_fail () from /lib64/libc.so.6
#7 0x0000000000a98d23 in flush_log_for_bitmap (page=0x7f1490ff5038 "", page_no=0,
data_ptr=0x7f14840853f8 "\376\376\t\003\f") at ma_bitmap.c:2905
#8 0x0000000000a28890 in pagecache_fwrite (pagecache=0x1b34280,
filedesc=0x7f1490d32e58, buffer=0x7f1490ff5038 "", pageno=0,
type=PAGECACHE_PLAIN_PAGE, flags=36) at ma_pagecache.c:658
#9 0x0000000000a32a6b in flush_cached_blocks (pagecache=0x1b34280, file=0x7f1484085e70,
cache=0x7f1499289b20, end=0x7f1499289b28, type=FLUSH_KEEP,
first_errno=0x7f1499289afc) at ma_pagecache.c:4489
#10 0x0000000000a33344 in flush_pagecache_blocks_int (pagecache=0x1b34280,
file=0x7f1484085e70, type=FLUSH_KEEP, filter=0xa93f77 <filter_flush_bitmap_pages>,
filter_arg=0x7f1484085fa0) at ma_pagecache.c:4782
#11 0x0000000000a3370b in flush_pagecache_blocks_with_filter (pagecache=0x1b34280,
file=0x7f1484085e70, type=FLUSH_KEEP, filter=0xa93f77 <filter_flush_bitmap_pages>,
filter_arg=0x7f1484085fa0) at ma_pagecache.c:4905
#12 0x0000000000a941af in _ma_bitmap_flush_all (share=0x7f14840853f8) at ma_bitmap.c:535
#13 0x0000000000a3af85 in collect_tables (str=0x7f149928dd80,
checkpoint_start_log_horizon=4295421793) at ma_checkpoint.c:1084
#14 0x0000000000a39761 in really_execute_checkpoint () at ma_checkpoint.c:198
#15 0x0000000000a39553 in ma_checkpoint_execute (level=CHECKPOINT_MEDIUM,
no_wait=1 '\001') at ma_checkpoint.c:132
#16 0x0000000000a3a19e in ma_checkpoint_background (arg=0x1) at ma_checkpoint.c:621
#17 0x00007f1499f75a4f in start_thread () from /lib64/libpthread.so.0
#18 0x00007f149935f82d in clone () from /lib64/libc.so.6
bzr version-info
revision-id: <email address hidden>
date: 2012-05-15 08:31:07 +0300
revno: 3523
Also reproducible on maria/5.5 revno 3407.
The only test case I have for now is the RQG grammar below. It reproduces the problem on relatively decent machines (2x4 cores or 4x2 cores), and it takes from 1 to 30 minutes to get the assertion.
Coredump, server datadir with Aria logs and stack traces can be found on hasky.
The test was run with aria-checkpoint-interval=1 and aria-checkpoint-log-activity=0, but this is not essential, it just allows to get the failure somewhat faster.
RQG grammar (test.yy):
query1:
|
SELECT alias1 . _field_indexed AS field1 FROM A AS alias1, B;
|
|
query:
|
query1 ; CREATE TABLE _tmptable[invariant] AS query1 LIMIT 0; DELETE FROM _tmptable[invariant] ; INSERT INTO _tmptable[invariant] query1 ; DELETE FROM _tmptable[invariant] ; DROP TABLE _tmptable[invariant] ;
|
|
Run as:
perl runall.pl \
|
--duration=3600 \
|
--queries=100M \
|
--threads=4 \
|
--rows=1,200 \
|
--engine=Aria \
|
--mysqld=--aria-checkpoint-interval=1 \
|
--mysqld=--aria-checkpoint-log-activity=0 \
|
--grammar=test.yy \
|
--vardir=<your vardir> \
|
--basedir=<your basedir>
|
{"report":{"fcp":764,"ttfb":134.30000000004657,"pageVisibility":"visible","entityId":20097,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":16,"apdex":1,"journeyId":"5d3d1441-a287-4309-9c06-0edf167feacc","navigationType":0,"readyForUser":846.6999999999534,"redirectCount":0,"resourceLoadedEnd":883.0999999998603,"resourceLoadedStart":140.0999999998603,"resourceTiming":[{"duration":124.60000000009313,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":140.0999999998603,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":140.0999999998603,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":264.69999999995343,"responseStart":0,"secureConnectionStart":0},{"duration":124.5,"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":140.19999999995343,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":140.19999999995343,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":264.69999999995343,"responseStart":0,"secureConnectionStart":0},{"duration":133.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":140.39999999990687,"connectEnd":140.39999999990687,"connectStart":140.39999999990687,"domainLookupEnd":140.39999999990687,"domainLookupStart":140.39999999990687,"fetchStart":140.39999999990687,"redirectEnd":0,"redirectStart":0,"requestStart":140.39999999990687,"responseEnd":273.89999999990687,"responseStart":273.89999999990687,"secureConnectionStart":140.39999999990687},{"duration":260.30000000004657,"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":140.5,"connectEnd":140.5,"connectStart":140.5,"domainLookupEnd":140.5,"domainLookupStart":140.5,"fetchStart":140.5,"redirectEnd":0,"redirectStart":0,"requestStart":140.5,"responseEnd":400.80000000004657,"responseStart":400.80000000004657,"secureConnectionStart":140.5},{"duration":256.5,"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":140.5,"connectEnd":140.5,"connectStart":140.5,"domainLookupEnd":140.5,"domainLookupStart":140.5,"fetchStart":140.5,"redirectEnd":0,"redirectStart":0,"requestStart":140.5,"responseEnd":397,"responseStart":397,"secureConnectionStart":140.5},{"duration":261.30000000004657,"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":140.5999999998603,"connectEnd":140.5999999998603,"connectStart":140.5999999998603,"domainLookupEnd":140.5999999998603,"domainLookupStart":140.5999999998603,"fetchStart":140.5999999998603,"redirectEnd":0,"redirectStart":0,"requestStart":140.5999999998603,"responseEnd":401.89999999990687,"responseStart":401.89999999990687,"secureConnectionStart":140.5999999998603},{"duration":261.5999999998603,"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":140.80000000004657,"connectEnd":140.80000000004657,"connectStart":140.80000000004657,"domainLookupEnd":140.80000000004657,"domainLookupStart":140.80000000004657,"fetchStart":140.80000000004657,"redirectEnd":0,"redirectStart":0,"requestStart":140.80000000004657,"responseEnd":402.39999999990687,"responseStart":402.39999999990687,"secureConnectionStart":140.80000000004657},{"duration":262.19999999995343,"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":140.89999999990687,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":140.89999999990687,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":403.0999999998603,"responseStart":0,"secureConnectionStart":0},{"duration":262.19999999995343,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":141,"connectEnd":141,"connectStart":141,"domainLookupEnd":141,"domainLookupStart":141,"fetchStart":141,"redirectEnd":0,"redirectStart":0,"requestStart":141,"responseEnd":403.19999999995343,"responseStart":403.19999999995343,"secureConnectionStart":141},{"duration":262.80000000004657,"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":141.0999999998603,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":141.0999999998603,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":403.89999999990687,"responseStart":0,"secureConnectionStart":0},{"duration":262.60000000009313,"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":141.19999999995343,"connectEnd":141.19999999995343,"connectStart":141.19999999995343,"domainLookupEnd":141.19999999995343,"domainLookupStart":141.19999999995343,"fetchStart":141.19999999995343,"redirectEnd":0,"redirectStart":0,"requestStart":141.19999999995343,"responseEnd":403.80000000004657,"responseStart":403.80000000004657,"secureConnectionStart":141.19999999995343},{"duration":502.5999999998603,"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":142,"connectEnd":142,"connectStart":142,"domainLookupEnd":142,"domainLookupStart":142,"fetchStart":142,"redirectEnd":0,"redirectStart":0,"requestStart":142,"responseEnd":644.5999999998603,"responseStart":644.5999999998603,"secureConnectionStart":142},{"duration":546.8000000000466,"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":142,"connectEnd":142,"connectStart":142,"domainLookupEnd":142,"domainLookupStart":142,"fetchStart":142,"redirectEnd":0,"redirectStart":0,"requestStart":142,"responseEnd":688.8000000000466,"responseStart":688.8000000000466,"secureConnectionStart":142},{"duration":217.39999999990687,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":427.69999999995343,"connectEnd":427.69999999995343,"connectStart":427.69999999995343,"domainLookupEnd":427.69999999995343,"domainLookupStart":427.69999999995343,"fetchStart":427.69999999995343,"redirectEnd":0,"redirectStart":0,"requestStart":427.69999999995343,"responseEnd":645.0999999998603,"responseStart":645.0999999998603,"secureConnectionStart":427.69999999995343},{"duration":21.199999999953434,"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":669.3000000000466,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":669.3000000000466,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":690.5,"responseStart":0,"secureConnectionStart":0},{"duration":212.79999999981374,"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":670.3000000000466,"connectEnd":670.3000000000466,"connectStart":670.3000000000466,"domainLookupEnd":670.3000000000466,"domainLookupStart":670.3000000000466,"fetchStart":670.3000000000466,"redirectEnd":0,"redirectStart":0,"requestStart":670.3000000000466,"responseEnd":883.0999999998603,"responseStart":883,"secureConnectionStart":670.3000000000466},{"duration":243.89999999990687,"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":670.6999999999534,"connectEnd":670.6999999999534,"connectStart":670.6999999999534,"domainLookupEnd":670.6999999999534,"domainLookupStart":670.6999999999534,"fetchStart":670.6999999999534,"redirectEnd":0,"redirectStart":0,"requestStart":670.6999999999534,"responseEnd":914.5999999998603,"responseStart":914.5999999998603,"secureConnectionStart":670.6999999999534},{"duration":184.5999999998603,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":757,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":757,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":941.5999999998603,"responseStart":0,"secureConnectionStart":0},{"duration":177.70000000018626,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":780.5999999998603,"connectEnd":780.5999999998603,"connectStart":780.5999999998603,"domainLookupEnd":780.5999999998603,"domainLookupStart":780.5999999998603,"fetchStart":780.5999999998603,"redirectEnd":0,"redirectStart":0,"requestStart":780.5999999998603,"responseEnd":958.3000000000466,"responseStart":958.3000000000466,"secureConnectionStart":780.5999999998603}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":3,"responseStart":134,"responseEnd":137,"domLoading":137,"domInteractive":914,"domContentLoadedEventStart":914,"domContentLoadedEventEnd":958,"domComplete":2020,"loadEventStart":2020,"loadEventEnd":2021,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":886},{"name":"bigPipe.sidebar-id.end","time":886.8999999999069},{"name":"bigPipe.activity-panel-pipe-id.start","time":887},{"name":"bigPipe.activity-panel-pipe-id.end","time":889.5},{"name":"activityTabFullyLoaded","time":973.3000000000466}],"measures":[],"correlationId":"cba2d82b830eb2","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":74,"dbReadsTimeInMs":13,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}