Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
10.5
--source include/have_innodb.inc
SET innodb_compression_default= ON ;
PREPARE stmt FROM 'CREATE OR REPLACE TABLE t ENGINE=InnoDB SELECT 1 AS f' ;
EXECUTE stmt;
EXECUTE stmt;
# Cleanup
DROP TABLE t;
10.5 9b3413c71f16a3d738af358e288a0168f4c15827
Version: '10.5.27-MariaDB-debug-log' socket: '/mnt8t/bld/10.5-asan/mysql-test/var/tmp/mysqld.1.sock' port: 19000 Source distribution
mariadbd: /data/bld/10.5-asan/mysys/my_alloc.c:212: alloc_root: Assertion `(mem_root->flags & 4) == 0' failed.
#9 0x00007f1ff0e53e32 in __GI___assert_fail (assertion=0x558d881f4880 "(mem_root->flags & 4) == 0", file=0x558d881f4580 "/data/bld/10.5-asan/mysys/my_alloc.c", line=212, function=0x558d881f4ba0 <__PRETTY_FUNCTION__.0> "alloc_root") at ./assert/assert.c:101
#10 0x0000558d86e24e6d in alloc_root (mem_root=0x6190000f4518, length=3) at /data/bld/10.5-asan/mysys/my_alloc.c:212
#11 0x0000558d86e26995 in strmake_root (root=0x6190000f4518, str=0x7f1fdaf3aa8e "ON", len=2) at /data/bld/10.5-asan/mysys/my_alloc.c:494
#12 0x0000558d86e26b81 in safe_lexcstrdup_root (root=0x6190000f4518, str=...) at /data/bld/10.5-asan/mysys/my_alloc.c:516
#13 0x0000558d8550c80f in extend_option_list (thd=0x62b00007e218, hton=0x615000002898, create=true, option_list=0x7f1fdaf3de60, rules=0x558d8907b400 <innodb_table_option_list>, root=0x6190000f4518) at /data/bld/10.5-asan/sql/create_options.cc:279
#14 0x0000558d85280da9 in mysql_prepare_create_table (thd=0x62b00007e218, create_info=0x7f1fdaf3dd80, alter_info=0x7f1fdaf3dc50, db_options=0x7f1fdaf3b220, file=0x62b0000867f8, key_info_buffer=0x7f1fdaf3c430, key_count=0x7f1fdaf3c420, create_table_mode=1) at /data/bld/10.5-asan/sql/sql_table.cc:4634
#15 0x0000558d85285417 in mysql_create_frm_image (thd=0x62b00007e218, create_info=0x7f1fdaf3dd80, alter_info=0x7f1fdaf3dc50, create_table_mode=1, key_info=0x7f1fdaf3c430, key_count=0x7f1fdaf3c420, frm=0x7f1fdaf3c450) at /data/bld/10.5-asan/sql/sql_table.cc:5148
#16 0x0000558d85287161 in create_table_impl (thd=0x62b00007e218, orig_db=..., orig_table_name=..., db=..., table_name=..., path=0x7f1fdaf3c470 "./test/t", options=..., create_info=0x7f1fdaf3dd80, alter_info=0x7f1fdaf3dc50, create_table_mode=1, is_trans=0x0, key_info=0x7f1fdaf3c430, key_count=0x7f1fdaf3c420, frm=0x7f1fdaf3c450) at /data/bld/10.5-asan/sql/sql_table.cc:5434
#17 0x0000558d85287c7f in mysql_create_table_no_lock (thd=0x62b00007e218, create_info=0x7f1fdaf3dd80, alter_info=0x7f1fdaf3dc50, is_trans=0x0, create_table_mode=1, table_list=0x62b0000befd0) at /data/bld/10.5-asan/sql/sql_table.cc:5537
#18 0x0000558d84f48f78 in select_create::create_table_from_items (this=0x62b000085568, thd=0x62b00007e218, items=0x7f1fdaf3d430, lock=0x7f1fdaf3d410, hooks=0x7f1fdaf3d4b0) at /data/bld/10.5-asan/sql/sql_insert.cc:4604
#19 0x0000558d84f4a762 in select_create::prepare (this=0x62b000085568, _values=..., u=0x62b0000bd310) at /data/bld/10.5-asan/sql/sql_insert.cc:4800
#20 0x0000558d850a961e in JOIN::prepare (this=0x62b000085670, tables_init=0x0, conds_init=0x0, og_num=0, order_init=0x0, skip_order_by=false, group_init=0x0, having_init=0x0, proc_param_init=0x0, select_lex_arg=0x62b0000bf6f8, unit_arg=0x62b0000bd310) at /data/bld/10.5-asan/sql/sql_select.cc:1635
#21 0x0000558d850cc0fc in mysql_select (thd=0x62b00007e218, tables=0x0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2201171004160, result=0x62b000085568, unit=0x62b0000bd310, select_lex=0x62b0000bf6f8) at /data/bld/10.5-asan/sql/sql_select.cc:4894
#22 0x0000558d8509c55c in handle_select (thd=0x62b00007e218, lex=0x62b0000bd248, result=0x62b000085568, setup_tables_done_option=0) at /data/bld/10.5-asan/sql/sql_select.cc:449
#23 0x0000558d852bc89e in Sql_cmd_create_table_like::execute (this=0x62b0000bef48, thd=0x62b00007e218) at /data/bld/10.5-asan/sql/sql_table.cc:12618
#24 0x0000558d85000bc6 in mysql_execute_command (thd=0x62b00007e218) at /data/bld/10.5-asan/sql/sql_parse.cc:6179
#25 0x0000558d850642ae in Prepared_statement::execute (this=0x6190000f4198, expanded_query=0x7f1fdaf3ed70, open_cursor=false) at /data/bld/10.5-asan/sql/sql_prepare.cc:5131
#26 0x0000558d8505f3f5 in Prepared_statement::execute_loop (this=0x6190000f4198, expanded_query=0x7f1fdaf3ed70, open_cursor=false, packet=0x0, packet_end=0x0) at /data/bld/10.5-asan/sql/sql_prepare.cc:4553
#27 0x0000558d85058e2f in mysql_sql_stmt_execute (thd=0x62b00007e218) at /data/bld/10.5-asan/sql/sql_prepare.cc:3594
#28 0x0000558d84ff160c in mysql_execute_command (thd=0x62b00007e218) at /data/bld/10.5-asan/sql/sql_parse.cc:4045
#29 0x0000558d8500df93 in mysql_parse (thd=0x62b00007e218, rawbuf=0x62b000085238 "EXECUTE stmt", length=12, parser_state=0x7f1fdaf3fc70, is_com_multi=false, is_next_command=false) at /data/bld/10.5-asan/sql/sql_parse.cc:8237
#30 0x0000558d84fe3279 in dispatch_command (command=COM_QUERY, thd=0x62b00007e218, packet=0x62900026c219 "EXECUTE stmt", packet_length=12, is_com_multi=false, is_next_command=false) at /data/bld/10.5-asan/sql/sql_parse.cc:1891
#31 0x0000558d84fdfc0c in do_command (thd=0x62b00007e218) at /data/bld/10.5-asan/sql/sql_parse.cc:1375
#32 0x0000558d85439755 in do_handle_one_connection (connect=0x6080000039b8, put_in_cache=true) at /data/bld/10.5-asan/sql/sql_connect.cc:1407
#33 0x0000558d854392bb in handle_one_connection (arg=0x608000003938) at /data/bld/10.5-asan/sql/sql_connect.cc:1319
#34 0x0000558d8609606c in pfs_spawn_thread (arg=0x61500000e198) at /data/bld/10.5-asan/storage/perfschema/pfs.cc:2201
#35 0x00007f1ff0ea8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#36 0x00007f1ff0f2861c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
The failure started happening after this commit in 10.5:
commit 3da565c41d87e29233724c96c47bbf737a673b6e (HEAD)
Author: Sergei Golubchik
Date: Thu Oct 17 15:57:03 2024 +0200
MDEV-35144 CREATE TABLE ... LIKE uses current innodb_compression_default instead of the create value
is caused by
MDEV-35144
CREATE TABLE ... LIKE uses current innodb_compression_default instead of the create value
Closed
{"report":{"fcp":1131.6999998092651,"ttfb":350.09999990463257,"pageVisibility":"visible","entityId":131316,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"a746d697-69a3-4a1d-b03a-c2bbd6491b79","navigationType":0,"readyForUser":1255.5,"redirectCount":0,"resourceLoadedEnd":1291,"resourceLoadedStart":355.5,"resourceTiming":[{"duration":276.2999997138977,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":355.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":355.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":631.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":276.40000009536743,"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":355.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":355.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":632.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":285.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":355.90000009536743,"connectEnd":355.90000009536743,"connectStart":355.90000009536743,"domainLookupEnd":355.90000009536743,"domainLookupStart":355.90000009536743,"fetchStart":355.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":355.90000009536743,"responseEnd":641.4000000953674,"responseStart":641.4000000953674,"secureConnectionStart":355.90000009536743},{"duration":358.59999990463257,"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":356.09999990463257,"connectEnd":356.09999990463257,"connectStart":356.09999990463257,"domainLookupEnd":356.09999990463257,"domainLookupStart":356.09999990463257,"fetchStart":356.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":356.09999990463257,"responseEnd":714.6999998092651,"responseStart":714.6999998092651,"secureConnectionStart":356.09999990463257},{"duration":363.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":356.2999997138977,"connectEnd":356.2999997138977,"connectStart":356.2999997138977,"domainLookupEnd":356.2999997138977,"domainLookupStart":356.2999997138977,"fetchStart":356.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":356.2999997138977,"responseEnd":719.7999997138977,"responseStart":719.7999997138977,"secureConnectionStart":356.2999997138977},{"duration":363.7999997138977,"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":356.5,"connectEnd":356.5,"connectStart":356.5,"domainLookupEnd":356.5,"domainLookupStart":356.5,"fetchStart":356.5,"redirectEnd":0,"redirectStart":0,"requestStart":356.5,"responseEnd":720.2999997138977,"responseStart":720.2999997138977,"secureConnectionStart":356.5},{"duration":364,"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":356.59999990463257,"connectEnd":356.59999990463257,"connectStart":356.59999990463257,"domainLookupEnd":356.59999990463257,"domainLookupStart":356.59999990463257,"fetchStart":356.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":356.59999990463257,"responseEnd":720.5999999046326,"responseStart":720.5999999046326,"secureConnectionStart":356.59999990463257},{"duration":428.5,"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":356.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":356.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":785.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":364.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":357,"connectEnd":357,"connectStart":357,"domainLookupEnd":357,"domainLookupStart":357,"fetchStart":357,"redirectEnd":0,"redirectStart":0,"requestStart":357,"responseEnd":721.0999999046326,"responseStart":721.0999999046326,"secureConnectionStart":357},{"duration":428.30000019073486,"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":357.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":357.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":785.5,"responseStart":0,"secureConnectionStart":0},{"duration":364.2999997138977,"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":357.40000009536743,"connectEnd":357.40000009536743,"connectStart":357.40000009536743,"domainLookupEnd":357.40000009536743,"domainLookupStart":357.40000009536743,"fetchStart":357.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":357.40000009536743,"responseEnd":721.6999998092651,"responseStart":721.6999998092651,"secureConnectionStart":357.40000009536743},{"duration":540.0999999046326,"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":371.19999980926514,"connectEnd":371.19999980926514,"connectStart":371.19999980926514,"domainLookupEnd":371.19999980926514,"domainLookupStart":371.19999980926514,"fetchStart":371.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":371.19999980926514,"responseEnd":911.2999997138977,"responseStart":911.2999997138977,"secureConnectionStart":371.19999980926514},{"duration":839.0999999046326,"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":371.19999980926514,"connectEnd":371.19999980926514,"connectStart":371.19999980926514,"domainLookupEnd":371.19999980926514,"domainLookupStart":371.19999980926514,"fetchStart":371.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":371.19999980926514,"responseEnd":1210.2999997138977,"responseStart":1210.2999997138977,"secureConnectionStart":371.19999980926514},{"duration":117.60000038146973,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":797.7999997138977,"connectEnd":797.7999997138977,"connectStart":797.7999997138977,"domainLookupEnd":797.7999997138977,"domainLookupStart":797.7999997138977,"fetchStart":797.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":797.7999997138977,"responseEnd":915.4000000953674,"responseStart":915.4000000953674,"secureConnectionStart":797.7999997138977},{"duration":210.59999990463257,"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":1080.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1080.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1291,"responseStart":0,"secureConnectionStart":0},{"duration":188.09999990463257,"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":1081.4000000953674,"connectEnd":1081.4000000953674,"connectStart":1081.4000000953674,"domainLookupEnd":1081.4000000953674,"domainLookupStart":1081.4000000953674,"fetchStart":1081.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1081.4000000953674,"responseEnd":1269.5,"responseStart":1269.5,"secureConnectionStart":1081.4000000953674},{"duration":192.30000019073486,"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":1081.7999997138977,"connectEnd":1081.7999997138977,"connectStart":1081.7999997138977,"domainLookupEnd":1081.7999997138977,"domainLookupStart":1081.7999997138977,"fetchStart":1081.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":1081.7999997138977,"responseEnd":1274.0999999046326,"responseStart":1274.0999999046326,"secureConnectionStart":1081.7999997138977},{"duration":265.40000009536743,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1123.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1123.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1388.5999999046326,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":185,"responseStart":350,"responseEnd":358,"domLoading":354,"domInteractive":1332,"domContentLoadedEventStart":1332,"domContentLoadedEventEnd":1376,"domComplete":1712,"loadEventStart":1712,"loadEventEnd":1712,"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.5},{"name":"bigPipe.sidebar-id.end","time":1307.2999997138977},{"name":"bigPipe.activity-panel-pipe-id.start","time":1307.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1308.9000000953674},{"name":"activityTabFullyLoaded","time":1401.7999997138977}],"measures":[],"correlationId":"53bafae981d6f0","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":99,"dbReadsTimeInMs":15,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}