--source include/have_innodb.inc
|
--source include/have_sequence.inc
|
|
CREATE TABLE t1 (a INT NOT NULL, UNIQUE KEY (a)) ENGINE=InnoDB;
|
INSERT INTO t1 SELECT seq FROM seq_1_to_128;
|
ALTER TABLE t1 ADD b TINYINT NOT NULL AUTO_INCREMENT PRIMARY KEY;
|
|
# Cleanup
|
DROP TABLE t1;
|
10.4 debug a17a327f
|
mysqld: /data/src/10.4/storage/innobase/btr/btr0bulk.cc:195: void PageBulk::insert(const rec_t*, offset_t*): Assertion `cmp_rec_rec(rec, old_rec, offsets, old_offsets, m_index) > 0' failed.
|
200227 18:45:15 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f48b6bb5f12 in __GI___assert_fail (assertion=0x55d3e8c20770 "cmp_rec_rec(rec, old_rec, offsets, old_offsets, m_index) > 0", file=0x55d3e8c206c0 "/data/src/10.4/storage/innobase/btr/btr0bulk.cc", line=195, function=0x55d3e8c215a0 <PageBulk::insert(unsigned char const*, unsigned short*)::__PRETTY_FUNCTION__> "void PageBulk::insert(const rec_t*, offset_t*)") at assert.c:101
|
#8 0x000055d3e849446b in PageBulk::insert (this=0x7f486007c8e0, rec=0x7f486007fc0d "", offsets=0x7f486007fc20) at /data/src/10.4/storage/innobase/btr/btr0bulk.cc:195
|
#9 0x000055d3e8496a5c in BtrBulk::insert (this=0x7f48600a07d0, tuple=0x7f48605d8370, level=0) at /data/src/10.4/storage/innobase/btr/btr0bulk.cc:939
|
#10 0x000055d3e83457a2 in BtrBulk::insert (this=0x7f48600a07d0, tuple=0x7f48605d8370) at /data/src/10.4/storage/innobase/include/btr0bulk.h:310
|
#11 0x000055d3e837cd68 in row_merge_insert_index_tuples (index=0x7f4860074a30, old_table=0x7f486000ba10, fd=..., block=0x0, row_buf=0x7f4860074140, btr_bulk=0x7f48600a07d0, table_total_rows=128, pct_progress=0, pct_cost=33.333333333333336, crypt_block=0x0, space=6, stage=0x0) at /data/src/10.4/storage/innobase/row/row0merge.cc:3669
|
#12 0x000055d3e83791b9 in row_merge_read_clustered_index (trx=0x7f48b09f7140, table=0x7f48b015a800, old_table=0x7f486000ba10, new_table=0x7f4860070b90, online=false, index=0x7f48600704f8, fts_sort_idx=0x0, psort_info=0x0, files=0x7f486009a5c0, key_numbers=0x7f4860070508, n_index=2, defaults=0x7f4860070568, add_v=0x0, col_map=0x7f4860070628, add_autoinc=1, sequence=..., block=0x7f489c4f9000 <error: Cannot access memory at address 0x7f489c4f9000>, skip_pk_sort=true, tmpfd=0x7f48b0159910, stage=0x7f4860074e70, pct_cost=33.333333333333336, crypt_block=0x0, eval_table=0x7f48b015a800, allow_not_null=false) at /data/src/10.4/storage/innobase/row/row0merge.cc:2519
|
#13 0x000055d3e8380112 in row_merge_build_indexes (trx=0x7f48b09f7140, old_table=0x7f486000ba10, new_table=0x7f4860070b90, online=false, indexes=0x7f48600704f8, key_numbers=0x7f4860070508, n_indexes=2, table=0x7f48b015a800, defaults=0x7f4860070568, col_map=0x7f4860070628, add_autoinc=1, sequence=..., skip_pk_sort=true, stage=0x7f4860074e70, add_v=0x0, eval_table=0x7f48b015a800, allow_not_null=false) at /data/src/10.4/storage/innobase/row/row0merge.cc:4709
|
#14 0x000055d3e8231c62 in ha_innobase::inplace_alter_table (this=0x7f48601a0328, altered_table=0x7f48b015a800, ha_alter_info=0x7f48b015a770) at /data/src/10.4/storage/innobase/handler/handler0alter.cc:8370
|
#15 0x000055d3e7d30fe9 in handler::ha_inplace_alter_table (this=0x7f48601a0328, altered_table=0x7f48b015a800, ha_alter_info=0x7f48b015a770) at /data/src/10.4/sql/handler.h:4368
|
#16 0x000055d3e7d2507a in mysql_inplace_alter_table (thd=0x7f4860000af0, table_list=0x7f48600132c8, table=0x7f486019ca80, altered_table=0x7f48b015a800, ha_alter_info=0x7f48b015a770, inplace_supported=HA_ALTER_INPLACE_COPY_LOCK, target_mdl_request=0x7f48b015b5d0, alter_ctx=0x7f48b015c100) at /data/src/10.4/sql/sql_table.cc:7717
|
#17 0x000055d3e7d2bf3c in mysql_alter_table (thd=0x7f4860000af0, new_db=0x7f48600052b0, new_name=0x7f48600056b8, create_info=0x7f48b015ccf0, table_list=0x7f48600132c8, alter_info=0x7f48b015cc30, order_num=0, order=0x0, ignore=false) at /data/src/10.4/sql/sql_table.cc:10111
|
#18 0x000055d3e7dc4033 in Sql_cmd_alter_table::execute (this=0x7f4860013b70, thd=0x7f4860000af0) at /data/src/10.4/sql/sql_alter.cc:508
|
#19 0x000055d3e7c427a5 in mysql_execute_command (thd=0x7f4860000af0) at /data/src/10.4/sql/sql_parse.cc:6101
|
#20 0x000055d3e7c47e67 in mysql_parse (thd=0x7f4860000af0, rawbuf=0x7f4860013198 "ALTER TABLE t1 ADD b TINYINT NOT NULL AUTO_INCREMENT PRIMARY KEY", length=64, parser_state=0x7f48b015e160, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:7900
|
#21 0x000055d3e7c3304a in dispatch_command (command=COM_QUERY, thd=0x7f4860000af0, packet=0x7f48601371f1 "ALTER TABLE t1 ADD b TINYINT NOT NULL AUTO_INCREMENT PRIMARY KEY", packet_length=64, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1842
|
#22 0x000055d3e7c316d7 in do_command (thd=0x7f4860000af0) at /data/src/10.4/sql/sql_parse.cc:1360
|
#23 0x000055d3e7dba943 in do_handle_one_connection (connect=0x55d3ea767060) at /data/src/10.4/sql/sql_connect.cc:1412
|
#24 0x000055d3e7dba692 in handle_one_connection (arg=0x55d3ea767060) at /data/src/10.4/sql/sql_connect.cc:1316
|
#25 0x000055d3e87c1585 in pfs_spawn_thread (arg=0x55d3ea6d1670) at /data/src/10.4/storage/perfschema/pfs.cc:1869
|
#26 0x00007f48b8b3e4a4 in start_thread (arg=0x7f48b015f700) at pthread_create.c:456
|
#27 0x00007f48b6c72d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
|
Reproducible with 10.2-10.5.
Non-debug build doesn't crash, but the behavior is questionable: INSERT works without errors or warnings, for the last row auto-increment rotates and -128 is inserted.
This part is reproducible with 10.1 as well.
MySQL 5.6/5.7 throws an error.
{"report":{"fcp":1293,"ttfb":378.90000009536743,"pageVisibility":"visible","entityId":63692,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"9afd0379-06b8-4298-a286-7c6f653d9de8","navigationType":0,"readyForUser":1378,"redirectCount":0,"resourceLoadedEnd":1472.7000000476837,"resourceLoadedStart":384.2999999523163,"resourceTiming":[{"duration":404,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":384.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":384.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":788.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":404.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":384.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":384.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":788.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":413.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":384.7000000476837,"connectEnd":384.7000000476837,"connectStart":384.7000000476837,"domainLookupEnd":384.7000000476837,"domainLookupStart":384.7000000476837,"fetchStart":384.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":384.7000000476837,"responseEnd":798.0999999046326,"responseStart":798.0999999046326,"secureConnectionStart":384.7000000476837},{"duration":514.9000000953674,"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":385,"connectEnd":385,"connectStart":385,"domainLookupEnd":385,"domainLookupStart":385,"fetchStart":385,"redirectEnd":0,"redirectStart":0,"requestStart":385,"responseEnd":899.9000000953674,"responseStart":899.9000000953674,"secureConnectionStart":385},{"duration":518.9000000953674,"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":385.09999990463257,"connectEnd":385.09999990463257,"connectStart":385.09999990463257,"domainLookupEnd":385.09999990463257,"domainLookupStart":385.09999990463257,"fetchStart":385.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":385.09999990463257,"responseEnd":904,"responseStart":904,"secureConnectionStart":385.09999990463257},{"duration":519.1000001430511,"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":385.2999999523163,"connectEnd":385.2999999523163,"connectStart":385.2999999523163,"domainLookupEnd":385.2999999523163,"domainLookupStart":385.2999999523163,"fetchStart":385.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":385.2999999523163,"responseEnd":904.4000000953674,"responseStart":904.4000000953674,"secureConnectionStart":385.2999999523163},{"duration":519.2999999523163,"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":385.5,"connectEnd":385.5,"connectStart":385.5,"domainLookupEnd":385.5,"domainLookupStart":385.5,"fetchStart":385.5,"redirectEnd":0,"redirectStart":0,"requestStart":385.5,"responseEnd":904.7999999523163,"responseStart":904.7999999523163,"secureConnectionStart":385.5},{"duration":559.7000000476837,"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":385.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":385.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":945.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":519.1999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":385.90000009536743,"connectEnd":385.90000009536743,"connectStart":385.90000009536743,"domainLookupEnd":385.90000009536743,"domainLookupStart":385.90000009536743,"fetchStart":385.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":385.90000009536743,"responseEnd":905.0999999046326,"responseStart":905.0999999046326,"secureConnectionStart":385.90000009536743},{"duration":559.7000000476837,"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":386,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":386,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":945.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":519.5,"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":386.2000000476837,"connectEnd":386.2000000476837,"connectStart":386.2000000476837,"domainLookupEnd":386.2000000476837,"domainLookupStart":386.2000000476837,"fetchStart":386.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":386.2000000476837,"responseEnd":905.7000000476837,"responseStart":905.7000000476837,"secureConnectionStart":386.2000000476837},{"duration":798.6999998092651,"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":386.90000009536743,"connectEnd":386.90000009536743,"connectStart":386.90000009536743,"domainLookupEnd":386.90000009536743,"domainLookupStart":386.90000009536743,"fetchStart":386.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":386.90000009536743,"responseEnd":1185.5999999046326,"responseStart":1185.5999999046326,"secureConnectionStart":386.90000009536743},{"duration":1065.4000000953674,"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":387,"connectEnd":387,"connectStart":387,"domainLookupEnd":387,"domainLookupStart":387,"fetchStart":387,"redirectEnd":0,"redirectStart":0,"requestStart":387,"responseEnd":1452.4000000953674,"responseStart":1452.4000000953674,"secureConnectionStart":387},{"duration":237.20000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":957.5999999046326,"connectEnd":957.5999999046326,"connectStart":957.5999999046326,"domainLookupEnd":957.5999999046326,"domainLookupStart":957.5999999046326,"fetchStart":957.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":957.5999999046326,"responseEnd":1194.7999999523163,"responseStart":1194.7999999523163,"secureConnectionStart":957.5999999046326},{"duration":229.20000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/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&whisper-enabled=true","startTime":1243.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1243.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1472.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":228.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1243.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1243.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1472.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":232.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/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&whisper-enabled=true","startTime":1244.7999999523163,"connectEnd":1244.7999999523163,"connectStart":1244.7999999523163,"domainLookupEnd":1244.7999999523163,"domainLookupStart":1244.7999999523163,"fetchStart":1244.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1244.7999999523163,"responseEnd":1477.2000000476837,"responseStart":1477.2000000476837,"secureConnectionStart":1244.7999999523163},{"duration":271.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/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&whisper-enabled=true","startTime":1245.2000000476837,"connectEnd":1245.2000000476837,"connectStart":1245.2000000476837,"domainLookupEnd":1245.2000000476837,"domainLookupStart":1245.2000000476837,"fetchStart":1245.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1245.2000000476837,"responseEnd":1516.5999999046326,"responseStart":1516.5999999046326,"secureConnectionStart":1245.2000000476837},{"duration":280.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/e0bf5781d46ea69fb123572974cf39de-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/js/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":1245.5,"connectEnd":1245.5,"connectStart":1245.5,"domainLookupEnd":1245.5,"domainLookupStart":1245.5,"fetchStart":1245.5,"redirectEnd":0,"redirectStart":0,"requestStart":1245.5,"responseEnd":1526.0999999046326,"responseStart":1526.0999999046326,"secureConnectionStart":1245.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":216,"responseStart":379,"responseEnd":381,"domLoading":382,"domInteractive":1475,"domContentLoadedEventStart":1475,"domContentLoadedEventEnd":1518,"domComplete":1816,"loadEventStart":1816,"loadEventEnd":1817,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1454.2999999523163},{"name":"bigPipe.sidebar-id.end","time":1455.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1455.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1456.4000000953674},{"name":"activityTabFullyLoaded","time":1534.4000000953674}],"measures":[],"correlationId":"f32e7f4165ad42","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":100,"dbReadsTimeInMs":18,"dbConnsTimeInMs":27,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}