--source include/have_innodb.inc
|
|
create table t1 ( a bit(15), va bit(10) generated always as (a),pk int, primary key (pk), unique key (va)) engine=innodb;
|
|
insert ignore into t1 values ( '\r1','a',1);
|
replace into t1 (pk) values (1);
|
10.2 273d8eb12c40a6dc
|
#3 <signal handler called>
|
#4 0x00007f369b694428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
|
#5 0x00007f369b69602a in __GI_abort () at abort.c:89
|
#6 0x00007f369b68cbd7 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x560a446b8248 "btr_validate_index(index, 0, false)", file=file@entry=0x560a446b7cc8 "/10.2/storage/innobase/row/row0upd.cc", line=line@entry=2440, function=function@entry=0x560a446bae00 <row_upd_sec_index_entry(upd_node_t*, que_thr_t*)::__PRETTY_FUNCTION__> "dberr_t row_upd_sec_index_entry(upd_node_t*, que_thr_t*)") at assert.c:92
|
#7 0x00007f369b68cc82 in __GI___assert_fail (assertion=0x560a446b8248 "btr_validate_index(index, 0, false)", file=0x560a446b7cc8 "/10.2/storage/innobase/row/row0upd.cc", line=2440, function=0x560a446bae00 <row_upd_sec_index_entry(upd_node_t*, que_thr_t*)::__PRETTY_FUNCTION__> "dberr_t row_upd_sec_index_entry(upd_node_t*, que_thr_t*)") at assert.c:101
|
#8 0x0000560a441b35e0 in row_upd_sec_index_entry (node=0x7f3640186a50, thr=0x7f3640084fa8) at /10.2/storage/innobase/row/row0upd.cc:2440
|
#9 0x0000560a441b3c7f in row_upd_sec_step (node=0x7f3640186a50, thr=0x7f3640084fa8) at /10.2/storage/innobase/row/row0upd.cc:2554
|
#10 0x0000560a441b5ef9 in row_upd (node=0x7f3640186a50, thr=0x7f3640084fa8) at /10.2/storage/innobase/row/row0upd.cc:3310
|
#11 0x0000560a441b624b in row_upd_step (thr=0x7f3640084fa8) at /10.2/storage/innobase/row/row0upd.cc:3427
|
#12 0x0000560a4415e8ad in row_update_for_mysql (prebuilt=0x7f3640185f08) at /10.2/storage/innobase/row/row0mysql.cc:1828
|
#13 0x0000560a44023b91 in ha_innobase::delete_row (this=0x7f36401850c8, record=0x7f364000a5e0 "\241\r1\001") at /10.2/storage/innobase/handler/ha_innodb.cc:9136
|
#14 0x0000560a43ce7516 in handler::ha_delete_row (this=0x7f36401850c8, buf=0x7f364000a5e0 "\241\r1\001") at /10.2/sql/handler.cc:6149
|
#15 0x0000560a43a347fe in write_record (thd=0x7f3640000b00, table=0x7f36400099c0, info=0x7f368c4fa360) at /10.2/sql/sql_insert.cc:1905
|
#16 0x0000560a43a323f6 in mysql_insert (thd=0x7f3640000b00, table_list=0x7f3640012550, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_REPLACE, ignore=false) at /10.2/sql/sql_insert.cc:1066
|
#17 0x0000560a43a59414 in mysql_execute_command (thd=0x7f3640000b00) at /10.2/sql/sql_parse.cc:4167
|
#18 0x0000560a43a64bc9 in mysql_parse (thd=0x7f3640000b00, rawbuf=0x7f3640012468 "replace into t1 (pk) values (1)", length=31, parser_state=0x7f368c4fb080, is_com_multi=false, is_next_command=false) at /10.2/sql/sql_parse.cc:7759
|
#19 0x0000560a43a52e8c in dispatch_command (command=COM_QUERY, thd=0x7f3640000b00, packet=0x7f3640096131 "replace into t1 (pk) values (1)", packet_length=31, is_com_multi=false, is_next_command=false) at /10.2/sql/sql_parse.cc:1831
|
#20 0x0000560a43a517a0 in do_command (thd=0x7f3640000b00) at /10.2/sql/sql_parse.cc:1385
|
#21 0x0000560a43ba7795 in do_handle_one_connection (connect=0x560a465941d0) at /10.2/sql/sql_connect.cc:1336
|
#22 0x0000560a43ba7500 in handle_one_connection (arg=0x560a465941d0) at /10.2/sql/sql_connect.cc:1241
|
#23 0x0000560a443d4168 in pfs_spawn_thread (arg=0x560a4659efc0) at /10.2/storage/perfschema/pfs.cc:1862
|
#24 0x00007f369c2d16ba in start_thread (arg=0x7f368c4fc700) at pthread_create.c:333
|
#25 0x00007f369b76641d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
|
|
{"report":{"fcp":934.1999999880791,"ttfb":274.80000001192093,"pageVisibility":"visible","entityId":79044,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"8afa7eea-c279-4eae-833f-4f4c5f366f29","navigationType":0,"readyForUser":1026.5,"redirectCount":0,"resourceLoadedEnd":1061.199999988079,"resourceLoadedStart":279.80000001192093,"resourceTiming":[{"duration":150.89999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":279.80000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":279.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":430.69999998807907,"responseStart":0,"secureConnectionStart":0},{"duration":150.9000000357628,"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":280.0999999642372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":280.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":431,"responseStart":0,"secureConnectionStart":0},{"duration":159.19999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":280.30000001192093,"connectEnd":280.30000001192093,"connectStart":280.30000001192093,"domainLookupEnd":280.30000001192093,"domainLookupStart":280.30000001192093,"fetchStart":280.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":280.30000001192093,"responseEnd":439.5,"responseStart":439.5,"secureConnectionStart":280.30000001192093},{"duration":236.30000001192093,"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":280.5,"connectEnd":280.5,"connectStart":280.5,"domainLookupEnd":280.5,"domainLookupStart":280.5,"fetchStart":280.5,"redirectEnd":0,"redirectStart":0,"requestStart":280.5,"responseEnd":516.8000000119209,"responseStart":516.8000000119209,"secureConnectionStart":280.5},{"duration":239.60000002384186,"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":280.5999999642372,"connectEnd":280.5999999642372,"connectStart":280.5999999642372,"domainLookupEnd":280.5999999642372,"domainLookupStart":280.5999999642372,"fetchStart":280.5999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":280.5999999642372,"responseEnd":520.1999999880791,"responseStart":520.1999999880791,"secureConnectionStart":280.5999999642372},{"duration":239.79999995231628,"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":280.80000001192093,"connectEnd":280.80000001192093,"connectStart":280.80000001192093,"domainLookupEnd":280.80000001192093,"domainLookupStart":280.80000001192093,"fetchStart":280.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":280.80000001192093,"responseEnd":520.5999999642372,"responseStart":520.5999999642372,"secureConnectionStart":280.80000001192093},{"duration":239.89999997615814,"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":281,"connectEnd":281,"connectStart":281,"domainLookupEnd":281,"domainLookupStart":281,"fetchStart":281,"redirectEnd":0,"redirectStart":0,"requestStart":281,"responseEnd":520.8999999761581,"responseStart":520.8999999761581,"secureConnectionStart":281},{"duration":297.30000001192093,"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":281.19999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":281.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":578.5,"responseStart":0,"secureConnectionStart":0},{"duration":240.19999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":281.39999997615814,"connectEnd":281.39999997615814,"connectStart":281.39999997615814,"domainLookupEnd":281.39999997615814,"domainLookupStart":281.39999997615814,"fetchStart":281.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":281.39999997615814,"responseEnd":521.5999999642372,"responseStart":521.5999999642372,"secureConnectionStart":281.39999997615814},{"duration":297.19999998807907,"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":281.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":281.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":578.6999999880791,"responseStart":0,"secureConnectionStart":0},{"duration":240.5,"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":281.69999998807907,"connectEnd":281.69999998807907,"connectStart":281.69999998807907,"domainLookupEnd":281.69999998807907,"domainLookupStart":281.69999998807907,"fetchStart":281.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":281.69999998807907,"responseEnd":522.1999999880791,"responseStart":522.1999999880791,"secureConnectionStart":281.69999998807907},{"duration":458.19999998807907,"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":288,"connectEnd":288,"connectStart":288,"domainLookupEnd":288,"domainLookupStart":288,"fetchStart":288,"redirectEnd":0,"redirectStart":0,"requestStart":288,"responseEnd":746.1999999880791,"responseStart":746.1999999880791,"secureConnectionStart":288},{"duration":681.1999999880791,"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":302.19999998807907,"connectEnd":302.19999998807907,"connectStart":302.19999998807907,"domainLookupEnd":302.19999998807907,"domainLookupStart":302.19999998807907,"fetchStart":302.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":302.19999998807907,"responseEnd":983.3999999761581,"responseStart":983.3999999761581,"secureConnectionStart":302.19999998807907},{"duration":156.89999997615814,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":589.6999999880791,"connectEnd":589.6999999880791,"connectStart":589.6999999880791,"domainLookupEnd":589.6999999880791,"domainLookupStart":589.6999999880791,"fetchStart":589.6999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":589.6999999880791,"responseEnd":746.5999999642372,"responseStart":746.5999999642372,"secureConnectionStart":589.6999999880791},{"duration":219.69999998807907,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/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","startTime":841.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":841.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1061.199999988079,"responseStart":0,"secureConnectionStart":0},{"duration":282,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/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","startTime":842.3000000119209,"connectEnd":842.3000000119209,"connectStart":842.3000000119209,"domainLookupEnd":842.3000000119209,"domainLookupStart":842.3000000119209,"fetchStart":842.3000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":842.3000000119209,"responseEnd":1124.300000011921,"responseStart":1124.300000011921,"secureConnectionStart":842.3000000119209},{"duration":292.30000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/f51ef5507eea4c158f257c66c93b2a3f-CDN/lu2bu7/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","startTime":842.6999999880791,"connectEnd":842.6999999880791,"connectStart":842.6999999880791,"domainLookupEnd":842.6999999880791,"domainLookupStart":842.6999999880791,"fetchStart":842.6999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":842.6999999880791,"responseEnd":1135,"responseStart":1135,"secureConnectionStart":842.6999999880791}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":39,"responseStart":275,"responseEnd":302,"domLoading":278,"domInteractive":1113,"domContentLoadedEventStart":1113,"domContentLoadedEventEnd":1167,"domComplete":1864,"loadEventStart":1864,"loadEventEnd":1865,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1078.800000011921},{"name":"bigPipe.sidebar-id.end","time":1079.5999999642372},{"name":"bigPipe.activity-panel-pipe-id.start","time":1079.800000011921},{"name":"bigPipe.activity-panel-pipe-id.end","time":1086.0999999642372},{"name":"activityTabFullyLoaded","time":1204.800000011921}],"measures":[],"correlationId":"94924d7f02d788","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":163,"dbReadsTimeInMs":40,"dbConnsTimeInMs":51,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Another script that repeats the problem:
The maximum possible value for the generated column va is 0x3FF.
This scripts inserts 0x400 to the regular column a, so 0x400 gets truncated to 0x3FF when being copied to va.
The same problem is repeatable with a simplified script: