Type:
Bug
Priority:
Major
Resolution:
Duplicate
Affects Version/s:
10.4(EOL) , 10.5 , 10.6 , 10.8(EOL) , 10.9(EOL) , 10.10(EOL) , 10.11 , 11.0(EOL) , 11.1(EOL)
SET GLOBAL innodb_default_row_format=0;
CREATE TABLE t (pk INT ,c CHAR (255),c2 CHAR (255),c3 CHAR (255),c4 CHAR (255),c5 CHAR (255),c6 CHAR (255),c7 CHAR (255),c8 CHAR (255), KEY (pk)) CHARACTER SET utf32 ENGINE=InnoDB;
CREATE TEMPORARY TABLE t (c CHAR (100)) ENGINE=InnoDB;
DROP TABLE t;
INSERT INTO t (c) VALUES (1);
ALTER TABLE t ENGINE=InnoDB;
Leads to:
10.11.3 d84a2826290d9676faebba0849d1b9fb7f5efcd8 (Debug)
mariadbd: /test/10.11_dbg/storage/innobase/row/row0merge.cc:763: ulint row_merge_buf_add(row_merge_buf_t*, dict_index_t*, const dict_table_t*, const dict_table_t*, fts_psort_t*, dtuple_t*, const row_ext_t*, bool, doc_id_t*, mem_heap_t*, dberr_t*, mem_heap_t**, TABLE*, trx_t*, const col_collations*): Assertion `index->table->not_redundant()' failed.
10.11.3 d84a2826290d9676faebba0849d1b9fb7f5efcd8 (Debug)
Core was generated by `/test/MD040423-mariadb-10.11.3-linux-x86_64-dbg/bin/mariadbd --no-defaults --co'.
Program terminated with signal SIGABRT, Aborted.
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
[Current thread is 1 (Thread 0x152164050700 (LWP 3934791))]
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x000015217b9f8859 in __GI_abort () at abort.c:79
#2 0x000015217b9f8729 in __assert_fail_base (fmt=0x15217bb8e588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55a963379a7f "index->table->not_redundant()", file=0x55a96338b170 "/test/10.11_dbg/storage/innobase/row/row0merge.cc", line=763, function=<optimized out>) at assert.c:92
#3 0x000015217ba09fd6 in __GI___assert_fail (assertion=assertion@entry=0x55a963379a7f "index->table->not_redundant()", file=file@entry=0x55a96338b170 "/test/10.11_dbg/storage/innobase/row/row0merge.cc", line=line@entry=763, function=function@entry=0x55a96338bf98 "ulint row_merge_buf_add(row_merge_buf_t*, dict_index_t*, const dict_table_t*, const dict_table_t*, fts_psort_t*, dtuple_t*, const row_ext_t*, bool, doc_id_t*, mem_heap_t*, dberr_t*, mem_heap_t**, TABL"...) at assert.c:101
#4 0x000055a962cc55f5 in row_merge_buf_add (buf=buf@entry=0x15212008bfb0, fts_index=fts_index@entry=0x0, old_table=old_table@entry=0x1521200254b0, new_table=<optimized out>, psort_info=psort_info@entry=0x0, row=row@entry=0x152120246ec8, ext=<optimized out>, history_fts=<optimized out>, doc_id=<optimized out>, conv_heap=<optimized out>, err=<optimized out>, v_heap=<optimized out>, my_table=<optimized out>, trx=<optimized out>, col_collate=<optimized out>) at /test/10.11_dbg/storage/innobase/include/dict0mem.h:1879
#5 0x000055a962cccb3b in row_merge_read_clustered_index (col_collate=0x0, allow_not_null=<optimized out>, eval_table=0x15216404beb0, crypt_block=0x0, pct_cost=<optimized out>, stage=0x152120027d80, tmpfd=0x15216404ace4, skip_pk_sort=<optimized out>, block=<optimized out>, sequence=@0x152120015768: {m_max_value = 0, m_increment = 0, m_offset = 0, m_next_value = 0, m_eof = true}, add_autoinc=18446744073709551615, col_map=0x15212008a500, add_v=0x0, defaults=0x0, n_index=2, key_numbers=0x15212008a3d8, files=0x15212008bef0, psort_info=0x0, fts_sort_idx=0x0, index=<optimized out>, online=true, new_table=<optimized out>, old_table=0x1521200254b0, table=0x15216404beb0, trx=0x152179b4ab80) at /test/10.11_dbg/storage/innobase/row/row0merge.cc:2560
#6 row_merge_build_indexes (trx=0x152179b4ab80, old_table=0x1521200254b0, new_table=0x15212002c070, online=true, indexes=0x15212008a3c8, key_numbers=0x15212008a3d8, n_indexes=2, table=0x15216404beb0, defaults=0x0, col_map=0x15212008a500, add_autoinc=18446744073709551615, sequence=@0x152120015768: {m_max_value = 0, m_increment = 0, m_offset = 0, m_next_value = 0, m_eof = true}, skip_pk_sort=true, stage=0x152120027d80, add_v=0x0, eval_table=0x15216404beb0, allow_not_null=false, col_collate=0x0) at /test/10.11_dbg/storage/innobase/row/row0merge.cc:4794
#7 0x000055a962b8f8ff in ha_innobase::inplace_alter_table (this=0x15212002dc80, altered_table=0x15216404beb0, ha_alter_info=0x15216404bdf0) at /usr/include/c++/9/bits/stl_tree.h:1043
#8 0x000055a9626434cb in handler::ha_inplace_alter_table (ha_alter_info=0x15216404bdf0, altered_table=0x15216404beb0, this=<optimized out>) at /test/10.11_dbg/sql/handler.h:4589
#9 mysql_inplace_alter_table (thd=thd@entry=0x152120000d48, table_list=0x152120013230, table=table@entry=0x15212002bbe8, altered_table=altered_table@entry=0x15216404beb0, ha_alter_info=ha_alter_info@entry=0x15216404bdf0, target_mdl_request=target_mdl_request@entry=0x15216404c690, ddl_log_state=0x15216404bd80, trigger_param=0x15216404c270, alter_ctx=0x15216404d570, partial_alter=@0x15216404bcef: false, start_alter_id=@0x15216404bcf8: 0, if_exists=false) at /test/10.11_dbg/sql/sql_table.cc:7743
#10 0x000055a9626569bc in mysql_alter_table (thd=thd@entry=0x152120000d48, new_db=new_db@entry=0x152120005858, new_name=new_name@entry=0x152120005ca0, create_info=create_info@entry=0x15216404e390, table_list=<optimized out>, table_list@entry=0x152120013230, recreate_info=recreate_info@entry=0x15216404e280, alter_info=<optimized out>, order_num=<optimized out>, order=<optimized out>, ignore=<optimized out>, if_exists=<optimized out>) at /test/10.11_dbg/sql/sql_table.cc:10845
#11 0x000055a9626d8d54 in Sql_cmd_alter_table::execute (this=<optimized out>, thd=0x152120000d48) at /test/10.11_dbg/sql/structs.h:569
#12 0x000055a96257d872 in mysql_execute_command (thd=thd@entry=0x152120000d48, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.11_dbg/sql/sql_parse.cc:6003
#13 0x000055a962566235 in mysql_parse (thd=thd@entry=0x152120000d48, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x15216404f300) at /test/10.11_dbg/sql/sql_parse.cc:8002
#14 0x000055a96257387d in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x152120000d48, packet=packet@entry=0x15212000ae19 "ALTER TABLE t ENGINE=InnoDB", packet_length=packet_length@entry=27, blocking=blocking@entry=true) at /test/10.11_dbg/sql/sql_class.h:1369
#15 0x000055a962575cb6 in do_command (thd=0x152120000d48, blocking=blocking@entry=true) at /test/10.11_dbg/sql/sql_parse.cc:1407
#16 0x000055a9626d1ce7 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55a9662f68e8, put_in_cache=put_in_cache@entry=true) at /test/10.11_dbg/sql/sql_connect.cc:1416
#17 0x000055a9626d21b6 in handle_one_connection (arg=0x55a9662f68e8) at /test/10.11_dbg/sql/sql_connect.cc:1318
#18 0x000015217bf09609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#19 0x000015217baf5133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Bug confirmed present in:
MariaDB:
10.4.29 (dbg) : 0cc1694e9c7481b59d372af7f759bb0bcf552bfa
10.5.20 (dbg) : 3261a78ea172a77fec113107ef35f218b9228b66
10.6.13 (dbg): 18342cd5e1ba4bd8a9547844e0309f288dc939a4
10.8.8 (dbg: dd2fe81122224c07a65e89b409dc28d70802fe99
10.9.6 (dbg): 55e78ebf4136ed7bf78b45963f53e503201a59bb
10.10.4 (dbg): e68f0f098665337d516033b2e2f82e7c3cc39bad
10.11.3 (dbg): d84a2826290d9676faebba0849d1b9fb7f5efcd8
11.0.2 (dbg): 8e55d7ea4a2f94ae3f38fdd8785778612d4b1203
11.1.0 (dbg): 2b61ff8f2221745f0a96855a0feb0825c426f993
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.4.29 (opt), 10.5.20 (opt), 10.6.13 (opt), 10.8.8 (opt), 10.9.6 (opt), 10.10.4 (opt), 10.11.3 (opt), 11.0.2 (opt), 11.1.0 (opt)
is duplicated by
MDEV-31025
Redundant table alter fails when fixed column stored externally
Closed
{"report":{"fcp":1009.3000001907349,"ttfb":214.30000019073486,"pageVisibility":"visible","entityId":121534,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"71482ece-7421-48f1-9a6d-e7516648ce5e","navigationType":0,"readyForUser":1092.5999994277954,"redirectCount":0,"resourceLoadedEnd":1305.1999998092651,"resourceLoadedStart":232.5,"resourceTiming":[{"duration":218.0999994277954,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":232.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":232.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":450.5999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":218.0999994277954,"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":232.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":232.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":450.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":271.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":233,"connectEnd":233,"connectStart":233,"domainLookupEnd":233,"domainLookupStart":233,"fetchStart":233,"redirectEnd":0,"redirectStart":0,"requestStart":233,"responseEnd":504.30000019073486,"responseStart":504.30000019073486,"secureConnectionStart":233},{"duration":360.5999994277954,"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":233.5,"connectEnd":233.5,"connectStart":233.5,"domainLookupEnd":233.5,"domainLookupStart":233.5,"fetchStart":233.5,"redirectEnd":0,"redirectStart":0,"requestStart":233.5,"responseEnd":594.0999994277954,"responseStart":594.0999994277954,"secureConnectionStart":233.5},{"duration":364.5,"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":233.69999980926514,"connectEnd":233.69999980926514,"connectStart":233.69999980926514,"domainLookupEnd":233.69999980926514,"domainLookupStart":233.69999980926514,"fetchStart":233.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":233.69999980926514,"responseEnd":598.1999998092651,"responseStart":598.1999998092651,"secureConnectionStart":233.69999980926514},{"duration":365,"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":233.80000019073486,"connectEnd":233.80000019073486,"connectStart":233.80000019073486,"domainLookupEnd":233.80000019073486,"domainLookupStart":233.80000019073486,"fetchStart":233.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":233.80000019073486,"responseEnd":598.8000001907349,"responseStart":598.8000001907349,"secureConnectionStart":233.80000019073486},{"duration":365,"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":234,"connectEnd":234,"connectStart":234,"domainLookupEnd":234,"domainLookupStart":234,"fetchStart":234,"redirectEnd":0,"redirectStart":0,"requestStart":234,"responseEnd":599,"responseStart":599,"secureConnectionStart":234},{"duration":411.80000019073486,"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":234.5999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":234.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":646.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":364.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":234.80000019073486,"connectEnd":234.80000019073486,"connectStart":234.80000019073486,"domainLookupEnd":234.80000019073486,"domainLookupStart":234.80000019073486,"fetchStart":234.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":234.80000019073486,"responseEnd":599.5,"responseStart":599.5,"secureConnectionStart":234.80000019073486},{"duration":411.5,"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":235,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":235,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":646.5,"responseStart":0,"secureConnectionStart":0},{"duration":365,"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":235.0999994277954,"connectEnd":235.0999994277954,"connectStart":235.0999994277954,"domainLookupEnd":235.0999994277954,"domainLookupStart":235.0999994277954,"fetchStart":235.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":235.0999994277954,"responseEnd":600.0999994277954,"responseStart":600.0999994277954,"secureConnectionStart":235.0999994277954},{"duration":485.4000005722046,"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":274.0999994277954,"connectEnd":274.0999994277954,"connectStart":274.0999994277954,"domainLookupEnd":274.0999994277954,"domainLookupStart":274.0999994277954,"fetchStart":274.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":274.0999994277954,"responseEnd":759.5,"responseStart":759.5,"secureConnectionStart":274.0999994277954},{"duration":1022.6000003814697,"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":282.5999994277954,"connectEnd":282.5999994277954,"connectStart":282.5999994277954,"domainLookupEnd":282.5999994277954,"domainLookupStart":282.5999994277954,"fetchStart":282.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":282.5999994277954,"responseEnd":1305.1999998092651,"responseStart":1305.1999998092651,"secureConnectionStart":282.5999994277954},{"duration":105.40000057220459,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":657.8999996185303,"connectEnd":657.8999996185303,"connectStart":657.8999996185303,"domainLookupEnd":657.8999996185303,"domainLookupStart":657.8999996185303,"fetchStart":657.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":657.8999996185303,"responseEnd":763.3000001907349,"responseStart":763.3000001907349,"secureConnectionStart":657.8999996185303},{"duration":436.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":928.0999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":928.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1364.5999994277954,"responseStart":0,"secureConnectionStart":0}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":51,"responseStart":215,"responseEnd":284,"domLoading":218,"domInteractive":1324,"domContentLoadedEventStart":1324,"domContentLoadedEventEnd":1365,"domComplete":2223,"loadEventStart":2224,"loadEventEnd":2225,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1306.8999996185303},{"name":"bigPipe.sidebar-id.end","time":1307.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1307.8999996185303},{"name":"bigPipe.activity-panel-pipe-id.end","time":1310.0999994277954},{"name":"activityTabFullyLoaded","time":1371.5}],"measures":[],"correlationId":"a747343741b340","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":87,"dbReadsTimeInMs":9,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}