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":2000.8999998569489,"ttfb":272.5,"pageVisibility":"visible","entityId":83303,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"06f2f677-2256-4439-96dd-7572ce3d9e4a","navigationType":0,"readyForUser":2119.899999856949,"redirectCount":0,"resourceLoadedEnd":1664.3999998569489,"resourceLoadedStart":281.2000000476837,"resourceTiming":[{"duration":199,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":281.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":281.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":480.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":199.10000014305115,"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":281.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":281.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":480.5,"responseStart":0,"secureConnectionStart":0},{"duration":913.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":281.7000000476837,"connectEnd":480.2000000476837,"connectStart":480.2000000476837,"domainLookupEnd":480.2000000476837,"domainLookupStart":480.2000000476837,"fetchStart":281.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":483,"responseEnd":1195.5,"responseStart":502.59999990463257,"secureConnectionStart":480.2000000476837},{"duration":1343.3000001907349,"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":281.89999985694885,"connectEnd":281.89999985694885,"connectStart":281.89999985694885,"domainLookupEnd":281.89999985694885,"domainLookupStart":281.89999985694885,"fetchStart":281.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":483.39999985694885,"responseEnd":1625.2000000476837,"responseStart":513.7999999523163,"secureConnectionStart":281.89999985694885},{"duration":219.60000014305115,"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":282.09999990463257,"connectEnd":282.09999990463257,"connectStart":282.09999990463257,"domainLookupEnd":282.09999990463257,"domainLookupStart":282.09999990463257,"fetchStart":282.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":483.5,"responseEnd":501.7000000476837,"responseStart":497,"secureConnectionStart":282.09999990463257},{"duration":266.59999990463257,"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":282.2999999523163,"connectEnd":282.2999999523163,"connectStart":282.2999999523163,"domainLookupEnd":282.2999999523163,"domainLookupStart":282.2999999523163,"fetchStart":282.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":495.2999999523163,"responseEnd":548.8999998569489,"responseStart":528.2999999523163,"secureConnectionStart":282.2999999523163},{"duration":267.30000019073486,"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":282.39999985694885,"connectEnd":282.39999985694885,"connectStart":282.39999985694885,"domainLookupEnd":282.39999985694885,"domainLookupStart":282.39999985694885,"fetchStart":282.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":495.59999990463257,"responseEnd":549.7000000476837,"responseStart":529.5999999046326,"secureConnectionStart":282.39999985694885},{"duration":201.39999985694885,"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":282.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":282.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":484.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":267.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":282.89999985694885,"connectEnd":282.89999985694885,"connectStart":282.89999985694885,"domainLookupEnd":282.89999985694885,"domainLookupStart":282.89999985694885,"fetchStart":282.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":495.59999990463257,"responseEnd":550.0999999046326,"responseStart":530.7999999523163,"secureConnectionStart":282.89999985694885},{"duration":205.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":283.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":283.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":488.5,"responseStart":0,"secureConnectionStart":0},{"duration":268,"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":283.2000000476837,"connectEnd":283.2000000476837,"connectStart":283.2000000476837,"domainLookupEnd":283.2000000476837,"domainLookupStart":283.2000000476837,"fetchStart":283.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":495.7999999523163,"responseEnd":551.2000000476837,"responseStart":542.7000000476837,"secureConnectionStart":283.2000000476837},{"duration":1353.7999999523163,"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":293.7999999523163,"connectEnd":293.7999999523163,"connectStart":293.7999999523163,"domainLookupEnd":293.7999999523163,"domainLookupStart":293.7999999523163,"fetchStart":293.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":694.7999999523163,"responseEnd":1647.5999999046326,"responseStart":1630.2999999523163,"secureConnectionStart":293.7999999523163},{"duration":1370.5,"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":293.89999985694885,"connectEnd":293.89999985694885,"connectStart":293.89999985694885,"domainLookupEnd":293.89999985694885,"domainLookupStart":293.89999985694885,"fetchStart":293.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":840.7999999523163,"responseEnd":1664.3999998569489,"responseStart":1635,"secureConnectionStart":293.89999985694885},{"duration":285.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1500.2999999523163,"connectEnd":1500.2999999523163,"connectStart":1500.2999999523163,"domainLookupEnd":1500.2999999523163,"domainLookupStart":1500.2999999523163,"fetchStart":1500.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1753.2000000476837,"responseEnd":1785.3999998569489,"responseStart":1784.5,"secureConnectionStart":1500.2999999523163}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":80,"responseStart":273,"responseEnd":293,"domLoading":276,"domInteractive":2216,"domContentLoadedEventStart":2216,"domContentLoadedEventEnd":2263,"domComplete":2952,"loadEventStart":2952,"loadEventEnd":2952,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2177.5999999046326},{"name":"bigPipe.sidebar-id.end","time":2178.399999856949},{"name":"bigPipe.activity-panel-pipe-id.start","time":2178.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":2179.5},{"name":"activityTabFullyLoaded","time":2282.7999999523163}],"measures":[],"correlationId":"b51c931fb78cf8","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":108,"dbReadsTimeInMs":26,"dbConnsTimeInMs":38,"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.