Notes:
- There is a lot of "back and forth" in the test case with creating/dropping/renaming columns, but I can't get rid of the remaining part without having the outcome changed.
- If I add ALGORITHM=COPY to any of the ALTER statements in the test case, the crash stops happening. Explicit ALGORITHM=INSTANT or ALGORITHM=INPLACE don't seem to change the outcome.
- The test case is concurrent and hence should be non-deterministic. It fails every time for me, but if it doesn't for you, try to run with --repeat.
--source include/have_innodb.inc
|
|
--connect (con1,localhost,root,,test)
|
--connection default
|
CREATE TABLE t1 (f GEOMETRY DEFAULT POINT(0,0), a INT, b INT, c INT, col INT) ENGINE=InnoDB;
|
ALTER TABLE t1 DROP COLUMN a;
|
ALTER TABLE t1 DROP COLUMN c;
|
ALTER TABLE t1 DROP COLUMN b;
|
ALTER TABLE t1 CHANGE COLUMN col b INT;
|
ALTER TABLE t1 ADD COLUMN col INT;
|
ALTER TABLE t1 DROP COLUMN b;
|
ALTER TABLE t1 CHANGE COLUMN col b INT;
|
ALTER TABLE t1 ADD COLUMN col INT;
|
ALTER TABLE t1 DROP COLUMN b ;
|
ALTER TABLE t1 CHANGE COLUMN col b INT;
|
INSERT INTO t1 () VALUES ();
|
|
SET SQL_MODE= '';
|
--send
|
ALTER TABLE t1 ADD PRIMARY KEY(b);
|
|
--connection con1
|
PREPARE stmt FROM 'UPDATE t1 SET b = 1';
|
EXECUTE stmt;
|
|
# Cleanup
|
DEALLOCATE PREPARE stmt;
|
--disconnect con1
|
|
--connection default
|
--reap
|
DROP TABLE t1;
|
10.4 574354a6
|
mysqld: /data/src/10.4/storage/innobase/row/row0log.cc:2121: dberr_t row_log_table_apply_update(que_thr_t*, ulint, const mrec_t*, const offset_t*, mem_heap_t*, mem_heap_t*, row_merge_dup_t*, const dtuple_t*): Assertion `log->blobs' failed.
|
200204 14:18:35 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f0d897a5f12 in __GI___assert_fail (assertion=0x5562839cee4a "log->blobs", file=0x5562839ce248 "/data/src/10.4/storage/innobase/row/row0log.cc", line=2121, function=0x5562839d1f40 <row_log_table_apply_update(que_thr_t*, unsigned long, unsigned char const*, unsigned short const*, mem_block_info_t*, mem_block_info_t*, row_merge_dup_t*, dtuple_t const*)::__PRETTY_FUNCTION__> "dberr_t row_log_table_apply_update(que_thr_t*, ulint, const mrec_t*, const offset_t*, mem_heap_t*, mem_heap_t*, row_merge_dup_t*, const dtuple_t*)") at assert.c:101
|
#8 0x00005562831a3c54 in row_log_table_apply_update (thr=0x7f0d381ae4a8, new_trx_id_col=1, mrec=0x7f0d7e8fe016 "", offsets=0x7f0d381a24e0, offsets_heap=0x7f0d381d7460, heap=0x7f0d381d33d0, dup=0x7f0d8414bcf0, old_pk=0x7f0d381d3458) at /data/src/10.4/storage/innobase/row/row0log.cc:2121
|
#9 0x00005562831a5dcb in row_log_table_apply_op (thr=0x7f0d381ae4a8, new_trx_id_col=1, dup=0x7f0d8414bcf0, error=0x7f0d8414ba6c, offsets_heap=0x7f0d381d7460, heap=0x7f0d381d33d0, mrec=0x7f0d7e8fe016 "", mrec_end=0x7f0d7e8fe045 "", offsets=0x7f0d381a24e0) at /data/src/10.4/storage/innobase/row/row0log.cc:2664
|
#10 0x00005562831a7fe1 in row_log_table_apply_ops (thr=0x7f0d381ae4a8, dup=0x7f0d8414bcf0, stage=0x7f0d381b1340) at /data/src/10.4/storage/innobase/row/row0log.cc:3037
|
#11 0x00005562831a873d in row_log_table_apply (thr=0x7f0d381ae4a8, old_table=0x7f0d3800be58, table=0x7f0d8414c800, stage=0x7f0d381b1340, new_table=0x7f0d381aed98) at /data/src/10.4/storage/innobase/row/row0log.cc:3143
|
#12 0x000055628302ded0 in ha_innobase::inplace_alter_table (this=0x7f0d38066ed8, altered_table=0x7f0d8414c800, ha_alter_info=0x7f0d8414c770) at /data/src/10.4/storage/innobase/handler/handler0alter.cc:8379
|
#13 0x0000556282b2d9ff in handler::ha_inplace_alter_table (this=0x7f0d38066ed8, altered_table=0x7f0d8414c800, ha_alter_info=0x7f0d8414c770) at /data/src/10.4/sql/handler.h:4361
|
#14 0x0000556282b21a91 in mysql_inplace_alter_table (thd=0x7f0d38000af0, table_list=0x7f0d38013288, table=0x7f0d38066070, altered_table=0x7f0d8414c800, ha_alter_info=0x7f0d8414c770, inplace_supported=HA_ALTER_INPLACE_COPY_NO_LOCK, target_mdl_request=0x7f0d8414d5d0, alter_ctx=0x7f0d8414e100) at /data/src/10.4/sql/sql_table.cc:7725
|
#15 0x0000556282b28953 in mysql_alter_table (thd=0x7f0d38000af0, new_db=0x7f0d380052b0, new_name=0x7f0d380056b8, create_info=0x7f0d8414ecf0, table_list=0x7f0d38013288, alter_info=0x7f0d8414ec30, order_num=0, order=0x0, ignore=false) at /data/src/10.4/sql/sql_table.cc:10119
|
#16 0x0000556282bc0a47 in Sql_cmd_alter_table::execute (this=0x7f0d38013a18, thd=0x7f0d38000af0) at /data/src/10.4/sql/sql_alter.cc:508
|
#17 0x0000556282a3f221 in mysql_execute_command (thd=0x7f0d38000af0) at /data/src/10.4/sql/sql_parse.cc:6102
|
#18 0x0000556282a448e3 in mysql_parse (thd=0x7f0d38000af0, rawbuf=0x7f0d38013198 "ALTER TABLE t1 ADD PRIMARY KEY(b)", length=33, parser_state=0x7f0d84150160, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:7901
|
#19 0x0000556282a2fab0 in dispatch_command (command=COM_QUERY, thd=0x7f0d38000af0, packet=0x7f0d381371b1 "ALTER TABLE t1 ADD PRIMARY KEY(b)", packet_length=33, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1842
|
#20 0x0000556282a2e13d in do_command (thd=0x7f0d38000af0) at /data/src/10.4/sql/sql_parse.cc:1360
|
#21 0x0000556282bb7357 in do_handle_one_connection (connect=0x556285d28b80) at /data/src/10.4/sql/sql_connect.cc:1412
|
#22 0x0000556282bb70a6 in handle_one_connection (arg=0x556285d28b80) at /data/src/10.4/sql/sql_connect.cc:1316
|
#23 0x00005562835bfb45 in pfs_spawn_thread (arg=0x556285c47b30) at /data/src/10.4/storage/perfschema/pfs.cc:1869
|
#24 0x00007f0d8b72e4a4 in start_thread (arg=0x7f0d84151700) at pthread_create.c:456
|
#25 0x00007f0d89862d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
|
Reproducible on 10.4 and 10.5.
Not reproducible on 10.3 with the provided test case (although I do have a record of a similar failure on a 10.3 build).
Only reproducible with UPDATE executed as a prepared statement.
Non-debug build doesn't crash, but it produces an error which I wouldn't expect:
mysqltest: At line 31: query 'reap' failed: 1062: Duplicate entry '0' for key 'PRIMARY'
|
The table only has one row, so duplicate key error doesn't make sense to me.
{"report":{"fcp":890.8000001907349,"ttfb":233.40000009536743,"pageVisibility":"visible","entityId":82951,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"83533b36-bf2b-43b5-bfdf-4e94b8e35341","navigationType":0,"readyForUser":982.1000003814697,"redirectCount":0,"resourceLoadedEnd":1154,"resourceLoadedStart":243.2000002861023,"resourceTiming":[{"duration":159.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":243.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":243.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":402.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":159.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":243.60000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":243.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":402.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":186.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":243.7000002861023,"connectEnd":243.7000002861023,"connectStart":243.7000002861023,"domainLookupEnd":243.7000002861023,"domainLookupStart":243.7000002861023,"fetchStart":243.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":243.7000002861023,"responseEnd":430.6000003814697,"responseStart":430.6000003814697,"secureConnectionStart":243.7000002861023},{"duration":267.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":243.90000009536743,"connectEnd":243.90000009536743,"connectStart":243.90000009536743,"domainLookupEnd":243.90000009536743,"domainLookupStart":243.90000009536743,"fetchStart":243.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":243.90000009536743,"responseEnd":511.5,"responseStart":511.5,"secureConnectionStart":243.90000009536743},{"duration":271.19999980926514,"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":244.10000038146973,"connectEnd":244.10000038146973,"connectStart":244.10000038146973,"domainLookupEnd":244.10000038146973,"domainLookupStart":244.10000038146973,"fetchStart":244.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":244.10000038146973,"responseEnd":515.3000001907349,"responseStart":515.3000001907349,"secureConnectionStart":244.10000038146973},{"duration":271.5,"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":244.30000019073486,"connectEnd":244.30000019073486,"connectStart":244.30000019073486,"domainLookupEnd":244.30000019073486,"domainLookupStart":244.30000019073486,"fetchStart":244.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":244.30000019073486,"responseEnd":515.8000001907349,"responseStart":515.8000001907349,"secureConnectionStart":244.30000019073486},{"duration":271.7000002861023,"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":244.40000009536743,"connectEnd":244.40000009536743,"connectStart":244.40000009536743,"domainLookupEnd":244.40000009536743,"domainLookupStart":244.40000009536743,"fetchStart":244.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":244.40000009536743,"responseEnd":516.1000003814697,"responseStart":516.1000003814697,"secureConnectionStart":244.40000009536743},{"duration":329.09999990463257,"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":244.60000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":244.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":573.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":271.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":244.80000019073486,"connectEnd":244.80000019073486,"connectStart":244.80000019073486,"domainLookupEnd":244.80000019073486,"domainLookupStart":244.80000019073486,"fetchStart":244.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":244.80000019073486,"responseEnd":516.6000003814697,"responseStart":516.6000003814697,"secureConnectionStart":244.80000019073486},{"duration":328.90000009536743,"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":245,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":245,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":573.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":272.09999990463257,"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":245.10000038146973,"connectEnd":245.10000038146973,"connectStart":245.10000038146973,"domainLookupEnd":245.10000038146973,"domainLookupStart":245.10000038146973,"fetchStart":245.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":245.10000038146973,"responseEnd":517.2000002861023,"responseStart":517.2000002861023,"secureConnectionStart":245.10000038146973},{"duration":427.19999980926514,"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":246.10000038146973,"connectEnd":246.10000038146973,"connectStart":246.10000038146973,"domainLookupEnd":246.10000038146973,"domainLookupStart":246.10000038146973,"fetchStart":246.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":246.10000038146973,"responseEnd":673.3000001907349,"responseStart":673.3000001907349,"secureConnectionStart":246.10000038146973},{"duration":872,"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":251.10000038146973,"connectEnd":251.10000038146973,"connectStart":251.10000038146973,"domainLookupEnd":251.10000038146973,"domainLookupStart":251.10000038146973,"fetchStart":251.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":251.10000038146973,"responseEnd":1123.1000003814697,"responseStart":1123.1000003814697,"secureConnectionStart":251.10000038146973},{"duration":88.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":585.3000001907349,"connectEnd":585.3000001907349,"connectStart":585.3000001907349,"domainLookupEnd":585.3000001907349,"domainLookupStart":585.3000001907349,"fetchStart":585.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":585.3000001907349,"responseEnd":673.9000000953674,"responseStart":673.9000000953674,"secureConnectionStart":585.3000001907349},{"duration":310.5,"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","startTime":843.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":843.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1154,"responseStart":0,"secureConnectionStart":0},{"duration":286.5,"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","startTime":844.4000000953674,"connectEnd":844.4000000953674,"connectStart":844.4000000953674,"domainLookupEnd":844.4000000953674,"domainLookupStart":844.4000000953674,"fetchStart":844.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":844.4000000953674,"responseEnd":1130.9000000953674,"responseStart":1130.9000000953674,"secureConnectionStart":844.4000000953674},{"duration":292.59999990463257,"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","startTime":844.7000002861023,"connectEnd":844.7000002861023,"connectStart":844.7000002861023,"domainLookupEnd":844.7000002861023,"domainLookupStart":844.7000002861023,"fetchStart":844.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":844.7000002861023,"responseEnd":1137.3000001907349,"responseStart":1137.3000001907349,"secureConnectionStart":844.7000002861023},{"duration":342,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":883,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":883,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1225,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":49,"responseStart":233,"responseEnd":243,"domLoading":240,"domInteractive":1167,"domContentLoadedEventStart":1167,"domContentLoadedEventEnd":1221,"domComplete":1517,"loadEventStart":1517,"loadEventEnd":1518,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1124.8000001907349},{"name":"bigPipe.sidebar-id.end","time":1125.6000003814697},{"name":"bigPipe.activity-panel-pipe-id.start","time":1125.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1131.3000001907349},{"name":"activityTabFullyLoaded","time":1237.1000003814697}],"measures":[],"correlationId":"dbbc97eb3c634b","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":113,"dbReadsTimeInMs":11,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
The test case below is almost identical to the one in the description, with the only difference being the datatype of the first column. It causes a different assertion failure.
--source include/have_innodb.inc
--connect (con1,localhost,root,,test)
--connection default
--send
--connection con1
# Cleanup
--disconnect con1
--connection default
--reap
10.4 574354a6
mysqld: /data/src/10.4/storage/innobase/row/row0log.cc:2638: const mrec_t* row_log_table_apply_op(que_thr_t*, ulint, row_merge_dup_t*, dberr_t*, mem_heap_t*, mem_heap_t*, const mrec_t*, const mrec_t*, offset_t*): Assertion `extra_size || !is_instant' failed.
#7 0x00007f6f39b0af12 in __GI___assert_fail (assertion=0x5562cc07a1c3 "extra_size || !is_instant", file=0x5562cc079248 "/data/src/10.4/storage/innobase/row/row0log.cc", line=2638, function=0x5562cc07d060 <row_log_table_apply_op(que_thr_t*, unsigned long, row_merge_dup_t*, dberr_t*, mem_block_info_t*, mem_block_info_t*, unsigned char const*, unsigned char const*, unsigned short*)::__PRETTY_FUNCTION__> "const mrec_t* row_log_table_apply_op(que_thr_t*, ulint, row_merge_dup_t*, dberr_t*, mem_heap_t*, mem_heap_t*, const mrec_t*, const mrec_t*, offset_t*)") at assert.c:101
#8 0x00005562cb850c18 in row_log_table_apply_op (thr=0x7f6ee41b5fd8, new_trx_id_col=1, dup=0x7f6f340afcf0, error=0x7f6f340afa6c, offsets_heap=0x7f6ee41defc0, heap=0x7f6ee41daf30, mrec=0x7f6f2ecff015 "", mrec_end=0x7f6f2ecff02f "", offsets=0x7f6ee4068170) at /data/src/10.4/storage/innobase/row/row0log.cc:2638
#9 0x00005562cb852fe1 in row_log_table_apply_ops (thr=0x7f6ee41b5fd8, dup=0x7f6f340afcf0, stage=0x7f6ee41b8e00) at /data/src/10.4/storage/innobase/row/row0log.cc:3037
#10 0x00005562cb85373d in row_log_table_apply (thr=0x7f6ee41b5fd8, old_table=0x7f6ee400b598, table=0x7f6f340b0800, stage=0x7f6ee41b8e00, new_table=0x7f6ee41b6958) at /data/src/10.4/storage/innobase/row/row0log.cc:3143
#11 0x00005562cb6d8ed0 in ha_innobase::inplace_alter_table (this=0x7f6ee4064c28, altered_table=0x7f6f340b0800, ha_alter_info=0x7f6f340b0770) at /data/src/10.4/storage/innobase/handler/handler0alter.cc:8379
#12 0x00005562cb1d89ff in handler::ha_inplace_alter_table (this=0x7f6ee4064c28, altered_table=0x7f6f340b0800, ha_alter_info=0x7f6f340b0770) at /data/src/10.4/sql/handler.h:4361
#13 0x00005562cb1cca91 in mysql_inplace_alter_table (thd=0x7f6ee4000af0, table_list=0x7f6ee4013290, table=0x7f6ee4063dc0, altered_table=0x7f6f340b0800, ha_alter_info=0x7f6f340b0770, inplace_supported=HA_ALTER_INPLACE_COPY_NO_LOCK, target_mdl_request=0x7f6f340b15d0, alter_ctx=0x7f6f340b2100) at /data/src/10.4/sql/sql_table.cc:7725
#14 0x00005562cb1d3953 in mysql_alter_table (thd=0x7f6ee4000af0, new_db=0x7f6ee40052b0, new_name=0x7f6ee40056b8, create_info=0x7f6f340b2cf0, table_list=0x7f6ee4013290, alter_info=0x7f6f340b2c30, order_num=0, order=0x0, ignore=false) at /data/src/10.4/sql/sql_table.cc:10119
#15 0x00005562cb26ba47 in Sql_cmd_alter_table::execute (this=0x7f6ee4013a20, thd=0x7f6ee4000af0) at /data/src/10.4/sql/sql_alter.cc:508
#16 0x00005562cb0ea221 in mysql_execute_command (thd=0x7f6ee4000af0) at /data/src/10.4/sql/sql_parse.cc:6102
#17 0x00005562cb0ef8e3 in mysql_parse (thd=0x7f6ee4000af0, rawbuf=0x7f6ee4013198 "ALTER TABLE t1 ADD PRIMARY KEY ( col2 )", length=39, parser_state=0x7f6f340b4160, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:7901
#18 0x00005562cb0daab0 in dispatch_command (command=COM_QUERY, thd=0x7f6ee4000af0, packet=0x7f6ee41371b1 "ALTER TABLE t1 ADD PRIMARY KEY ( col2 ) ", packet_length=40, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1842
#19 0x00005562cb0d913d in do_command (thd=0x7f6ee4000af0) at /data/src/10.4/sql/sql_parse.cc:1360
#20 0x00005562cb262357 in do_handle_one_connection (connect=0x5562ce2f9850) at /data/src/10.4/sql/sql_connect.cc:1412
#21 0x00005562cb2620a6 in handle_one_connection (arg=0x5562ce2f9850) at /data/src/10.4/sql/sql_connect.cc:1316
#22 0x00005562cbc6ab45 in pfs_spawn_thread (arg=0x5562ce218800) at /data/src/10.4/storage/perfschema/pfs.cc:1869
#23 0x00007f6f3ba934a4 in start_thread (arg=0x7f6f340b5700) at pthread_create.c:456
#24 0x00007f6f39bc7d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97