CREATE TABLE t1 (a INT GENERATED ALWAYS AS (1) VIRTUAL) ENGINE=MyISAM;
|
ALTER TABLE t1 ADD KEY (a);
|
|
# Cleanup
|
DROP TABLE t1;
|
10.4 de51acd0
|
mysqld: /data/src/10.4/storage/myisam/ha_myisam.cc:974: void ha_myisam::setup_vcols_for_repair(HA_CHECK*): Assertion `file->s->base.reclength < file->s->vreclength' failed.
|
190321 16:36:08 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007fb43d947ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x000055e6766d4710 in ha_myisam::setup_vcols_for_repair (this=0x7fb41c14c858, param=0x7fb41c043378) at /data/src/10.4/storage/myisam/ha_myisam.cc:974
|
#9 0x000055e6766d6cc0 in ha_myisam::enable_indexes (this=0x7fb41c14c858, mode=2) at /data/src/10.4/storage/myisam/ha_myisam.cc:1642
|
#10 0x000055e6766d71d6 in ha_myisam::end_bulk_insert (this=0x7fb41c14c858) at /data/src/10.4/storage/myisam/ha_myisam.cc:1805
|
#11 0x000055e675c4b011 in handler::ha_end_bulk_insert (this=0x7fb41c14c858) at /data/src/10.4/sql/handler.h:3281
|
#12 0x000055e675d75c76 in copy_data_between_tables (thd=0x7fb41c000b00, from=0x7fb41c13c350, to=0x7fb41c14b590, create=..., ignore=false, order_num=0, order=0x0, copied=0x7fb4382bf698, deleted=0x7fb4382bf6a0, keys_onoff=Alter_info::LEAVE_AS_IS, alter_ctx=0x7fb4382c00e0) at /data/src/10.4/sql/sql_table.cc:10729
|
#13 0x000055e675d7388f in mysql_alter_table (thd=0x7fb41c000b00, new_db=0x7fb41c005298, new_name=0x7fb41c005698, create_info=0x7fb4382c0cd0, table_list=0x7fb41c0156d0, alter_info=0x7fb4382c0c10, order_num=0, order=0x0, ignore=false) at /data/src/10.4/sql/sql_table.cc:10085
|
#14 0x000055e675e0489c in Sql_cmd_alter_table::execute (this=0x7fb41c015e48, thd=0x7fb41c000b00) at /data/src/10.4/sql/sql_alter.cc:499
|
#15 0x000055e675c9258c in mysql_execute_command (thd=0x7fb41c000b00) at /data/src/10.4/sql/sql_parse.cc:6394
|
#16 0x000055e675c97725 in mysql_parse (thd=0x7fb41c000b00, rawbuf=0x7fb41c0155e8 "ALTER TABLE t1 ADD KEY (a)", length=26, parser_state=0x7fb4382c2180, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:8205
|
#17 0x000055e675c82d55 in dispatch_command (command=COM_QUERY, thd=0x7fb41c000b00, packet=0x7fb41c00a8a1 "", packet_length=26, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1829
|
#18 0x000055e675c8153b in do_command (thd=0x7fb41c000b00) at /data/src/10.4/sql/sql_parse.cc:1358
|
#19 0x000055e675dfb445 in do_handle_one_connection (connect=0x55e679b9d4e0) at /data/src/10.4/sql/sql_connect.cc:1399
|
#20 0x000055e675dfb1b6 in handle_one_connection (arg=0x55e679b9d4e0) at /data/src/10.4/sql/sql_connect.cc:1302
|
#21 0x000055e6762f0f7f in pfs_spawn_thread (arg=0x55e679c8f8d0) at /data/src/10.4/storage/perfschema/pfs.cc:1862
|
#22 0x00007fb43f836494 in start_thread (arg=0x7fb4382c3700) at pthread_create.c:333
|
#23 0x00007fb43da0493f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
{"report":{"fcp":1753.9000000953674,"ttfb":388.19999980926514,"pageVisibility":"visible","entityId":73443,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"146e8685-ede8-46dc-a68e-a16b2674257e","navigationType":0,"readyForUser":1970.3000001907349,"redirectCount":0,"resourceLoadedEnd":1498.9000000953674,"resourceLoadedStart":433,"resourceTiming":[{"duration":444.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":433,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":433,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":877.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":444.3999996185303,"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":433.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":433.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":877.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":792.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":433.5,"connectEnd":433.5,"connectStart":433.5,"domainLookupEnd":433.5,"domainLookupStart":433.5,"fetchStart":433.5,"redirectEnd":0,"redirectStart":0,"requestStart":882.6999998092651,"responseEnd":1225.8000001907349,"responseStart":939.9000000953674,"secureConnectionStart":433.5},{"duration":978.5,"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":433.69999980926514,"connectEnd":433.69999980926514,"connectStart":433.69999980926514,"domainLookupEnd":433.69999980926514,"domainLookupStart":433.69999980926514,"fetchStart":433.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":883.1999998092651,"responseEnd":1412.1999998092651,"responseStart":941.6999998092651,"secureConnectionStart":433.69999980926514},{"duration":513.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":433.90000009536743,"connectEnd":433.90000009536743,"connectStart":433.90000009536743,"domainLookupEnd":433.90000009536743,"domainLookupStart":433.90000009536743,"fetchStart":433.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":883.4000000953674,"responseEnd":947.4000000953674,"responseStart":943.0999999046326,"secureConnectionStart":433.90000009536743},{"duration":513.5,"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":434.09999990463257,"connectEnd":434.09999990463257,"connectStart":434.09999990463257,"domainLookupEnd":434.09999990463257,"domainLookupStart":434.09999990463257,"fetchStart":434.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":883.5999999046326,"responseEnd":947.5999999046326,"responseStart":944.3000001907349,"secureConnectionStart":434.09999990463257},{"duration":513.2999997138977,"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":434.40000009536743,"connectEnd":434.40000009536743,"connectStart":434.40000009536743,"domainLookupEnd":434.40000009536743,"domainLookupStart":434.40000009536743,"fetchStart":434.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":883.9000000953674,"responseEnd":947.6999998092651,"responseStart":946.3000001907349,"secureConnectionStart":434.40000009536743},{"duration":443.7000002861023,"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":434.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":434.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":878.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":515.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":434.69999980926514,"connectEnd":434.69999980926514,"connectStart":434.69999980926514,"domainLookupEnd":434.69999980926514,"domainLookupStart":434.69999980926514,"fetchStart":434.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":884.0999999046326,"responseEnd":950.0999999046326,"responseStart":947.9000000953674,"secureConnectionStart":434.69999980926514},{"duration":443.8999996185303,"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":434.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":434.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":878.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":515.9000000953674,"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":435.09999990463257,"connectEnd":435.09999990463257,"connectStart":435.09999990463257,"domainLookupEnd":435.09999990463257,"domainLookupStart":435.09999990463257,"fetchStart":435.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":884.3000001907349,"responseEnd":951,"responseStart":948.5,"secureConnectionStart":435.09999990463257},{"duration":953.6000003814697,"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":436.19999980926514,"connectEnd":436.19999980926514,"connectStart":436.19999980926514,"domainLookupEnd":436.19999980926514,"domainLookupStart":436.19999980926514,"fetchStart":436.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":1370.3000001907349,"responseEnd":1389.8000001907349,"responseStart":1388.5999999046326,"secureConnectionStart":436.19999980926514},{"duration":1062.5999999046326,"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":436.30000019073486,"connectEnd":436.30000019073486,"connectStart":436.30000019073486,"domainLookupEnd":436.30000019073486,"domainLookupStart":436.30000019073486,"fetchStart":436.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":1482.0999999046326,"responseEnd":1498.9000000953674,"responseStart":1498.3000001907349,"secureConnectionStart":436.30000019073486},{"duration":149.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1376.8000001907349,"connectEnd":1376.8000001907349,"connectStart":1376.8000001907349,"domainLookupEnd":1376.8000001907349,"domainLookupStart":1376.8000001907349,"fetchStart":1376.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1487,"responseEnd":1525.9000000953674,"responseStart":1524.3000001907349,"secureConnectionStart":1376.8000001907349}],"fetchStart":0,"domainLookupStart":146,"domainLookupEnd":160,"connectStart":160,"connectEnd":191,"secureConnectionStart":169,"requestStart":191,"responseStart":389,"responseEnd":400,"domLoading":430,"domInteractive":2157,"domContentLoadedEventStart":2158,"domContentLoadedEventEnd":2260,"domComplete":4302,"loadEventStart":4302,"loadEventEnd":4302,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2115.5999999046326},{"name":"bigPipe.sidebar-id.end","time":2116.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":2116.699999809265},{"name":"bigPipe.activity-panel-pipe-id.end","time":2120.699999809265},{"name":"activityTabFullyLoaded","time":2287.5}],"measures":[],"correlationId":"5b0cb21cef5246","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":104,"dbReadsTimeInMs":15,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
USE test;
CREATE TABLE t(a POINT GENERATED ALWAYS AS (POINT(1,1)) VIRTUAL, UNIQUE INDEX i(a(1))) ENGINE=MyISAM;
REPAIR LOCAL TABLE t;
Leads to:
10.5.5 30e7a0a866dce530d8328c6d614e48d39a264f9b (Debug)
mysqld: /test/10.5_dbg/storage/myisam/ha_myisam.cc:976: void ha_myisam::setup_vcols_for_repair(HA_CHECK*): Assertion `file->s->base.reclength < file->s->vreclength' failed.
10.5.5 30e7a0a866dce530d8328c6d614e48d39a264f9b (Debug)
Core was generated by `/test/MD140720-mariadb-10.5.5-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:57
[Current thread is 1 (Thread 0x14ab87e56700 (LWP 2131673))]
(gdb) bt
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
#1 0x00005575886144d7 in my_write_core (sig=sig@entry=6) at /test/10.5_dbg/mysys/stacktrace.c:518
#2 0x0000557587dce9ba in handle_fatal_signal (sig=6) at /test/10.5_dbg/sql/signal_handler.cc:330
#3 <signal handler called>
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#5 0x000014ab860ec8b1 in __GI_abort () at abort.c:79
#6 0x000014ab860dc42a in __assert_fail_base (fmt=0x14ab86263a38 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x557588af5720 "file->s->base.reclength < file->s->vreclength", file=file@entry=0x557588af54e8 "/test/10.5_dbg/storage/myisam/ha_myisam.cc", line=line@entry=976, function=function@entry=0x557588af6040 <ha_myisam::setup_vcols_for_repair(st_handler_check_param*)::__PRETTY_FUNCTION__> "void ha_myisam::setup_vcols_for_repair(HA_CHECK*)") at assert.c:92
#7 0x000014ab860dc4a2 in __GI___assert_fail (assertion=assertion@entry=0x557588af5720 "file->s->base.reclength < file->s->vreclength", file=file@entry=0x557588af54e8 "/test/10.5_dbg/storage/myisam/ha_myisam.cc", line=line@entry=976, function=function@entry=0x557588af6040 <ha_myisam::setup_vcols_for_repair(st_handler_check_param*)::__PRETTY_FUNCTION__> "void ha_myisam::setup_vcols_for_repair(HA_CHECK*)") at assert.c:101
#8 0x00005575885a7920 in ha_myisam::setup_vcols_for_repair (this=this@entry=0x14ab638376a0, param=param@entry=0x14ab638fc0a0) at /test/10.5_dbg/storage/myisam/ha_myisam.cc:976
#9 0x00005575885a8ee4 in ha_myisam::repair (this=0x14ab638376a0, thd=0x14ab63815088, check_opt=0x14ab6381a338) at /test/10.5_dbg/storage/myisam/ha_myisam.cc:1158
#10 0x0000557587ddcce5 in handler::ha_repair (this=0x14ab638376a0, thd=0x14ab63815088, check_opt=0x14ab6381a338) at /test/10.5_dbg/sql/handler.cc:4618
#11 0x0000557587c88dc0 in mysql_admin_table (thd=thd@entry=0x14ab63815088, tables=tables@entry=0x14ab63874168, check_opt=check_opt@entry=0x14ab6381a338, operator_name=operator_name@entry=0x557588af5426 "repair", lock_type=lock_type@entry=TL_WRITE, org_open_for_modify=org_open_for_modify@entry=true, repair_table_use_frm=false, extra_open_options=32, prepare_func=0x557587c87081 <prepare_for_repair(THD*, TABLE_LIST*, HA_CHECK_OPT*)>, operator_func=(int (handler::*)(handler * const, THD *, HA_CHECK_OPT *)) 0x557587ddccb4 <handler::ha_repair(THD*, st_ha_check_opt*)>, view_operator_func=0x557587c20dde <view_repair(THD*, TABLE_LIST*, st_ha_check_opt*)>) at /test/10.5_dbg/sql/sql_admin.cc:781
#12 0x0000557587c8af62 in Sql_cmd_repair_table::execute (this=<optimized out>, thd=0x14ab63815088) at /test/10.5_dbg/sql/sql_admin.cc:1410
#13 0x0000557587b27e4a in mysql_execute_command (thd=thd@entry=0x14ab63815088) at /test/10.5_dbg/sql/sql_parse.cc:5951
#14 0x0000557587b2f752 in mysql_parse (thd=thd@entry=0x14ab63815088, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14ab87e55350, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:7993
#15 0x0000557587b1c204 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14ab63815088, packet=packet@entry=0x14ab63867089 "", packet_length=packet_length@entry=20, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:1866
#16 0x0000557587b1a9de in do_command (thd=0x14ab63815088) at /test/10.5_dbg/sql/sql_parse.cc:1347
#17 0x0000557587c76c3b in do_handle_one_connection (connect=<optimized out>, connect@entry=0x14ab66cc7808, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1411
#18 0x0000557587c77357 in handle_one_connection (arg=arg@entry=0x14ab66cc7808) at /test/10.5_dbg/sql/sql_connect.cc:1313
#19 0x00005575880daca8 in pfs_spawn_thread (arg=0x14ab84c46508) at /test/10.5_dbg/storage/perfschema/pfs.cc:2201
#20 0x000014ab86dcf6db in start_thread (arg=0x14ab87e56700) at pthread_create.c:463
#21 0x000014ab861cda3f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Bug confirmed present in:
MariaDB: 10.2.33 (dbg), 10.3.24 (dbg), 10.4.14 (dbg), 10.5.5 (dbg)
Bug confirmed not present in:
MariaDB: 10.1.46 (dbg), 10.1.46 (opt), 10.2.33 (opt), 10.3.24 (opt), 10.4.14 (opt), 10.5.5 (opt)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.47 (dbg), 5.6.47 (opt), 5.7.29 (dbg), 5.7.29 (opt), 8.0.19 (dbg), 8.0.19 (opt)