Assert hit during RQG testing on
|
10.5 41fe972db7cb48ac4cf4047edbe24a4ae3339bd8 build with debug
|
...
|
# 2020-02-17T14:38:46 [217502] | mysqld: storage/innobase/page/page0cur.cc:1306: rec_t* page_cur_insert_rec_low(const page_cur_t*, dict_index_t*, const rec_t*, offset_t*, mtr_t*): Assertion `rdm - rd + bd <= insert_buf + rec_size' failed.
|
# 2020-02-17T14:38:46 [217502] | 200217 14:37:49 [ERROR] mysqld got signal 6 ;
|
...
|
# 2020-02-17T14:38:46 [217502] | Query (0x7ff088011520): UPDATE t3 SET col1 = NULL LIMIT 2 /* E_R Thread1 QNO 18624 CON_ID 139 */
|
# 2020-02-17T14:38:46 [217502] | Connection ID (thread ID): 139
|
# 2020-02-17T14:38:46 [217502] | Status: NOT_KILLED
|
...
|
# 2020-02-17T14:38:46 [217502] #3 <signal handler called>
|
# 2020-02-17T14:38:46 [217502] #4 0x00007ff0e7b93207 in raise () from /lib64/libc.so.6
|
# 2020-02-17T14:38:46 [217502] #5 0x00007ff0e7b948f8 in abort () from /lib64/libc.so.6
|
# 2020-02-17T14:38:46 [217502] #6 0x00007ff0e7b8c026 in __assert_fail_base () from /lib64/libc.so.6
|
# 2020-02-17T14:38:46 [217502] #7 0x00007ff0e7b8c0d2 in __assert_fail () from /lib64/libc.so.6
|
# 2020-02-17T14:38:46 [217502] #8 0x0000563db646c2ee in page_cur_insert_rec_low (cur=0x7ff0e02cda18, index=0x7ff0842a4c90, rec=0x7ff088153636 "1111111111 \200", offsets=0x7ff088153610, mtr=0x7ff0e02cdd10) at storage/innobase/page/page0cur.cc:1306
|
# 2020-02-17T14:38:46 [217502] #9 0x0000563db65ef508 in page_cur_tuple_insert (cursor=0x7ff0e02cda18, tuple=0x7ff088153180, index=0x7ff0842a4c90, offsets=0x7ff0e02cd9b8, heap=0x7ff0e02cd990, n_ext=0, mtr=0x7ff0e02cdd10) at storage/innobase/include/page0cur.ic:285
|
# 2020-02-17T14:38:46 [217502] #10 0x0000563db65fa67f in btr_page_split_and_insert (flags=0, cursor=0x7ff0e02cda10, offsets=0x7ff0e02cd9b8, heap=0x7ff0e02cd990, tuple=0x7ff088153180, n_ext=0, mtr=0x7ff0e02cdd10) at storage/innobase/btr/btr0btr.cc:3012
|
# 2020-02-17T14:38:46 [217502] #11 0x0000563db66260c6 in btr_cur_pessimistic_insert (flags=0, cursor=0x7ff0e02cda10, offsets=0x7ff0e02cd9b8, heap=0x7ff0e02cd990, entry=0x7ff088153180, rec=0x7ff0e02cd9c0, big_rec=0x7ff0e02cd9c8, n_ext=0, thr=0x7ff08815e8b0, mtr=0x7ff0e02cdd10) at storage/innobase/btr/btr0cur.cc:3754
|
# 2020-02-17T14:38:46 [217502] #12 0x0000563db64e1ae3 in row_ins_sec_index_entry_low (flags=0, mode=33, index=0x7ff0842a4c90, offsets_heap=0x7ff088153590, heap=0x7ff088153a20, entry=0x7ff088153180, trx_id=0, thr=0x7ff08815e8b0) at storage/innobase/row/row0ins.cc:3139
|
# 2020-02-17T14:38:46 [217502] #13 0x0000563db64e22b9 in row_ins_sec_index_entry (index=0x7ff0842a4c90, entry=0x7ff088153180, thr=0x7ff08815e8b0, check_foreign=true) at storage/innobase/row/row0ins.cc:3330
|
# 2020-02-17T14:38:46 [217502] #14 0x0000563db6564b75 in row_upd_sec_index_entry (node=0x7ff08815e3f8, thr=0x7ff08815e8b0) at storage/innobase/row/row0upd.cc:2224
|
# 2020-02-17T14:38:46 [217502] #15 0x0000563db6564dda in row_upd_sec_step (node=0x7ff08815e3f8, thr=0x7ff08815e8b0) at storage/innobase/row/row0upd.cc:2251
|
# 2020-02-17T14:38:46 [217502] #16 0x0000563db6567d39 in row_upd (node=0x7ff08815e3f8, thr=0x7ff08815e8b0) at storage/innobase/row/row0upd.cc:3031
|
# 2020-02-17T14:38:46 [217502] #17 0x0000563db656817d in row_upd_step (thr=0x7ff08815e8b0) at storage/innobase/row/row0upd.cc:3146
|
# 2020-02-17T14:38:46 [217502] #18 0x0000563db6508e7d in row_update_for_mysql (prebuilt=0x7ff08815da80) at storage/innobase/row/row0mysql.cc:1889
|
# 2020-02-17T14:38:46 [217502] #19 0x0000563db636717a in ha_innobase::update_row (this=0x7ff088117870, old_row=0x7ff088124a38 "\232\376\001", new_row=0x7ff0881247f0 "\232\376") at storage/innobase/handler/ha_innodb.cc:8569
|
# 2020-02-17T14:38:46 [217502] #20 0x0000563db5e59047 in handler::ha_update_row (this=0x7ff088117870, old_data=0x7ff088124a38 "\232\376\001", new_data=0x7ff0881247f0 "\232\376") at sql/handler.cc:6702
|
# 2020-02-17T14:38:46 [217502] #21 0x0000563db5c17e05 in mysql_update (thd=0x7ff088000a98, table_list=0x7ff088011660, fields=..., values=..., conds=0x0, order_num=0, order=0x0, limit=2, ignore=false, found_return=0x7ff0e02cffd0, updated_return=0x7ff0e02d0090) at sql/sql_update.cc:1055
|
# 2020-02-17T14:38:46 [217502] #22 0x0000563db5af8b74 in mysql_execute_command (thd=0x7ff088000a98) at sql/sql_parse.cc:4360
|
# 2020-02-17T14:38:46 [217502] #23 0x0000563db5b05121 in mysql_parse (thd=0x7ff088000a98, rawbuf=0x7ff088011520 "UPDATE t3 SET col1 = NULL LIMIT 2 /* E_R Thread1 QNO 18624 CON_ID 139 */", length=73, parser_state=0x7ff0e02d0580, is_com_multi=false, is_next_command=false) at sql/sql_parse.cc:7918
|
# 2020-02-17T14:38:46 [217502] #24 0x0000563db5af0f26 in dispatch_command (command=COM_QUERY, thd=0x7ff088000a98, packet=0x7ff0880e3759 "UPDATE t3 SET col1 = NULL LIMIT 2 /* E_R Thread1 QNO 18624 CON_ID 139 */ ", packet_length=74, is_com_multi=false, is_next_command=false) at sql/sql_parse.cc:1845
|
# 2020-02-17T14:38:46 [217502] #25 0x0000563db5aef5b3 in do_command (thd=0x7ff088000a98) at sql/sql_parse.cc:1364
|
# 2020-02-17T14:38:46 [217502] #26 0x0000563db5c91a3a in do_handle_one_connection (connect=0x563db9592838, put_in_cache=true) at sql/sql_connect.cc:1422
|
# 2020-02-17T14:38:46 [217502] #27 0x0000563db5c91753 in handle_one_connection (arg=0x563db969add8) at sql/sql_connect.cc:1319
|
# 2020-02-17T14:38:46 [217502] #28 0x00007ff0e8fa3dd5 in start_thread () from /lib64/libpthread.so.0
|
# 2020-02-17T14:38:46 [217502] #29 0x00007ff0e7c5aead in clone () from /lib64/libc.so.6
|
|
10.5.2 commit 6618fc29749f8521c5a0a007ae6d6fadb5121717
|
No replay on 10.4, 10.3, 10.2
|
|
How to replay
|
---------------------
|
move the MDEV-21749.* to <source tree>/mysql-test/main
|
cd <tree with binaries>/mysql-test
|
./mysql-test-run.pl --mem MDEV-21749 --mysqld=--innodb_page_size=4K --max-test-fail=0 --repeat=100
|
I need usually less than 20 repeats.
|
- is caused by
-
MDEV-12353
Efficient InnoDB redo log record format
-
-
Closed
{"report":{"fcp":1736.2999997138977,"ttfb":542.7999997138977,"pageVisibility":"visible","entityId":83303,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"bbd72d62-c508-48e5-8767-ae685e528a47","navigationType":0,"readyForUser":1884.2999997138977,"redirectCount":0,"resourceLoadedEnd":1991.3999996185303,"resourceLoadedStart":548.8999996185303,"resourceTiming":[{"duration":600.7000002861023,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":548.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":548.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1149.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":600.6999998092651,"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":549.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":549.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1149.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":649.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":549.5,"connectEnd":549.5,"connectStart":549.5,"domainLookupEnd":549.5,"domainLookupStart":549.5,"fetchStart":549.5,"redirectEnd":0,"redirectStart":0,"requestStart":549.5,"responseEnd":1198.7999997138977,"responseStart":1198.7999997138977,"secureConnectionStart":549.5},{"duration":701.6999998092651,"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":549.6999998092651,"connectEnd":549.6999998092651,"connectStart":549.6999998092651,"domainLookupEnd":549.6999998092651,"domainLookupStart":549.6999998092651,"fetchStart":549.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":549.6999998092651,"responseEnd":1251.3999996185303,"responseStart":1251.3999996185303,"secureConnectionStart":549.6999998092651},{"duration":705.6999998092651,"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":550,"connectEnd":550,"connectStart":550,"domainLookupEnd":550,"domainLookupStart":550,"fetchStart":550,"redirectEnd":0,"redirectStart":0,"requestStart":550,"responseEnd":1255.6999998092651,"responseStart":1255.6999998092651,"secureConnectionStart":550},{"duration":706,"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":550.0999999046326,"connectEnd":550.0999999046326,"connectStart":550.0999999046326,"domainLookupEnd":550.0999999046326,"domainLookupStart":550.0999999046326,"fetchStart":550.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":550.0999999046326,"responseEnd":1256.0999999046326,"responseStart":1256.0999999046326,"secureConnectionStart":550.0999999046326},{"duration":706.3000001907349,"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":550.2999997138977,"connectEnd":550.2999997138977,"connectStart":550.2999997138977,"domainLookupEnd":550.2999997138977,"domainLookupStart":550.2999997138977,"fetchStart":550.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":550.2999997138977,"responseEnd":1256.5999999046326,"responseStart":1256.5999999046326,"secureConnectionStart":550.2999997138977},{"duration":795.4000000953674,"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":550.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":550.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1345.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":706.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":550.5999999046326,"connectEnd":550.5999999046326,"connectStart":550.5999999046326,"domainLookupEnd":550.5999999046326,"domainLookupStart":550.5999999046326,"fetchStart":550.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":550.5999999046326,"responseEnd":1257.0999999046326,"responseStart":1257.0999999046326,"secureConnectionStart":550.5999999046326},{"duration":795.1000003814697,"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":550.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":550.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1346,"responseStart":0,"secureConnectionStart":0},{"duration":706.6999998092651,"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":551,"connectEnd":551,"connectStart":551,"domainLookupEnd":551,"domainLookupStart":551,"fetchStart":551,"redirectEnd":0,"redirectStart":0,"requestStart":551,"responseEnd":1257.6999998092651,"responseStart":1257.6999998092651,"secureConnectionStart":551},{"duration":1083.6999998092651,"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":552,"connectEnd":552,"connectStart":552,"domainLookupEnd":552,"domainLookupStart":552,"fetchStart":552,"redirectEnd":0,"redirectStart":0,"requestStart":552,"responseEnd":1635.6999998092651,"responseStart":1635.6999998092651,"secureConnectionStart":552},{"duration":1435,"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":556.3999996185303,"connectEnd":556.3999996185303,"connectStart":556.3999996185303,"domainLookupEnd":556.3999996185303,"domainLookupStart":556.3999996185303,"fetchStart":556.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":556.3999996185303,"responseEnd":1991.3999996185303,"responseStart":1991.3999996185303,"secureConnectionStart":556.3999996185303},{"duration":267.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1368.8999996185303,"connectEnd":1368.8999996185303,"connectStart":1368.8999996185303,"domainLookupEnd":1368.8999996185303,"domainLookupStart":1368.8999996185303,"fetchStart":1368.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":1368.8999996185303,"responseEnd":1636.6999998092651,"responseStart":1636.6999998092651,"secureConnectionStart":1368.8999996185303},{"duration":404.7000002861023,"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":1669.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1669.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2074.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":383.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/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&whisper-enabled=true","startTime":1671.0999999046326,"connectEnd":1671.0999999046326,"connectStart":1671.0999999046326,"domainLookupEnd":1671.0999999046326,"domainLookupStart":1671.0999999046326,"fetchStart":1671.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1671.0999999046326,"responseEnd":2054.699999809265,"responseStart":2054.699999809265,"secureConnectionStart":1671.0999999046326},{"duration":430.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/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&whisper-enabled=true","startTime":1671.3999996185303,"connectEnd":1671.3999996185303,"connectStart":1671.3999996185303,"domainLookupEnd":1671.3999996185303,"domainLookupStart":1671.3999996185303,"fetchStart":1671.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":1671.3999996185303,"responseEnd":2102.2999997138977,"responseStart":2102.2999997138977,"secureConnectionStart":1671.3999996185303}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":383,"responseStart":543,"responseEnd":549,"domLoading":547,"domInteractive":2021,"domContentLoadedEventStart":2021,"domContentLoadedEventEnd":2075,"domComplete":2825,"loadEventStart":2825,"loadEventEnd":2826,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1998.3999996185303},{"name":"bigPipe.sidebar-id.end","time":1999.3999996185303},{"name":"bigPipe.activity-panel-pipe-id.start","time":1999.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":2000.6999998092651},{"name":"activityTabFullyLoaded","time":2152}],"measures":[],"correlationId":"7db9d8bbb6c4e4","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":96,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Before we entered the preceding comparison loop, we failed to check that the comparison does not start after c_end, the end of the cur->rec.
A similar bug should be possible in PageBulk::insertPage(), although probably much harder to repeat.