Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
10.2(EOL) , 10.3(EOL) , 10.4(EOL) , 10.5 , 10.6
SET sql_mode='';
CREATE TABLE t (FTS_DOC_ID BIGINT UNSIGNED NOT NULL,title CHAR(1),body TEXT);
INSERT INTO t (title,body)VALUES(0,0), (0,0), (0,0), (0,0), (0,0), (0,0);
CREATE FULLTEXT INDEX idx1 ON t (title,body);
CREATE FULLTEXT INDEX idx1 ON t (title,body);
Leads to:
10.6.0 356c149603285086d964c8a51107be97b981c15c (Debug)
mysqld: /test/10.6_dbg/storage/innobase/handler/handler0alter.cc:10588: bool commit_cache_norebuild(Alter_inplace_info*, ha_innobase_inplace_ctx*, const TABLE*, const TABLE*, trx_t*): Assertion `(ctx->new_table->fts == __null) == (ctx->new_table->fts_doc_id_index == __null)' failed.
10.6.0 356c149603285086d964c8a51107be97b981c15c (Debug)
Core was generated by `/test/MD270321-mariadb-10.6.0-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
Program terminated with signal SIGABRT, Aborted.
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)
at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
[Current thread is 1 (Thread 0x147160506700 (LWP 21515))]
(gdb) bt
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
#1 0x000056074c5ee343 in my_write_core (sig=sig@entry=6) at /test/10.6_dbg/mysys/stacktrace.c:424
#2 0x000056074bd8ed1d in handle_fatal_signal (sig=6) at /test/10.6_dbg/sql/signal_handler.cc:331
#3 <signal handler called>
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#5 0x00001471640c4859 in __GI_abort () at abort.c:79
#6 0x00001471640c4729 in __assert_fail_base (fmt=0x14716425a588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x56074c9b08a0 "(ctx->new_table->fts == __null) == (ctx->new_table->fts_doc_id_index == __null)", file=0x56074c9a6fb8 "/test/10.6_dbg/storage/innobase/handler/handler0alter.cc", line=10588, function=<optimized out>) at assert.c:92
#7 0x00001471640d5f36 in __GI___assert_fail (assertion=assertion@entry=0x56074c9b08a0 "(ctx->new_table->fts == __null) == (ctx->new_table->fts_doc_id_index == __null)", file=file@entry=0x56074c9a6fb8 "/test/10.6_dbg/storage/innobase/handler/handler0alter.cc", line=line@entry=10588, function=function@entry=0x56074c9b0368 "bool commit_cache_norebuild(Alter_inplace_info*, ha_innobase_inplace_ctx*, const TABLE*, const TABLE*, trx_t*)") at assert.c:101
#8 0x000056074c1e1c26 in commit_cache_norebuild (ha_alter_info=ha_alter_info@entry=0x147160503230, ctx=ctx@entry=0x147108015678, altered_table=altered_table@entry=0x1471605032e0, table=<optimized out>, trx=trx@entry=0x1471617c12a0) at /test/10.6_dbg/storage/innobase/handler/handler0alter.cc:10588
#9 0x000056074c1c6651 in ha_innobase::commit_inplace_alter_table (this=0x1471080275b0, altered_table=<optimized out>, ha_alter_info=<optimized out>, commit=<optimized out>) at /test/10.6_dbg/storage/innobase/handler/handler0alter.cc:11225
#10 0x000056074bd9d109 in handler::ha_commit_inplace_alter_table (this=0x1471080275b0, altered_table=altered_table@entry=0x1471605032e0, ha_alter_info=ha_alter_info@entry=0x147160503230, commit=commit@entry=true) at /test/10.6_dbg/sql/handler.cc:4856
#11 0x000056074bb961b1 in mysql_inplace_alter_table (thd=thd@entry=0x147108000db8, table_list=0x147108013ca8, table=table@entry=0x147108026cb8, altered_table=altered_table@entry=0x1471605032e0, ha_alter_info=ha_alter_info@entry=0x147160503230, target_mdl_request=target_mdl_request@entry=0x147160503830, alter_ctx=0x147160504390) at /test/10.6_dbg/sql/sql_table.cc:8191
#12 0x000056074bba9d8a in mysql_alter_table (thd=thd@entry=0x147108000db8, new_db=new_db@entry=0x147108013cc0, new_name=new_name@entry=0x147108013cd0, create_info=create_info@entry=0x147160505000, table_list=<optimized out>, table_list@entry=0x147108013ca8, alter_info=alter_info@entry=0x147160504f10, order_num=0, order=0x0, ignore=false, if_exists=false) at /test/10.6_dbg/sql/sql_table.cc:10779
#13 0x000056074bacf94e in mysql_execute_command (thd=thd@entry=0x147108000db8) at /test/10.6_dbg/sql/structs.h:563
#14 0x000056074babb264 in mysql_parse (thd=thd@entry=0x147108000db8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x147160505410) at /test/10.6_dbg/sql/sql_parse.cc:8004
#15 0x000056074bac9e6a in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x147108000db8, packet=packet@entry=0x14710800b359 "CREATE FULLTEXT INDEX idx1 ON t (title,body)", packet_length=packet_length@entry=44, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_class.h:1331
#16 0x000056074bacd245 in do_command (thd=0x147108000db8, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_parse.cc:1399
#17 0x000056074bc26452 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x56074fa6d7a8, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1410
#18 0x000056074bc26a57 in handle_one_connection (arg=arg@entry=0x56074fa6d7a8) at /test/10.6_dbg/sql/sql_connect.cc:1312
#19 0x000056074c0d0ea5 in pfs_spawn_thread (arg=0x56074f991f08) at /test/10.6_dbg/storage/perfschema/pfs.cc:2201
#20 0x00001471645d2609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#21 0x00001471641c1293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Bug confirmed present in:
MariaDB: 10.2.38 (dbg), 10.3.29 (dbg), 10.4.19 (dbg), 10.5.10 (dbg), 10.6.0 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.2.38 (opt), 10.3.29 (opt), 10.4.19 (opt), 10.5.10 (opt), 10.6.0 (opt)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.33 (dbg), 5.7.33 (opt), 8.0.23 (dbg), 8.0.23 (opt)
{"report":{"fcp":811.1999998092651,"ttfb":195.19999980926514,"pageVisibility":"visible","entityId":98392,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"fae9f88b-c8c0-4a4b-a853-12cc298ef9e0","navigationType":0,"readyForUser":886.0999999046326,"redirectCount":0,"resourceLoadedEnd":931.1999998092651,"resourceLoadedStart":200.09999990463257,"resourceTiming":[{"duration":108.70000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":200.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":200.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":308.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":108.89999985694885,"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":200.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":200.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":309.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":163.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":200.5,"connectEnd":200.5,"connectStart":200.5,"domainLookupEnd":200.5,"domainLookupStart":200.5,"fetchStart":200.5,"redirectEnd":0,"redirectStart":0,"requestStart":200.5,"responseEnd":364,"responseStart":364,"secureConnectionStart":200.5},{"duration":254.79999995231628,"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":200.59999990463257,"connectEnd":200.59999990463257,"connectStart":200.59999990463257,"domainLookupEnd":200.59999990463257,"domainLookupStart":200.59999990463257,"fetchStart":200.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":200.59999990463257,"responseEnd":455.39999985694885,"responseStart":455.39999985694885,"secureConnectionStart":200.59999990463257},{"duration":257.7000000476837,"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":200.69999980926514,"connectEnd":200.69999980926514,"connectStart":200.69999980926514,"domainLookupEnd":200.69999980926514,"domainLookupStart":200.69999980926514,"fetchStart":200.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":200.69999980926514,"responseEnd":458.39999985694885,"responseStart":458.39999985694885,"secureConnectionStart":200.69999980926514},{"duration":258.09999990463257,"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":200.79999995231628,"connectEnd":200.79999995231628,"connectStart":200.79999995231628,"domainLookupEnd":200.79999995231628,"domainLookupStart":200.79999995231628,"fetchStart":200.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":200.79999995231628,"responseEnd":458.89999985694885,"responseStart":458.89999985694885,"secureConnectionStart":200.79999995231628},{"duration":258.2999999523163,"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":200.89999985694885,"connectEnd":200.89999985694885,"connectStart":200.89999985694885,"domainLookupEnd":200.89999985694885,"domainLookupStart":200.89999985694885,"fetchStart":200.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":200.89999985694885,"responseEnd":459.19999980926514,"responseStart":459.19999980926514,"secureConnectionStart":200.89999985694885},{"duration":258.69999980926514,"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":201,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":201,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":459.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":258.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":201,"connectEnd":201,"connectStart":201,"domainLookupEnd":201,"domainLookupStart":201,"fetchStart":201,"redirectEnd":0,"redirectStart":0,"requestStart":201,"responseEnd":459.69999980926514,"responseStart":459.69999980926514,"secureConnectionStart":201},{"duration":258.90000009536743,"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":201.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":201.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":460.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":258.7999999523163,"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":201.39999985694885,"connectEnd":201.39999985694885,"connectStart":201.39999985694885,"domainLookupEnd":201.39999985694885,"domainLookupStart":201.39999985694885,"fetchStart":201.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":201.39999985694885,"responseEnd":460.19999980926514,"responseStart":460.19999980926514,"secureConnectionStart":201.39999985694885},{"duration":597.4000000953674,"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":206.59999990463257,"connectEnd":206.59999990463257,"connectStart":206.59999990463257,"domainLookupEnd":206.59999990463257,"domainLookupStart":206.59999990463257,"fetchStart":206.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":206.59999990463257,"responseEnd":804,"responseStart":804,"secureConnectionStart":206.59999990463257},{"duration":597.7000000476837,"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":206.69999980926514,"connectEnd":206.69999980926514,"connectStart":206.69999980926514,"domainLookupEnd":206.69999980926514,"domainLookupStart":206.69999980926514,"fetchStart":206.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":206.69999980926514,"responseEnd":804.3999998569489,"responseStart":804.3999998569489,"secureConnectionStart":206.69999980926514},{"duration":66.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":513.8999998569489,"connectEnd":513.8999998569489,"connectStart":513.8999998569489,"domainLookupEnd":513.8999998569489,"domainLookupStart":513.8999998569489,"fetchStart":513.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":513.8999998569489,"responseEnd":580.3999998569489,"responseStart":580.3999998569489,"secureConnectionStart":513.8999998569489},{"duration":199.40000009536743,"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":731.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":731.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":931.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":199,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2bu7/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","startTime":732.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":732.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":931.1999998092651,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":66,"responseStart":195,"responseEnd":201,"domLoading":198,"domInteractive":940,"domContentLoadedEventStart":940,"domContentLoadedEventEnd":984,"domComplete":1488,"loadEventStart":1488,"loadEventEnd":1489,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":921.2999999523163},{"name":"bigPipe.sidebar-id.end","time":922},{"name":"bigPipe.activity-panel-pipe-id.start","time":922.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":924.5},{"name":"activityTabFullyLoaded","time":989.6999998092651}],"measures":[],"correlationId":"2457e997950423","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":72,"dbReadsTimeInMs":9,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}