--source include/have_innodb.inc
|
--source include/have_sequence.inc
|
|
CREATE TABLE t (a INT) ENGINE=INNODB;
|
INSERT INTO t SELECT * FROM seq_1_to_1000;
|
ALTER TABLE t ADD hid INT DEFAULT 2;
|
INSERT INTO t VALUES (1,1);
|
ALTER TABLE t DISCARD TABLESPACE;
|
DROP TABLE t;
|
CREATE TABLE t (a CHAR KEY,b CHAR,KEY(b)) ENGINE=INNODB;
|
CHECK TABLE t;
|
Leads to:
10.4.33 f4ee7c110cd6faee3fa80b61ae572f471341c906 (Debug)
|
mariadbd: /test/10.4_dbg/storage/innobase/rem/rem0rec.cc:641: void rec_init_offsets(const rec_t*, const dict_index_t*, ulint, rec_offs*): Assertion `index->is_instant()' failed.
|
10.4.33 f4ee7c110cd6faee3fa80b61ae572f471341c906 (Debug)
|
Core was generated by `/test/MD010224-mariadb-10.4.33-linux-x86_64-dbg/bin/mariadbd --no-defaults --ma'.
|
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 0x14855407b700 (LWP 1590611))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x000014855ed02859 in __GI_abort () at abort.c:79
|
#2 0x000014855ed02729 in __assert_fail_base (fmt=0x14855ee98588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x556be51dc7e0 "index->is_instant()", file=0x556be51f46e0 "/test/10.4_dbg/storage/innobase/rem/rem0rec.cc", line=641, function=<optimized out>) at assert.c:92
|
#3 0x000014855ed13fd6 in __GI___assert_fail (assertion=assertion@entry=0x556be51dc7e0 "index->is_instant()", file=file@entry=0x556be51f46e0 "/test/10.4_dbg/storage/innobase/rem/rem0rec.cc", line=line@entry=641, function=function@entry=0x556be51f5b38 "void rec_init_offsets(const rec_t*, const dict_index_t*, ulint, rec_offs*)") at assert.c:101
|
#4 0x0000556be4a89eee in rec_init_offsets (offsets=0x148554077e00, n_core=5, index=0x1484f4020680, rec=0x14853c951a19 "") at /test/10.4_dbg/storage/innobase/rem/rem0rec.cc:641
|
#5 rec_get_offsets_func (rec=0x14853c951a19 "", index=0x1484f4020680, offsets=offsets@entry=0x148554077e00, n_core=5, n_fields=<optimized out>, file=file@entry=0x556be5227b60 "/test/10.4_dbg/storage/innobase/btr/btr0sea.cc", line=2095, heap=0x148554077da8) at /test/10.4_dbg/storage/innobase/rem/rem0rec.cc:931
|
#6 0x0000556be4c362b5 in btr_search_hash_table_validate (hash_table_id=hash_table_id@entry=3) at /test/10.4_dbg/storage/innobase/btr/btr0sea.cc:2095
|
#7 0x0000556be4c3657f in btr_search_validate () at /test/10.4_dbg/storage/innobase/btr/btr0sea.cc:2195
|
#8 0x0000556be49486c3 in ha_innobase::check (this=0x1484f407f960, thd=<optimized out>, check_opt=0x1484f4005fa0) at /test/10.4_dbg/storage/innobase/include/dict0dict.inl:239
|
#9 0x0000556be45cbcc7 in handler::ha_check (this=0x1484f407f960, thd=0x1484f4000d28, check_opt=0x1484f4005fa0) at /test/10.4_dbg/sql/handler.cc:4428
|
#10 0x0000556be446f52a in mysql_admin_table (thd=thd@entry=0x1484f4000d28, tables=tables@entry=0x1484f4012700, check_opt=check_opt@entry=0x1484f4005fa0, operator_name=operator_name@entry=0x556be54e0ae9 "check", lock_type=lock_type@entry=TL_READ_NO_INSERT, org_open_for_modify=org_open_for_modify@entry=false, repair_table_use_frm=false, extra_open_options=32, prepare_func=0x0, operator_func=(int (handler::*)(class handler * const, class THD *, HA_CHECK_OPT *)) 0x556be45cbc60 <handler::ha_check(THD*, st_ha_check_opt*)>, view_operator_func=0x556be4413e25 <view_check(THD*, TABLE_LIST*, st_ha_check_opt*)>, is_cmd_replicated=false) at /test/10.4_dbg/sql/sql_admin.cc:865
|
#11 0x0000556be4471134 in Sql_cmd_check_table::execute (this=<optimized out>, thd=0x1484f4000d28) at /test/10.4_dbg/sql/sql_admin.cc:1458
|
#12 0x0000556be432bb37 in mysql_execute_command (thd=thd@entry=0x1484f4000d28) at /test/10.4_dbg/sql/sql_parse.cc:6292
|
#13 0x0000556be432e229 in mysql_parse (thd=thd@entry=0x1484f4000d28, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14855407a360, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.4_dbg/sql/sql_parse.cc:8088
|
#14 0x0000556be433123b in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x1484f4000d28, packet=packet@entry=0x1484f4019699 "", packet_length=packet_length@entry=13, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.4_dbg/sql/sql_class.h:1242
|
#15 0x0000556be4333eba in do_command (thd=0x1484f4000d28) at /test/10.4_dbg/sql/sql_parse.cc:1378
|
#16 0x0000556be445f846 in do_handle_one_connection (connect=connect@entry=0x556be6f52108) at /test/10.4_dbg/sql/sql_connect.cc:1419
|
#17 0x0000556be445f965 in handle_one_connection (arg=0x556be6f52108) at /test/10.4_dbg/sql/sql_connect.cc:1323
|
#18 0x000014855f213609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#19 0x000014855edff133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.4.33 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.4.33 (opt), 10.5.24 (dbg), 10.5.24 (opt), 10.6.17 (dbg), 10.6.17 (opt), 10.11.7 (dbg), 10.11.7 (opt), 11.0.5 (dbg), 11.0.5 (opt), 11.1.4 (dbg), 11.1.4 (opt), 11.2.3 (dbg), 11.2.3 (opt), 11.3.2 (dbg), 11.3.2 (opt), 11.4.0 (dbg), 11.4.0 (opt)
{"report":{"fcp":1574.4000000953674,"ttfb":449.30000019073486,"pageVisibility":"visible","entityId":127804,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"49a7e926-9370-4eb3-8182-489f147549a4","navigationType":0,"readyForUser":1715.3000001907349,"redirectCount":0,"resourceLoadedEnd":1362.7000002861023,"resourceLoadedStart":459.6000003814697,"resourceTiming":[{"duration":98.7999997138977,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":459.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":459.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":558.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":106.10000038146973,"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":460,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":460,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":566.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":494.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":460.2000002861023,"connectEnd":566.3000001907349,"connectStart":566.3000001907349,"domainLookupEnd":566.3000001907349,"domainLookupStart":566.3000001907349,"fetchStart":460.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":573.1000003814697,"responseEnd":954.5,"responseStart":585.7000002861023,"secureConnectionStart":566.3000001907349},{"duration":735.0999999046326,"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":461.6000003814697,"connectEnd":461.6000003814697,"connectStart":461.6000003814697,"domainLookupEnd":461.6000003814697,"domainLookupStart":461.6000003814697,"fetchStart":461.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":574.2000002861023,"responseEnd":1196.7000002861023,"responseStart":590.7000002861023,"secureConnectionStart":461.6000003814697},{"duration":132.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":461.7000002861023,"connectEnd":461.7000002861023,"connectStart":461.7000002861023,"domainLookupEnd":461.7000002861023,"domainLookupStart":461.7000002861023,"fetchStart":461.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":575.6000003814697,"responseEnd":593.9000000953674,"responseStart":590.1000003814697,"secureConnectionStart":461.7000002861023},{"duration":139.30000019073486,"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":461.90000009536743,"connectEnd":461.90000009536743,"connectStart":461.90000009536743,"domainLookupEnd":461.90000009536743,"domainLookupStart":461.90000009536743,"fetchStart":461.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":575.7000002861023,"responseEnd":601.2000002861023,"responseStart":599.8000001907349,"secureConnectionStart":461.90000009536743},{"duration":150.19999980926514,"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":462.1000003814697,"connectEnd":462.1000003814697,"connectStart":462.1000003814697,"domainLookupEnd":462.1000003814697,"domainLookupStart":462.1000003814697,"fetchStart":462.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":581.7000002861023,"responseEnd":612.3000001907349,"responseStart":606.7000002861023,"secureConnectionStart":462.1000003814697},{"duration":105.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":462.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":462.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":567.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":150.2000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":462.40000009536743,"connectEnd":462.40000009536743,"connectStart":462.40000009536743,"domainLookupEnd":462.40000009536743,"domainLookupStart":462.40000009536743,"fetchStart":462.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":582.4000000953674,"responseEnd":612.6000003814697,"responseStart":607.3000001907349,"secureConnectionStart":462.40000009536743},{"duration":106.7999997138977,"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":462.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":462.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":569.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":150.40000009536743,"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":462.80000019073486,"connectEnd":462.80000019073486,"connectStart":462.80000019073486,"domainLookupEnd":462.80000019073486,"domainLookupStart":462.80000019073486,"fetchStart":462.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":582.9000000953674,"responseEnd":613.2000002861023,"responseStart":609,"secureConnectionStart":462.80000019073486},{"duration":772.6999998092651,"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":463.7000002861023,"connectEnd":463.7000002861023,"connectStart":463.7000002861023,"domainLookupEnd":463.7000002861023,"domainLookupStart":463.7000002861023,"fetchStart":463.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":959.9000000953674,"responseEnd":1236.4000000953674,"responseStart":1233.3000001907349,"secureConnectionStart":463.7000002861023},{"duration":899,"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":463.7000002861023,"connectEnd":463.7000002861023,"connectStart":463.7000002861023,"domainLookupEnd":463.7000002861023,"domainLookupStart":463.7000002861023,"fetchStart":463.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":1349.8000001907349,"responseEnd":1362.7000002861023,"responseStart":1362,"secureConnectionStart":463.7000002861023},{"duration":260.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1142.4000000953674,"connectEnd":1142.4000000953674,"connectStart":1142.4000000953674,"domainLookupEnd":1142.4000000953674,"domainLookupStart":1142.4000000953674,"fetchStart":1142.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1367.2000002861023,"responseEnd":1402.9000000953674,"responseStart":1402.1000003814697,"secureConnectionStart":1142.4000000953674}],"fetchStart":0,"domainLookupStart":214,"domainLookupEnd":221,"connectStart":221,"connectEnd":241,"secureConnectionStart":229,"requestStart":242,"responseStart":450,"responseEnd":459,"domLoading":453,"domInteractive":1828,"domContentLoadedEventStart":1829,"domContentLoadedEventEnd":1893,"domComplete":2975,"loadEventStart":2975,"loadEventEnd":2976,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1805.5},{"name":"bigPipe.sidebar-id.end","time":1806.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1806.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1807.8000001907349},{"name":"activityTabFullyLoaded","time":1907.7000002861023}],"measures":[],"correlationId":"2fdf09e1c5a5b4","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":121,"dbReadsTimeInMs":28,"dbConnsTimeInMs":40,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}