The function row_build_index_entry_low() is attempting to fetch the value of a virtual TEXT column from a cache of stored off-page column prefixes, causing a failure.
Bug #27968952 INNODB CRASH/CORRUPTION WITH TEXT PREFIX INDEXES in MySQL 5.7.24 addresses this.
Here is a little clearer and somewhat extended test case:
CREATE TABLE t1(
|
a INT NOT NULL UNIQUE,
|
b INT NOT NULL,
|
c TEXT GENERATED ALWAYS AS (a <> b) VIRTUAL,
|
d TEXT NOT NULL,
|
UNIQUE KEY (c(1)), KEY(d(1))
|
) ENGINE=InnoDB ROW_FORMAT=DYNAMIC;
|
SET @t = REPEAT('t',@@innodb_page_size);
|
INSERT INTO t1 (a,b,d) VALUES (1,0,@t), (0,0,@t);
|
--error ER_DUP_ENTRY
|
UPDATE t1 SET b = a;
|
REPLACE INTO t1 SET a = 0, b = 1, d = 'd';
|
SELECT * FROM t1;
|
CHECK TABLE t1;
|
DROP TABLE t1;
|
|
CREATE TABLE t1(
|
a VARCHAR(1000) GENERATED ALWAYS AS ('1') VIRTUAL,
|
b VARCHAR(1000) NOT NULL,
|
c VARCHAR(1000) GENERATED ALWAYS AS (b) STORED,
|
KEY (b(1)),
|
KEY (a(1))
|
) ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1;
|
INSERT INTO t1(b) VALUES(REPEAT('b',1000));
|
DELETE FROM t1;
|
DROP TABLE t1;
|
10.2 a21e01a53d309c4c949d41f85a43211008bac1fc
|
mysqltest: At line …: query 'UPDATE t1 SET b = a' failed with wrong errno 2013: 'Lost connection to MySQL server during query', instead of 1062...
|
…
|
Version: '10.2.19-MariaDB-debug-log' socket: '/dev/shm/10.2/mysql-test/var/tmp/mysqld.1.sock' port: 16000 Source distribution
|
2018-10-25 16:57:29 140274706073344 [ERROR] InnoDB: Record in index `c` of table `test`.`t1` was not found on update: TUPLE (info_bits=0, 2 fields): {[1]t(0x74),[4] (0x80000001)} at: COMPACT RECORD(info_bits=0, 2 fields): {[1]1(0x31),[4] (0x80000001)}
|
mysqld: /mariadb/10.2m/storage/innobase/row/row0upd.cc:2436: dberr_t row_upd_sec_index_entry(upd_node_t*, que_thr_t*): Assertion `0' failed.
|
There are no comments yet on this issue.
{"report":{"fcp":774.9000000953674,"ttfb":178.10000014305115,"pageVisibility":"visible","entityId":70435,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"6e3f7147-e628-4837-8809-92b891cfa0c6","navigationType":0,"readyForUser":860.4000000953674,"redirectCount":0,"resourceLoadedEnd":479.90000009536743,"resourceLoadedStart":185.60000014305115,"resourceTiming":[{"duration":39.39999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":185.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":185.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":225,"responseStart":0,"secureConnectionStart":0},{"duration":39.60000014305115,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":185.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":185.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":225.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":154.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":185.90000009536743,"connectEnd":227.60000014305115,"connectStart":227.60000014305115,"domainLookupEnd":227.60000014305115,"domainLookupStart":227.60000014305115,"fetchStart":185.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":227.79999995231628,"responseEnd":340.5,"responseStart":241.90000009536743,"secureConnectionStart":227.60000014305115},{"duration":281.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":186.10000014305115,"connectEnd":186.10000014305115,"connectStart":186.10000014305115,"domainLookupEnd":186.10000014305115,"domainLookupStart":186.10000014305115,"fetchStart":186.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":228.60000014305115,"responseEnd":467.90000009536743,"responseStart":247.90000009536743,"secureConnectionStart":186.10000014305115},{"duration":55.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":186.20000004768372,"connectEnd":186.20000004768372,"connectStart":186.20000004768372,"domainLookupEnd":186.20000004768372,"domainLookupStart":186.20000004768372,"fetchStart":186.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":229.29999995231628,"responseEnd":241.70000004768372,"responseStart":240.40000009536743,"secureConnectionStart":186.20000004768372},{"duration":63.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":186.20000004768372,"connectEnd":186.20000004768372,"connectStart":186.20000004768372,"domainLookupEnd":186.20000004768372,"domainLookupStart":186.20000004768372,"fetchStart":186.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":230.90000009536743,"responseEnd":249.79999995231628,"responseStart":244.70000004768372,"secureConnectionStart":186.20000004768372},{"duration":64,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":186.29999995231628,"connectEnd":186.29999995231628,"connectStart":186.29999995231628,"domainLookupEnd":186.29999995231628,"domainLookupStart":186.29999995231628,"fetchStart":186.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":231,"responseEnd":250.29999995231628,"responseStart":247.40000009536743,"secureConnectionStart":186.29999995231628},{"duration":44.299999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":186.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":186.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":230.79999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":71.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":186.60000014305115,"connectEnd":186.60000014305115,"connectStart":186.60000014305115,"domainLookupEnd":186.60000014305115,"domainLookupStart":186.60000014305115,"fetchStart":186.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":233.5,"responseEnd":258.5,"responseStart":254,"secureConnectionStart":186.60000014305115},{"duration":45.200000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":186.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":186.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":231.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":72.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":186.79999995231628,"connectEnd":186.79999995231628,"connectStart":186.79999995231628,"domainLookupEnd":186.79999995231628,"domainLookupStart":186.79999995231628,"fetchStart":186.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":233.90000009536743,"responseEnd":259.5,"responseStart":255.20000004768372,"secureConnectionStart":186.79999995231628},{"duration":282.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":195.70000004768372,"connectEnd":195.70000004768372,"connectStart":195.70000004768372,"domainLookupEnd":195.70000004768372,"domainLookupStart":195.70000004768372,"fetchStart":195.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":329.10000014305115,"responseEnd":478.10000014305115,"responseStart":474.10000014305115,"secureConnectionStart":195.70000004768372},{"duration":284.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":195.79999995231628,"connectEnd":195.79999995231628,"connectStart":195.79999995231628,"domainLookupEnd":195.79999995231628,"domainLookupStart":195.79999995231628,"fetchStart":195.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":403.60000014305115,"responseEnd":479.90000009536743,"responseStart":475.60000014305115,"secureConnectionStart":195.79999995231628},{"duration":97.29999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":467.90000009536743,"connectEnd":467.90000009536743,"connectStart":467.90000009536743,"domainLookupEnd":467.90000009536743,"domainLookupStart":467.90000009536743,"fetchStart":467.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":535.4000000953674,"responseEnd":565.2000000476837,"responseStart":563.7999999523163,"secureConnectionStart":467.90000009536743},{"duration":228.20000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":697,"connectEnd":697,"connectStart":697,"domainLookupEnd":697,"domainLookupStart":697,"fetchStart":697,"redirectEnd":0,"redirectStart":0,"requestStart":894.7999999523163,"responseEnd":925.2000000476837,"responseStart":923.4000000953674,"secureConnectionStart":697}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":34,"responseStart":178,"responseEnd":195,"domLoading":181,"domInteractive":915,"domContentLoadedEventStart":915,"domContentLoadedEventEnd":963,"domComplete":1427,"loadEventStart":1427,"loadEventEnd":1427,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":899.7999999523163},{"name":"bigPipe.sidebar-id.end","time":900.6000001430511},{"name":"bigPipe.activity-panel-pipe-id.start","time":900.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":901.2000000476837},{"name":"activityTabFullyLoaded","time":972}],"measures":[],"correlationId":"c7fc5ac4752ec9","effectiveType":"4g","downlink":9.3,"rtt":0,"serverDuration":76,"dbReadsTimeInMs":14,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}