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":853.5,"ttfb":209.80000019073486,"pageVisibility":"visible","entityId":83303,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"fa462203-11d3-4a78-8d3a-3f6bc4c377f7","navigationType":0,"readyForUser":972.3000001907349,"redirectCount":0,"resourceLoadedEnd":1126.9000000953674,"resourceLoadedStart":214.70000004768372,"resourceTiming":[{"duration":135.79999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":214.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":214.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":350.5,"responseStart":0,"secureConnectionStart":0},{"duration":135.80000019073486,"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":215,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":215,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":350.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":147.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":215.20000004768372,"connectEnd":215.20000004768372,"connectStart":215.20000004768372,"domainLookupEnd":215.20000004768372,"domainLookupStart":215.20000004768372,"fetchStart":215.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":215.20000004768372,"responseEnd":362.5,"responseStart":362.40000009536743,"secureConnectionStart":215.20000004768372},{"duration":235.90000009536743,"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":215.40000009536743,"connectEnd":215.40000009536743,"connectStart":215.40000009536743,"domainLookupEnd":215.40000009536743,"domainLookupStart":215.40000009536743,"fetchStart":215.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":215.40000009536743,"responseEnd":451.30000019073486,"responseStart":451.30000019073486,"secureConnectionStart":215.40000009536743},{"duration":240.20000004768372,"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":215.60000014305115,"connectEnd":215.60000014305115,"connectStart":215.60000014305115,"domainLookupEnd":215.60000014305115,"domainLookupStart":215.60000014305115,"fetchStart":215.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":215.60000014305115,"responseEnd":455.80000019073486,"responseStart":455.80000019073486,"secureConnectionStart":215.60000014305115},{"duration":240.39999985694885,"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":215.80000019073486,"connectEnd":215.80000019073486,"connectStart":215.80000019073486,"domainLookupEnd":215.80000019073486,"domainLookupStart":215.80000019073486,"fetchStart":215.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":215.80000019073486,"responseEnd":456.2000000476837,"responseStart":456.2000000476837,"secureConnectionStart":215.80000019073486},{"duration":240.60000014305115,"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":216,"connectEnd":216,"connectStart":216,"domainLookupEnd":216,"domainLookupStart":216,"fetchStart":216,"redirectEnd":0,"redirectStart":0,"requestStart":216,"responseEnd":456.60000014305115,"responseStart":456.60000014305115,"secureConnectionStart":216},{"duration":295.40000009536743,"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":216.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":216.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":511.60000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":240.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":216.30000019073486,"connectEnd":216.30000019073486,"connectStart":216.30000019073486,"domainLookupEnd":216.30000019073486,"domainLookupStart":216.30000019073486,"fetchStart":216.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":216.30000019073486,"responseEnd":457,"responseStart":457,"secureConnectionStart":216.30000019073486},{"duration":294.40000009536743,"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":217.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":217.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":511.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":240.10000014305115,"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":217.5,"connectEnd":217.5,"connectStart":217.5,"domainLookupEnd":217.5,"domainLookupStart":217.5,"fetchStart":217.5,"redirectEnd":0,"redirectStart":0,"requestStart":217.5,"responseEnd":457.60000014305115,"responseStart":457.60000014305115,"secureConnectionStart":217.5},{"duration":444.59999990463257,"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":223.30000019073486,"connectEnd":223.30000019073486,"connectStart":223.30000019073486,"domainLookupEnd":223.30000019073486,"domainLookupStart":223.30000019073486,"fetchStart":223.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":223.30000019073486,"responseEnd":667.9000000953674,"responseStart":667.9000000953674,"secureConnectionStart":223.30000019073486},{"duration":876.1999998092651,"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":223.80000019073486,"connectEnd":223.80000019073486,"connectStart":223.80000019073486,"domainLookupEnd":223.80000019073486,"domainLookupStart":223.80000019073486,"fetchStart":223.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":223.80000019073486,"responseEnd":1100,"responseStart":1100,"secureConnectionStart":223.80000019073486},{"duration":143.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":524.6000001430511,"connectEnd":524.6000001430511,"connectStart":524.6000001430511,"domainLookupEnd":524.6000001430511,"domainLookupStart":524.6000001430511,"fetchStart":524.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":524.6000001430511,"responseEnd":668.2000000476837,"responseStart":668.2000000476837,"secureConnectionStart":524.6000001430511},{"duration":310.7000000476837,"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":799.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":799.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1110.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":326.2000000476837,"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":800.7000000476837,"connectEnd":800.7000000476837,"connectStart":800.7000000476837,"domainLookupEnd":800.7000000476837,"domainLookupStart":800.7000000476837,"fetchStart":800.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":800.7000000476837,"responseEnd":1126.9000000953674,"responseStart":1126.9000000953674,"secureConnectionStart":800.7000000476837},{"duration":337.7999999523163,"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":801.1000001430511,"connectEnd":801.1000001430511,"connectStart":801.1000001430511,"domainLookupEnd":801.1000001430511,"domainLookupStart":801.1000001430511,"fetchStart":801.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":801.1000001430511,"responseEnd":1138.9000000953674,"responseStart":1138.9000000953674,"secureConnectionStart":801.1000001430511}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":53,"responseStart":210,"responseEnd":222,"domLoading":213,"domInteractive":1135,"domContentLoadedEventStart":1135,"domContentLoadedEventEnd":1181,"domComplete":1615,"loadEventStart":1615,"loadEventEnd":1615,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1114.5},{"name":"bigPipe.sidebar-id.end","time":1115.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1115.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1116.5},{"name":"activityTabFullyLoaded","time":1197.1000001430511}],"measures":[],"correlationId":"1c2df92e9736a3","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":91,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"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.