Type:
Bug
Priority:
Major
Resolution:
Unresolved
Affects Version/s:
10.4(EOL) , 10.5 , 10.6 , 10.7(EOL) , 10.8(EOL) , 10.9(EOL) , 10.10(EOL) , 10.11 , 11.4 , 11.7(EOL) , 11.8
Note: Bugfix for MDEV-19011 is already in the main trees.
CREATE TABLE t (f bit , key (f)) ENGINE=MyISAM;
CREATE UNIQUE INDEX ind USING HASH ON t(f);
# Cleanup
DROP TABLE t;
10.4 09b03ff3
mysqld: /data/src/10.4/storage/myisam/ha_myisam.cc:981: void ha_myisam::setup_vcols_for_repair(HA_CHECK*): Assertion `file->s->base.reclength < file->s->vreclength || !table->s->stored_fields' failed.
210628 18:59:51 [ERROR] mysqld got signal 6 ;
#7 0x00007f554ea80f36 in __GI___assert_fail (assertion=0x56039470ec48 "file->s->base.reclength < file->s->vreclength || !table->s->stored_fields", file=0x56039470e798 "/data/src/10.4/storage/myisam/ha_myisam.cc", line=981, function=0x56039470ec10 "void ha_myisam::setup_vcols_for_repair(HA_CHECK*)") at assert.c:101
#8 0x000056039419b146 in ha_myisam::setup_vcols_for_repair (this=0x7f5538046658, param=0x7f55380475f8) at /data/src/10.4/storage/myisam/ha_myisam.cc:981
#9 0x000056039419d6f4 in ha_myisam::enable_indexes (this=0x7f5538046658, mode=2) at /data/src/10.4/storage/myisam/ha_myisam.cc:1651
#10 0x000056039419de24 in ha_myisam::end_bulk_insert (this=0x7f5538046658) at /data/src/10.4/storage/myisam/ha_myisam.cc:1848
#11 0x0000560393a0c2ef in handler::ha_end_bulk_insert (this=0x7f5538046658) at /data/src/10.4/sql/handler.cc:4427
#12 0x000056039378c146 in copy_data_between_tables (thd=0x7f5538000d90, from=0x7f55380415a0, to=0x7f55380457f0, create=..., ignore=false, order_num=0, order=0x0, copied=0x7f55488ff658, deleted=0x7f55488ff660, keys_onoff=Alter_info::LEAVE_AS_IS, alter_ctx=0x7f55489010d0) at /data/src/10.4/sql/sql_table.cc:11003
#13 0x0000560393789c7b in mysql_alter_table (thd=0x7f5538000d90, new_db=0x7f55380148c8, new_name=0x7f55380148d8, create_info=0x7f5548901e60, table_list=0x7f55380148b0, alter_info=0x7f5548901da0, order_num=0, order=0x0, ignore=false) at /data/src/10.4/sql/sql_table.cc:10353
#14 0x0000560393691d74 in mysql_execute_command (thd=0x7f5538000d90) at /data/src/10.4/sql/sql_parse.cc:4242
#15 0x000056039369e89b in mysql_parse (thd=0x7f5538000d90, rawbuf=0x7f55380147a8 "CREATE UNIQUE INDEX ind USING HASH ON t(f)", length=42, parser_state=0x7f55489024d0, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:7992
#16 0x000056039368abdb in dispatch_command (command=COM_QUERY, thd=0x7f5538000d90, packet=0x7f553800ac01 "", packet_length=42, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1857
#17 0x0000560393689441 in do_command (thd=0x7f5538000d90) at /data/src/10.4/sql/sql_parse.cc:1373
#18 0x000056039381a962 in do_handle_one_connection (connect=0x560397666f20) at /data/src/10.4/sql/sql_connect.cc:1412
#19 0x000056039381a6ab in handle_one_connection (arg=0x560397666f20) at /data/src/10.4/sql/sql_connect.cc:1316
#20 0x000056039424719c in pfs_spawn_thread (arg=0x56039763fd20) at /data/src/10.4/storage/perfschema/pfs.cc:1869
#21 0x00007f554ef99609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#22 0x00007f554eb6c293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Not reproducible on 10.3, apparently related to MDEV-371 .
Not reproducible with INT instead of BIT, I didn't check other data types.
No obvious problems with InnoDB instead of MyISAM, or with MyISAM on a non-debug build.
If Aria is used instead, both debug and release builds produce an error:
query 'CREATE UNIQUE INDEX ind USING HASH ON t(f)' failed: 1071: Specified key was too long; max key length is 1000 bytes
This error is not limited to BIT, happens with INT as well.
{"report":{"fcp":746.5,"ttfb":157.59999990463257,"pageVisibility":"visible","entityId":100865,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"f49712b2-e648-4983-a35e-f6425d072e21","navigationType":0,"readyForUser":811.2000000476837,"redirectCount":0,"resourceLoadedEnd":773,"resourceLoadedStart":162.39999985694885,"resourceTiming":[{"duration":163.10000014305115,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":162.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":162.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":325.5,"responseStart":0,"secureConnectionStart":0},{"duration":162.79999995231628,"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":162.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":162.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":325.5,"responseStart":0,"secureConnectionStart":0},{"duration":173.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":162.79999995231628,"connectEnd":162.79999995231628,"connectStart":162.79999995231628,"domainLookupEnd":162.79999995231628,"domainLookupStart":162.79999995231628,"fetchStart":162.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":162.79999995231628,"responseEnd":335.89999985694885,"responseStart":335.89999985694885,"secureConnectionStart":162.79999995231628},{"duration":253.09999990463257,"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":163,"connectEnd":163,"connectStart":163,"domainLookupEnd":163,"domainLookupStart":163,"fetchStart":163,"redirectEnd":0,"redirectStart":0,"requestStart":163,"responseEnd":416.09999990463257,"responseStart":416.09999990463257,"secureConnectionStart":163},{"duration":249.29999995231628,"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":163,"connectEnd":163,"connectStart":163,"domainLookupEnd":163,"domainLookupStart":163,"fetchStart":163,"redirectEnd":0,"redirectStart":0,"requestStart":163,"responseEnd":412.2999999523163,"responseStart":412.2999999523163,"secureConnectionStart":163},{"duration":253.29999995231628,"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":163.20000004768372,"connectEnd":163.20000004768372,"connectStart":163.20000004768372,"domainLookupEnd":163.20000004768372,"domainLookupStart":163.20000004768372,"fetchStart":163.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":163.20000004768372,"responseEnd":416.5,"responseStart":416.5,"secureConnectionStart":163.20000004768372},{"duration":253.59999990463257,"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":163.20000004768372,"connectEnd":163.20000004768372,"connectStart":163.20000004768372,"domainLookupEnd":163.20000004768372,"domainLookupStart":163.20000004768372,"fetchStart":163.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":163.20000004768372,"responseEnd":416.7999999523163,"responseStart":416.7999999523163,"secureConnectionStart":163.20000004768372},{"duration":253.90000009536743,"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":163.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":163.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":417.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":253.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":163.39999985694885,"connectEnd":163.39999985694885,"connectStart":163.39999985694885,"domainLookupEnd":163.39999985694885,"domainLookupStart":163.39999985694885,"fetchStart":163.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":163.39999985694885,"responseEnd":417.2000000476837,"responseStart":417.2000000476837,"secureConnectionStart":163.39999985694885},{"duration":254,"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":163.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":163.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":417.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":253.90000009536743,"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":163.79999995231628,"connectEnd":163.79999995231628,"connectStart":163.79999995231628,"domainLookupEnd":163.79999995231628,"domainLookupStart":163.79999995231628,"fetchStart":163.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":163.79999995231628,"responseEnd":417.7000000476837,"responseStart":417.7000000476837,"secureConnectionStart":163.79999995231628},{"duration":600.7999999523163,"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":169.5,"connectEnd":169.5,"connectStart":169.5,"domainLookupEnd":169.5,"domainLookupStart":169.5,"fetchStart":169.5,"redirectEnd":0,"redirectStart":0,"requestStart":169.5,"responseEnd":770.2999999523163,"responseStart":770.2999999523163,"secureConnectionStart":169.5},{"duration":603.5,"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":169.5,"connectEnd":169.5,"connectStart":169.5,"domainLookupEnd":169.5,"domainLookupStart":169.5,"fetchStart":169.5,"redirectEnd":0,"redirectStart":0,"requestStart":169.5,"responseEnd":773,"responseStart":773,"secureConnectionStart":169.5},{"duration":221.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":551,"connectEnd":551,"connectStart":551,"domainLookupEnd":551,"domainLookupStart":551,"fetchStart":551,"redirectEnd":0,"redirectStart":0,"requestStart":551,"responseEnd":772.5,"responseStart":772.5,"secureConnectionStart":551},{"duration":96,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":725.3999998569489,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":725.3999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":821.3999998569489,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":30,"responseStart":158,"responseEnd":167,"domLoading":161,"domInteractive":933,"domContentLoadedEventStart":933,"domContentLoadedEventEnd":970,"domComplete":1653,"loadEventStart":1653,"loadEventEnd":1655,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":906.7000000476837},{"name":"bigPipe.sidebar-id.end","time":907.3999998569489},{"name":"bigPipe.activity-panel-pipe-id.start","time":907.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":910},{"name":"activityTabFullyLoaded","time":976.3999998569489}],"measures":[],"correlationId":"5a0c5ef3f37476","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":71,"dbReadsTimeInMs":12,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}