[Current thread is 1 (Thread 0x14d160bff700 (LWP 1008144))]
(gdb) bt
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
#1 0x000055618e9fec11 in my_write_core (sig=sig@entry=6) at /test/10.5_dbg/mysys/stacktrace.c:518
#2 0x000055618e1a3f8d in handle_fatal_signal (sig=6) at /test/10.5_dbg/sql/signal_handler.cc:329
#3 <signal handler called>
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#5 0x000014d17eafa801 in __GI_abort () at abort.c:79
#6 0x000055618e7baaae in ut_dbg_assertion_failed (expr=expr@entry=0x55618ee9abc0 "page_zip_verify_checksum(frame, bpage->zip_size())", file=file@entry=0x55618ee9a538 "/test/10.5_dbg/storage/innobase/buf/buf0flu.cc", line=line@entry=1135) at /test/10.5_dbg/storage/innobase/ut/ut0dbg.cc:60
#7 0x000055618e85177f in buf_flush_write_block_low (sync=false, flush_type=BUF_FLUSH_LIST, bpage=0x14d15d071318) at /test/10.5_dbg/storage/innobase/buf/buf0flu.cc:1135
#8 buf_flush_page (bpage=bpage@entry=0x14d15d071318, flush_type=flush_type@entry=BUF_FLUSH_LIST, sync=sync@entry=false) at /test/10.5_dbg/storage/innobase/buf/buf0flu.cc:1325
#9 0x000055618e852f8f in buf_flush_try_neighbors (n_to_flush=200, n_flushed=132, flush_type=BUF_FLUSH_LIST, page_id=...) at /test/10.5_dbg/storage/innobase/buf/buf0flu.cc:1535
#10 buf_flush_page_and_try_neighbors (bpage=bpage@entry=0x14d15d071318, flush_type=flush_type@entry=BUF_FLUSH_LIST, n_to_flush=n_to_flush@entry=200, count=count@entry=0x14d160bfe9d8) at /test/10.5_dbg/storage/innobase/buf/buf0flu.cc:1598
#11 0x000055618e8553c6 in buf_do_flush_list_batch (lsn_limit=18446744073709551615, min_n=200) at /test/10.5_dbg/storage/innobase/buf/buf0flu.cc:1827
#12 buf_flush_batch (flush_type=flush_type@entry=BUF_FLUSH_LIST, min_n=min_n@entry=200, lsn_limit=lsn_limit@entry=18446744073709551615, n=n@entry=0x14d160bfec10) at /test/10.5_dbg/storage/innobase/buf/buf0flu.cc:1895
#13 0x000055618e855964 in buf_flush_do_batch (type=type@entry=BUF_FLUSH_LIST, min_n=200, lsn_limit=lsn_limit@entry=18446744073709551615, n=n@entry=0x14d160bfec10) at /test/10.5_dbg/storage/innobase/buf/buf0flu.cc:2018
#14 0x000055618e855aca in buf_flush_lists (min_n=<optimized out>, lsn_limit=lsn_limit@entry=18446744073709551615, n_processed=n_processed@entry=0x14d160bfeca8) at /test/10.5_dbg/storage/innobase/buf/buf0flu.cc:2077
#15 0x000055618e856466 in buf_flush_page_cleaner () at /test/10.5_dbg/storage/innobase/buf/buf0flu.cc:2996
#16 0x000014d17f7dd6db in start_thread (arg=0x14d160bff700) at pthread_create.c:463
#17 0x000014d17ebdb88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Strict_* modes of innodb_checksum_algorithm doesn't accept the page which has other checksum value.
1) Here page initially created with crc32 checksum
2) User changes the checksum algorithm to STRICT_NONE
3) while processing the initially created crc32 page fails the check of STRICT_NONE.
I think assertion is very strict and wrong in few cases. InnoDB should remove the assertion
Thirunarayanan Balathandayuthapani
added a comment - - edited Strict_* modes of innodb_checksum_algorithm doesn't accept the page which has other checksum value.
1) Here page initially created with crc32 checksum
2) User changes the checksum algorithm to STRICT_NONE
3) while processing the initially created crc32 page fails the check of STRICT_NONE.
I think assertion is very strict and wrong in few cases. InnoDB should remove the assertion
Starting with 10.4, files created with innodb_checksum_algorithm=full_crc32 will always use that algorithm. But the algorithm is intentionally not available for ROW_FORMAT=COMPRESSED (we did not want to introduce a new file format for such tables).
The crash is claimed to occur during page flushing, not when reading a page into the buffer pool. The checksum should be calculated during the flushing. So, this report seems legitimate to me, even though I see no valid use case for using anything else than innodb_checksum_algorithm=full_crc32 or innodb_checksum_algorithm=crc32.
Marko Mäkelä
added a comment - Starting with 10.4, files created with innodb_checksum_algorithm=full_crc32 will always use that algorithm. But the algorithm is intentionally not available for ROW_FORMAT=COMPRESSED (we did not want to introduce a new file format for such tables).
The crash is claimed to occur during page flushing, not when reading a page into the buffer pool. The checksum should be calculated during the flushing. So, this report seems legitimate to me, even though I see no valid use case for using anything else than innodb_checksum_algorithm=full_crc32 or innodb_checksum_algorithm=crc32 .
buf_LRU_free_page() does write checksum value for compressed page.
buf_LRU_free_page() is triggered by SET GLOBAL innodb_buffer_pool_evict='uncompressed';
That's why we're getting crash after changing algorithm value
Thirunarayanan Balathandayuthapani
added a comment - buf_LRU_free_page() does write checksum value for compressed page.
buf_LRU_free_page() is triggered by SET GLOBAL innodb_buffer_pool_evict='uncompressed';
That's why we're getting crash after changing algorithm value
The code change looks OK to me. I would recommend not to add the test case, because the innodb_checksum_algorithm=strict_none could cause crashes in background operations (change buffer merge, purge).
Marko Mäkelä
added a comment - The code change looks OK to me. I would recommend not to add the test case, because the innodb_checksum_algorithm=strict_none could cause crashes in background operations (change buffer merge, purge).
SET GLOBAL innodb_buffer_pool_evict='uncompressed';
SET GLOBAL innodb_checksum_algorithm=3;
SELECT SLEEP(5);
Roel Van de Paar
added a comment - - edited Secondary testcase to test any fix with
USE test;
CREATE TABLE t(a INT) ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1;
SET GLOBAL innodb_buffer_pool_evict='uncompressed';
SET GLOBAL innodb_checksum_algorithm=3;
SELECT SLEEP(5);
People
Thirunarayanan Balathandayuthapani
Roel Van de Paar
Votes:
0Vote for this issue
Watchers:
4Start 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":878.7999997138977,"ttfb":276.7999997138977,"pageVisibility":"visible","entityId":87230,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"1e476a60-4573-43fa-8946-2c7ac8391b2e","navigationType":0,"readyForUser":950.8999996185303,"redirectCount":0,"resourceLoadedEnd":623.6999998092651,"resourceLoadedStart":284,"resourceTiming":[{"duration":66.2999997138977,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":284,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":284,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":350.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":67.2000002861023,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":284.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":284.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":351.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":143.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":284.5,"connectEnd":284.5,"connectStart":284.5,"domainLookupEnd":284.5,"domainLookupStart":284.5,"fetchStart":284.5,"redirectEnd":0,"redirectStart":0,"requestStart":355.09999990463257,"responseEnd":428.19999980926514,"responseStart":370.19999980926514,"secureConnectionStart":284.5},{"duration":172.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":284.69999980926514,"connectEnd":284.69999980926514,"connectStart":284.69999980926514,"domainLookupEnd":284.69999980926514,"domainLookupStart":284.69999980926514,"fetchStart":284.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":355.19999980926514,"responseEnd":457.59999990463257,"responseStart":372,"secureConnectionStart":284.69999980926514},{"duration":86.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":284.8999996185303,"connectEnd":284.8999996185303,"connectStart":284.8999996185303,"domainLookupEnd":284.8999996185303,"domainLookupStart":284.8999996185303,"fetchStart":284.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":356.2999997138977,"responseEnd":371.2999997138977,"responseStart":370.7999997138977,"secureConnectionStart":284.8999996185303},{"duration":86.89999961853027,"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":285,"connectEnd":285,"connectStart":285,"domainLookupEnd":285,"domainLookupStart":285,"fetchStart":285,"redirectEnd":0,"redirectStart":0,"requestStart":357.09999990463257,"responseEnd":371.8999996185303,"responseStart":371.3999996185303,"secureConnectionStart":285},{"duration":96.80000019073486,"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":285.19999980926514,"connectEnd":285.19999980926514,"connectStart":285.19999980926514,"domainLookupEnd":285.19999980926514,"domainLookupStart":285.19999980926514,"fetchStart":285.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":359.5,"responseEnd":382,"responseStart":381,"secureConnectionStart":285.19999980926514},{"duration":72.2000002861023,"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":285.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":285.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":357.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":108.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":285.5,"connectEnd":285.5,"connectStart":285.5,"domainLookupEnd":285.5,"domainLookupStart":285.5,"fetchStart":285.5,"redirectEnd":0,"redirectStart":0,"requestStart":365,"responseEnd":394.09999990463257,"responseStart":393.5,"secureConnectionStart":285.5},{"duration":74,"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":285.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":285.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":359.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":107.60000038146973,"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":285.8999996185303,"connectEnd":285.8999996185303,"connectStart":285.8999996185303,"domainLookupEnd":285.8999996185303,"domainLookupStart":285.8999996185303,"fetchStart":285.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":362.7999997138977,"responseEnd":393.5,"responseStart":392.8999996185303,"secureConnectionStart":285.8999996185303},{"duration":325.7000002861023,"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":294.7999997138977,"connectEnd":294.7999997138977,"connectStart":294.7999997138977,"domainLookupEnd":294.7999997138977,"domainLookupStart":294.7999997138977,"fetchStart":294.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":465,"responseEnd":620.5,"responseStart":618,"secureConnectionStart":294.7999997138977},{"duration":324.19999980926514,"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":299.5,"connectEnd":299.5,"connectStart":299.5,"domainLookupEnd":299.5,"domainLookupStart":299.5,"fetchStart":299.5,"redirectEnd":0,"redirectStart":0,"requestStart":465.09999990463257,"responseEnd":623.6999998092651,"responseStart":618.7999997138977,"secureConnectionStart":299.5},{"duration":216.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":631.7999997138977,"connectEnd":631.7999997138977,"connectStart":631.7999997138977,"domainLookupEnd":631.7999997138977,"domainLookupStart":631.7999997138977,"fetchStart":631.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":812.8999996185303,"responseEnd":848.2999997138977,"responseStart":847.0999999046326,"secureConnectionStart":631.7999997138977}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":85,"responseStart":277,"responseEnd":299,"domLoading":280,"domInteractive":1012,"domContentLoadedEventStart":1012,"domContentLoadedEventEnd":1059,"domComplete":1646,"loadEventStart":1646,"loadEventEnd":1646,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":988.7999997138977},{"name":"bigPipe.sidebar-id.end","time":989.3999996185303},{"name":"bigPipe.activity-panel-pipe-id.start","time":989.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":991.5999999046326},{"name":"activityTabFullyLoaded","time":1077.8999996185303}],"measures":[],"correlationId":"f7125a163ac97c","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":122,"dbReadsTimeInMs":14,"dbConnsTimeInMs":25,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Based on frames seen, potentially related to Valgrind issues seen in
MDEV-11686