Type:
Bug
Priority:
Major
Resolution:
Unresolved
Affects Version/s:
N/A
The problem may disappear after fixing MDEV-28933 (or what used to be MDEV-28933 before it was re-written), but since its fate is currently unclear, I'm filing it separately.
--source include/have_innodb.inc
CREATE TABLE t1 (a INT PRIMARY KEY ) ENGINE=InnoDB;
CREATE TABLE t2 (b INT PRIMARY KEY ) ENGINE=InnoDB;
SET SESSION FOREIGN_KEY_CHECKS = OFF ;
ALTER TABLE t2 ADD FOREIGN KEY fk(b) REFERENCES t1 (a);
CREATE OR REPLACE SEQUENCE t2 ENGINE=InnoDB;
# Cleanup
DROP TABLE t2, t1;
bb-main-monty a71a40e919587c59603272251fbcbce46e446534
mariadbd: /data/bld/preview-12.0-bb-main-monty-debug/sql/ddl_log.cc:1234: int execute_drop_table(THD*, handlerton*, const LEX_CSTRING*, const LEX_CSTRING*, const char*): Assertion `!tdc_share_is_cached(thd, db->str, table->str)' failed.
250409 22:16:43 [ERROR] /share8t/bld/preview-12.0-bb-main-monty-debug/sql/mariadbd got signal 6 ;
#8 0x00007f4136045395 in __assert_fail_base (fmt=0x7f41361b9a90 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x559fc4155dd8 "!tdc_share_is_cached(thd, db->str, table->str)", file=file@entry=0x559fc41556d0 "/data/bld/preview-12.0-bb-main-monty-debug/sql/ddl_log.cc", line=line@entry=1234, function=function@entry=0x559fc4155d78 "int execute_drop_table(THD*, handlerton*, const LEX_CSTRING*, const LEX_CSTRING*, const char*)") at ./assert/assert.c:92
#9 0x00007f4136053eb2 in __GI___assert_fail (assertion=0x559fc4155dd8 "!tdc_share_is_cached(thd, db->str, table->str)", file=0x559fc41556d0 "/data/bld/preview-12.0-bb-main-monty-debug/sql/ddl_log.cc", line=1234, function=0x559fc4155d78 "int execute_drop_table(THD*, handlerton*, const LEX_CSTRING*, const LEX_CSTRING*, const char*)") at ./assert/assert.c:101
#10 0x0000559fc3310c29 in execute_drop_table (thd=0x7f40f4000dc8, hton=0x559fd7cd7438, db=0x7f41281708b0, table=0x7f41281708c0, path=0x559fd87bc140 "./test/t2") at /data/bld/preview-12.0-bb-main-monty-debug/sql/ddl_log.cc:1234
#11 0x0000559fc3312db8 in ddl_log_execute_action (thd=0x7f40f4000dc8, mem_root=0x7f4128170e20, ddl_log_entry=0x7f4128170e60) at /data/bld/preview-12.0-bb-main-monty-debug/sql/ddl_log.cc:1918
#12 0x0000559fc3314d50 in ddl_log_execute_entry_no_lock (thd=0x7f40f4000dc8, first_entry=3) at /data/bld/preview-12.0-bb-main-monty-debug/sql/ddl_log.cc:2581
#13 0x0000559fc3316250 in ddl_log_revert (thd=0x7f40f4000dc8, state=0x7f4128171290) at /data/bld/preview-12.0-bb-main-monty-debug/sql/ddl_log.cc:3117
#14 0x0000559fc32d3f23 in mysql_create_table_no_lock (thd=0x7f40f4000dc8, ddl_log_state_create=0x7f4128171290, ddl_log_state_rm=0x7f41281712b0, create_info=0x7f4128171610, alter_info=0x7f4128171490, is_trans=0x7f4128171283, create_table_mode=0, table_list=0x7f40f4018150) at /data/bld/preview-12.0-bb-main-monty-debug/sql/sql_table.cc:5403
#15 0x0000559fc32d477e in mysql_create_table (thd=0x7f40f4000dc8, create_table=0x7f40f4018150, create_info=0x7f4128171610, alter_info=0x7f4128171490) at /data/bld/preview-12.0-bb-main-monty-debug/sql/sql_table.cc:5608
#16 0x0000559fc32eeed2 in Sql_cmd_create_table_like::execute (this=0x7f40f4018118, thd=0x7f40f4000dc8) at /data/bld/preview-12.0-bb-main-monty-debug/sql/sql_table.cc:13942
#17 0x0000559fc31a1ed6 in mysql_execute_command (thd=0x7f40f4000dc8, is_called_from_prepared_stmt=false) at /data/bld/preview-12.0-bb-main-monty-debug/sql/sql_parse.cc:5887
#18 0x0000559fc31a819d in mysql_parse (thd=0x7f40f4000dc8, rawbuf=0x7f40f4018020 "CREATE OR REPLACE SEQUENCE t2 ENGINE=InnoDB", length=43, parser_state=0x7f41281722e0) at /data/bld/preview-12.0-bb-main-monty-debug/sql/sql_parse.cc:7917
#19 0x0000559fc31943ad in dispatch_command (command=COM_QUERY, thd=0x7f40f4000dc8, packet=0x7f40f400bf79 "CREATE OR REPLACE SEQUENCE t2 ENGINE=InnoDB", packet_length=43, blocking=true) at /data/bld/preview-12.0-bb-main-monty-debug/sql/sql_parse.cc:1903
#20 0x0000559fc3192d06 in do_command (thd=0x7f40f4000dc8, blocking=true) at /data/bld/preview-12.0-bb-main-monty-debug/sql/sql_parse.cc:1416
#21 0x0000559fc33a2d83 in do_handle_one_connection (connect=0x559fd8f715e8, put_in_cache=true) at /data/bld/preview-12.0-bb-main-monty-debug/sql/sql_connect.cc:1415
#22 0x0000559fc33a2b04 in handle_one_connection (arg=0x559fd8f73748) at /data/bld/preview-12.0-bb-main-monty-debug/sql/sql_connect.cc:1327
#23 0x0000559fc392917c in pfs_spawn_thread (arg=0x559fd8f71158) at /data/bld/preview-12.0-bb-main-monty-debug/storage/perfschema/pfs.cc:2198
#24 0x00007f41360a81c4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#25 0x00007f413612885c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
No workflow transitions have been executed yet.
{"report":{"fcp":608.9000005722046,"ttfb":150.9000005722046,"pageVisibility":"visible","entityId":133748,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"a5844753-8a92-4ffb-9528-d0266b47e5ca","navigationType":0,"readyForUser":741.2000007629395,"redirectCount":0,"resourceLoadedEnd":637.5,"resourceLoadedStart":156.80000019073486,"resourceTiming":[{"duration":6.40000057220459,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":156.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":156.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":163.20000076293945,"responseStart":0,"secureConnectionStart":0},{"duration":6.300000190734863,"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":157.10000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":157.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":163.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":67.09999942779541,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":157.20000076293945,"connectEnd":157.20000076293945,"connectStart":157.20000076293945,"domainLookupEnd":157.20000076293945,"domainLookupStart":157.20000076293945,"fetchStart":157.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":157.20000076293945,"responseEnd":224.30000019073486,"responseStart":224.30000019073486,"secureConnectionStart":157.20000076293945},{"duration":145.9000005722046,"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":157.30000019073486,"connectEnd":157.30000019073486,"connectStart":157.30000019073486,"domainLookupEnd":157.30000019073486,"domainLookupStart":157.30000019073486,"fetchStart":157.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":157.30000019073486,"responseEnd":303.20000076293945,"responseStart":303.20000076293945,"secureConnectionStart":157.30000019073486},{"duration":149.69999980926514,"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":157.4000005722046,"connectEnd":157.4000005722046,"connectStart":157.4000005722046,"domainLookupEnd":157.4000005722046,"domainLookupStart":157.4000005722046,"fetchStart":157.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":157.4000005722046,"responseEnd":307.1000003814697,"responseStart":307.1000003814697,"secureConnectionStart":157.4000005722046},{"duration":150.5,"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":157.4000005722046,"connectEnd":157.4000005722046,"connectStart":157.4000005722046,"domainLookupEnd":157.4000005722046,"domainLookupStart":157.4000005722046,"fetchStart":157.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":157.4000005722046,"responseEnd":307.9000005722046,"responseStart":307.9000005722046,"secureConnectionStart":157.4000005722046},{"duration":150.89999961853027,"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":157.60000038146973,"connectEnd":157.60000038146973,"connectStart":157.60000038146973,"domainLookupEnd":157.60000038146973,"domainLookupStart":157.60000038146973,"fetchStart":157.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":157.60000038146973,"responseEnd":308.5,"responseStart":308.5,"secureConnectionStart":157.60000038146973},{"duration":151,"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":158,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":158,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":309,"responseStart":0,"secureConnectionStart":0},{"duration":150.89999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":158.10000038146973,"connectEnd":158.10000038146973,"connectStart":158.10000038146973,"domainLookupEnd":158.10000038146973,"domainLookupStart":158.10000038146973,"fetchStart":158.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":158.10000038146973,"responseEnd":309,"responseStart":309,"secureConnectionStart":158.10000038146973},{"duration":151.19999980926514,"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":158.20000076293945,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":158.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":309.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":151.0999994277954,"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":158.4000005722046,"connectEnd":158.4000005722046,"connectStart":158.4000005722046,"domainLookupEnd":158.4000005722046,"domainLookupStart":158.4000005722046,"fetchStart":158.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":158.4000005722046,"responseEnd":309.5,"responseStart":309.5,"secureConnectionStart":158.4000005722046},{"duration":410.3999996185303,"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":159.10000038146973,"connectEnd":159.10000038146973,"connectStart":159.10000038146973,"domainLookupEnd":159.10000038146973,"domainLookupStart":159.10000038146973,"fetchStart":159.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":159.10000038146973,"responseEnd":569.5,"responseStart":569.5,"secureConnectionStart":159.10000038146973},{"duration":421.0999994277954,"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":159.20000076293945,"connectEnd":159.20000076293945,"connectStart":159.20000076293945,"domainLookupEnd":159.20000076293945,"domainLookupStart":159.20000076293945,"fetchStart":159.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":159.20000076293945,"responseEnd":580.3000001907349,"responseStart":580.3000001907349,"secureConnectionStart":159.20000076293945},{"duration":194.9000005722046,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":375,"connectEnd":375,"connectStart":375,"domainLookupEnd":375,"domainLookupStart":375,"fetchStart":375,"redirectEnd":0,"redirectStart":0,"requestStart":375,"responseEnd":569.9000005722046,"responseStart":569.9000005722046,"secureConnectionStart":375},{"duration":11.399999618530273,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":601.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":601.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":612.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":5,"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":624.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":624.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":629.5,"responseStart":0,"secureConnectionStart":0},{"duration":5.699999809265137,"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":625.3000001907349,"connectEnd":625.3000001907349,"connectStart":625.3000001907349,"domainLookupEnd":625.3000001907349,"domainLookupStart":625.3000001907349,"fetchStart":625.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":625.3000001907349,"responseEnd":631,"responseStart":631,"secureConnectionStart":625.3000001907349},{"duration":11.799999237060547,"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":625.7000007629395,"connectEnd":625.7000007629395,"connectStart":625.7000007629395,"domainLookupEnd":625.7000007629395,"domainLookupStart":625.7000007629395,"fetchStart":625.7000007629395,"redirectEnd":0,"redirectStart":0,"requestStart":625.7000007629395,"responseEnd":637.5,"responseStart":637.5,"secureConnectionStart":625.7000007629395}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":17,"responseStart":150,"responseEnd":152,"domLoading":154,"domInteractive":806,"domContentLoadedEventStart":806,"domContentLoadedEventEnd":850,"domComplete":1004,"loadEventStart":1004,"loadEventEnd":1004,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":781.1000003814697},{"name":"bigPipe.sidebar-id.end","time":781.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":782},{"name":"bigPipe.activity-panel-pipe-id.end","time":782.4000005722046},{"name":"activityTabFullyLoaded","time":862.3000001907349}],"measures":[],"correlationId":"ef3f2f8576bea7","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":77,"dbReadsTimeInMs":13,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}