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.
|
{"report":{"fcp":1075.4000000953674,"ttfb":303.30000019073486,"pageVisibility":"visible","entityId":70435,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"3f4b277b-6ac4-4ac7-9f68-1aabe5f664e3","navigationType":0,"readyForUser":1140.8000001907349,"redirectCount":0,"resourceLoadedEnd":1210.3000001907349,"resourceLoadedStart":311.5,"resourceTiming":[{"duration":281.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":311.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":311.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":593,"responseStart":0,"secureConnectionStart":0},{"duration":281.2000000476837,"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":311.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":311.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":593.1000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":330.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":312,"connectEnd":312,"connectStart":312,"domainLookupEnd":312,"domainLookupStart":312,"fetchStart":312,"redirectEnd":0,"redirectStart":0,"requestStart":312,"responseEnd":642.7000000476837,"responseStart":642.7000000476837,"secureConnectionStart":312},{"duration":383.40000009536743,"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":312.40000009536743,"connectEnd":312.40000009536743,"connectStart":312.40000009536743,"domainLookupEnd":312.40000009536743,"domainLookupStart":312.40000009536743,"fetchStart":312.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":312.40000009536743,"responseEnd":695.8000001907349,"responseStart":695.8000001907349,"secureConnectionStart":312.40000009536743},{"duration":387,"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":312.60000014305115,"connectEnd":312.60000014305115,"connectStart":312.60000014305115,"domainLookupEnd":312.60000014305115,"domainLookupStart":312.60000014305115,"fetchStart":312.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":312.60000014305115,"responseEnd":699.6000001430511,"responseStart":699.6000001430511,"secureConnectionStart":312.60000014305115},{"duration":388.5,"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":312.60000014305115,"connectEnd":312.60000014305115,"connectStart":312.60000014305115,"domainLookupEnd":312.60000014305115,"domainLookupStart":312.60000014305115,"fetchStart":312.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":312.60000014305115,"responseEnd":701.1000001430511,"responseStart":701.1000001430511,"secureConnectionStart":312.60000014305115},{"duration":389.60000014305115,"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":312.7000000476837,"connectEnd":312.7000000476837,"connectStart":312.7000000476837,"domainLookupEnd":312.7000000476837,"domainLookupStart":312.7000000476837,"fetchStart":312.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":312.7000000476837,"responseEnd":702.3000001907349,"responseStart":702.3000001907349,"secureConnectionStart":312.7000000476837},{"duration":390.69999980926514,"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":312.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":312.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":703.5,"responseStart":0,"secureConnectionStart":0},{"duration":390.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":312.90000009536743,"connectEnd":312.90000009536743,"connectStart":312.90000009536743,"domainLookupEnd":312.90000009536743,"domainLookupStart":312.90000009536743,"fetchStart":312.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":312.90000009536743,"responseEnd":703.6000001430511,"responseStart":703.6000001430511,"secureConnectionStart":312.90000009536743},{"duration":392.90000009536743,"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":313,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":313,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":705.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":391.7000000476837,"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":313.10000014305115,"connectEnd":313.10000014305115,"connectStart":313.10000014305115,"domainLookupEnd":313.10000014305115,"domainLookupStart":313.10000014305115,"fetchStart":313.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":313.10000014305115,"responseEnd":704.8000001907349,"responseStart":704.8000001907349,"secureConnectionStart":313.10000014305115},{"duration":573.7999999523163,"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":322.10000014305115,"connectEnd":322.10000014305115,"connectStart":322.10000014305115,"domainLookupEnd":322.10000014305115,"domainLookupStart":322.10000014305115,"fetchStart":322.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":322.10000014305115,"responseEnd":895.9000000953674,"responseStart":895.9000000953674,"secureConnectionStart":322.10000014305115},{"duration":886.9000000953674,"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":323.40000009536743,"connectEnd":323.40000009536743,"connectStart":323.40000009536743,"domainLookupEnd":323.40000009536743,"domainLookupStart":323.40000009536743,"fetchStart":323.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":323.40000009536743,"responseEnd":1210.3000001907349,"responseStart":1210.3000001907349,"secureConnectionStart":323.40000009536743},{"duration":345.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":858.5,"connectEnd":858.5,"connectStart":858.5,"domainLookupEnd":858.5,"domainLookupStart":858.5,"fetchStart":858.5,"redirectEnd":0,"redirectStart":0,"requestStart":858.5,"responseEnd":1204.3000001907349,"responseStart":1204.3000001907349,"secureConnectionStart":858.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":156,"responseStart":303,"responseEnd":323,"domLoading":307,"domInteractive":1248,"domContentLoadedEventStart":1248,"domContentLoadedEventEnd":1287,"domComplete":2196,"loadEventStart":2196,"loadEventEnd":2198,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1230.1000001430511},{"name":"bigPipe.sidebar-id.end","time":1230.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1231},{"name":"bigPipe.activity-panel-pipe-id.end","time":1233.4000000953674},{"name":"activityTabFullyLoaded","time":1295.6000001430511}],"measures":[],"correlationId":"f81c804f9426d2","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":85,"dbReadsTimeInMs":14,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}