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":1166.4000000953674,"ttfb":220,"pageVisibility":"visible","entityId":83303,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"0bb6c6ba-69ec-4b57-ac6e-5dd686bc1226","navigationType":0,"readyForUser":1266,"redirectCount":0,"resourceLoadedEnd":887.1999998092651,"resourceLoadedStart":251.40000009536743,"resourceTiming":[{"duration":228.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":251.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":251.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":479.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":228.5,"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":251.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":251.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":480.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":473.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":252.09999990463257,"connectEnd":252.09999990463257,"connectStart":252.09999990463257,"domainLookupEnd":252.09999990463257,"domainLookupStart":252.09999990463257,"fetchStart":252.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":481.09999990463257,"responseEnd":725.6999998092651,"responseStart":522.6999998092651,"secureConnectionStart":252.09999990463257},{"duration":607.8999996185303,"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":256.40000009536743,"connectEnd":256.40000009536743,"connectStart":256.40000009536743,"domainLookupEnd":256.40000009536743,"domainLookupStart":256.40000009536743,"fetchStart":256.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":481.19999980926514,"responseEnd":864.2999997138977,"responseStart":526.6999998092651,"secureConnectionStart":256.40000009536743},{"duration":288.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":256.59999990463257,"connectEnd":256.59999990463257,"connectStart":256.59999990463257,"domainLookupEnd":256.59999990463257,"domainLookupStart":256.59999990463257,"fetchStart":256.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":517.5,"responseEnd":545,"responseStart":542.5999999046326,"secureConnectionStart":256.59999990463257},{"duration":296.2000002861023,"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":256.69999980926514,"connectEnd":256.69999980926514,"connectStart":256.69999980926514,"domainLookupEnd":256.69999980926514,"domainLookupStart":256.69999980926514,"fetchStart":256.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":520.7999997138977,"responseEnd":552.9000000953674,"responseStart":546.9000000953674,"secureConnectionStart":256.69999980926514},{"duration":297.3999996185303,"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":256.90000009536743,"connectEnd":256.90000009536743,"connectStart":256.90000009536743,"domainLookupEnd":256.90000009536743,"domainLookupStart":256.90000009536743,"fetchStart":256.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":521.4000000953674,"responseEnd":554.2999997138977,"responseStart":548.0999999046326,"secureConnectionStart":256.90000009536743},{"duration":236.80000019073486,"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":257.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":257.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":494,"responseStart":0,"secureConnectionStart":0},{"duration":297.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":257.2999997138977,"connectEnd":257.2999997138977,"connectStart":257.2999997138977,"domainLookupEnd":257.2999997138977,"domainLookupStart":257.2999997138977,"fetchStart":257.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":521.5999999046326,"responseEnd":554.5999999046326,"responseStart":548.7999997138977,"secureConnectionStart":257.2999997138977},{"duration":237.09999990463257,"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":257.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":257.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":494.5,"responseStart":0,"secureConnectionStart":0},{"duration":300.30000019073486,"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":257.69999980926514,"connectEnd":257.69999980926514,"connectStart":257.69999980926514,"domainLookupEnd":257.69999980926514,"domainLookupStart":257.69999980926514,"fetchStart":257.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":521.6999998092651,"responseEnd":558,"responseStart":553.1999998092651,"secureConnectionStart":257.69999980926514},{"duration":542.1000003814697,"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":260.2999997138977,"connectEnd":260.2999997138977,"connectStart":260.2999997138977,"domainLookupEnd":260.2999997138977,"domainLookupStart":260.2999997138977,"fetchStart":260.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":772.1999998092651,"responseEnd":802.4000000953674,"responseStart":799.5,"secureConnectionStart":260.2999997138977},{"duration":617.9000000953674,"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":269.2999997138977,"connectEnd":269.2999997138977,"connectStart":269.2999997138977,"domainLookupEnd":269.2999997138977,"domainLookupStart":269.2999997138977,"fetchStart":269.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":869.1999998092651,"responseEnd":887.1999998092651,"responseStart":885.4000000953674,"secureConnectionStart":269.2999997138977},{"duration":153.60000038146973,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":873.7999997138977,"connectEnd":873.7999997138977,"connectStart":873.7999997138977,"domainLookupEnd":873.7999997138977,"domainLookupStart":873.7999997138977,"fetchStart":873.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":985.2999997138977,"responseEnd":1027.4000000953674,"responseStart":1026.4000000953674,"secureConnectionStart":873.7999997138977}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":40,"responseStart":220,"responseEnd":261,"domLoading":224,"domInteractive":1364,"domContentLoadedEventStart":1364,"domContentLoadedEventEnd":1430,"domComplete":2073,"loadEventStart":2073,"loadEventEnd":2073,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1347.4000000953674},{"name":"bigPipe.sidebar-id.end","time":1348.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1348.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1349.1999998092651},{"name":"activityTabFullyLoaded","time":1448.2999997138977}],"measures":[],"correlationId":"8ad5f406702a5","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":102,"dbReadsTimeInMs":14,"dbConnsTimeInMs":29,"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.