The problem was found during RQG testing on MariaDB 10.4 30641f9df77be99d93524e39cdc2b2d783e6d3e1 2018-12-18
|
compiled with debug.
|
There was no replay of the assert on actual 10.3.
|
|
ts_4.test
|
--------------
|
--source include/have_innodb.inc
|
CREATE TABLE IF NOT EXISTS t1 (col1 INT, col2 INT, col_int INTEGER, col_varchar VARCHAR(500), col_text TEXT, col_int_g INTEGER GENERATED ALWAYS AS (col_int) PERSISTENT) ENGINE = InnoDB ROW_FORMAT = Redundant ;
|
ALTER TABLE t1 ADD COLUMN IF NOT EXISTS col2_copy INT FIRST;
|
ALTER TABLE t1 ADD COLUMN col1_copy INT FIRST;
|
ALTER TABLE t1 ADD COLUMN IF NOT EXISTS col_int_copy INTEGER;
|
ALTER TABLE t1 MODIFY COLUMN col_text TEXT NOT NULL;
|
ALTER TABLE t1 CHANGE COLUMN IF EXISTS col_text col_text TEXT ;
|
ALTER TABLE t1 MODIFY COLUMN col_int INTEGER AFTER col1;
|
--enable_abort_on_error
|
SHOW PROCESSLIST;
|
|
Version: '10.4.1-MariaDB-debug-log' socket: ..
|
mysqld: storage/innobase/handler/handler0alter.cc:393: void dict_table_t::prepare_instant(const dict_table_t&, const ulint*, unsigned int&): Assertion `(((core_null) + 7) / 8) == oindex.n_core_null_bytes' failed.
|
181220 18:45:46 [ERROR] mysqld got signal 6 ;
|
...
|
Query (0x7f5118014190): ALTER TABLE t1 MODIFY COLUMN col_int INTEGER AFTER col1
|
Connection ID (thread ID): 9
|
Status: NOT_KILLED
|
...
|
Thread 1 (Thread 0x7f5169ce5700 (LWP 23599)):
|
#0 __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
|
#1 0x000055d41183db94 in my_write_core (sig=6) at mysys/stacktrace.c:481
|
#2 0x000055d411083ca3 in handle_fatal_signal (sig=6) at sql/signal_handler.cc:305
|
#3 <signal handler called>
|
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
|
#5 0x00007f51709c0f5d in __GI_abort () at abort.c:90
|
#6 0x00007f51709b6f17 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x55d411b2dd70 "(((core_null) + 7) / 8) == oindex.n_core_null_bytes", file=file@entry=0x55d411b2d980 "storage/innobase/handler/handler0alter.cc", line=line@entry=393, function=function@entry=0x55d411b35ea0 <dict_table_t::prepare_instant(dict_table_t const&, unsigned long const*, unsigned int&)::__PRETTY_FUNCTION__> "void dict_table_t::prepare_instant(const dict_table_t&, const ulint*, unsigned int&)") at assert.c:92
|
#7 0x00007f51709b6fc2 in __GI___assert_fail (assertion=0x55d411b2dd70 "(((core_null) + 7) / 8) == oindex.n_core_null_bytes", file=0x55d411b2d980 "storage/innobase/handler/handler0alter.cc", line=393, function=0x55d411b35ea0 <dict_table_t::prepare_instant(dict_table_t const&, unsigned long const*, unsigned int&)::__PRETTY_FUNCTION__> "void dict_table_t::prepare_instant(const dict_table_t&, const ulint*, unsigned int&)") at assert.c:101
|
#8 0x000055d4112f1fc8 in dict_table_t::prepare_instant (this=0x7f51181a2958, old=..., col_map=0x7f511818cc90, first_alter_pos=@0x7f51180166e8: 4) at storage/innobase/handler/handler0alter.cc:393
|
#9 0x000055d4112f6291 in ha_innobase_inplace_ctx::prepare_instant (this=0x7f5118016578) at storage/innobase/handler/handler0alter.cc:1020
|
#10 0x000055d4112e15cb in prepare_inplace_alter_table_dict (ha_alter_info=0x7f5169ce1bb0, altered_table=0x7f51181832d8, old_table=0x7f5118178f58, table_name=0x7f511818a2a5 "t1", flags=0, flags2=80, fts_doc_id_col=18446744073709551615, add_fts_doc_id=false, add_fts_doc_id_idx=false) at storage/innobase/handler/handler0alter.cc:6420
|
#11 0x000055d4112e6490 in ha_innobase::prepare_inplace_alter_table (this=0x7f51181851c0, altered_table=0x7f51181832d8, ha_alter_info=0x7f5169ce1bb0) at storage/innobase/handler/handler0alter.cc:7966
|
#12 0x000055d41108ff1f in handler::ha_prepare_inplace_alter_table (this=0x7f51181851c0, altered_table=0x7f51181832d8, ha_alter_info=0x7f5169ce1bb0) at sql/handler.cc:4472
|
#13 0x000055d410e51037 in mysql_inplace_alter_table (thd=0x7f5118000ce8, table_list=0x7f51180142a8, table=0x7f5118178f58, altered_table=0x7f51181832d8, ha_alter_info=0x7f5169ce1bb0, inplace_supported=HA_ALTER_INPLACE_INSTANT, target_mdl_request=0x7f5169ce1ce0, alter_ctx=0x7f5169ce28d0) at sql/sql_table.cc:7505
|
#14 0x000055d410e57286 in mysql_alter_table (thd=0x7f5118000ce8, new_db=0x7f51180053b0, new_name=0x7f5118005780, create_info=0x7f5169ce34c0, table_list=0x7f51180142a8, alter_info=0x7f5169ce3400, order_num=0, order=0x0, ignore=false) at sql/sql_table.cc:9688
|
#15 0x000055d410ee126e in Sql_cmd_alter_table::execute (this=0x7f5118014a08, thd=0x7f5118000ce8) at sql/sql_alter.cc:491
|
#16 0x000055d410d7f8d0 in mysql_execute_command (thd=0x7f5118000ce8) at sql/sql_parse.cc:6302
|
#17 0x000055d410d84a8c in mysql_parse (thd=0x7f5118000ce8, rawbuf=0x7f5118014190 "ALTER TABLE t1 MODIFY COLUMN col_int INTEGER AFTER col1", length=55, parser_state=0x7f5169ce45f0, is_com_multi=false, is_next_command=false) at sql/sql_parse.cc:8104
|
#18 0x000055d410d719ba in dispatch_command (command=COM_QUERY, thd=0x7f5118000ce8, packet=0x7f511800acd9 "ALTER TABLE t1 MODIFY COLUMN col_int INTEGER AFTER col1", packet_length=55, is_com_multi=false, is_next_command=false) at sql/sql_parse.cc:1850
|
#19 0x000055d410d703cf in do_command (thd=0x7f5118000ce8) at sql/sql_parse.cc:1395
|
#20 0x000055d410edb29e in do_handle_one_connection (connect=0x55d4140773b8) at sql/sql_connect.cc:1402
|
#21 0x000055d410edb015 in handle_one_connection (arg=0x55d4140773b8) at sql/sql_connect.cc:1308
|
#22 0x000055d4117d5d63 in pfs_spawn_thread (arg=0x55d4140ddd08) at storage/perfschema/pfs.cc:1862
|
#23 0x00007f51716627fc in start_thread (arg=0x7f5169ce5700) at pthread_create.c:465
|
#24 0x00007f5170a9cb5f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
- relates to
-
MDEV-18649
Assertion `supremum[7] == index.n_core_null_bytes' failed in btr_set_instant
-
-
Closed
Transition |
Time In Source Status |
Execution Times |
Open |
|
In Progress |
|
19h
|
1
|
In Progress |
|
Closed |
|
2h 46m
|
1
|
{"report":{"fcp":802.6999999880791,"ttfb":196,"pageVisibility":"visible","entityId":71519,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"4ef041b1-a278-4b7b-9892-fcffbebc8e73","navigationType":0,"readyForUser":899.8000000119209,"redirectCount":0,"resourceLoadedEnd":898.0999999642372,"resourceLoadedStart":201.30000001192093,"resourceTiming":[{"duration":13,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":201.30000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":201.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":214.30000001192093,"responseStart":0,"secureConnectionStart":0},{"duration":13.300000011920929,"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":201.5999999642372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":201.5999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":214.89999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":74.19999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":201.69999998807907,"connectEnd":201.69999998807907,"connectStart":201.69999998807907,"domainLookupEnd":201.69999998807907,"domainLookupStart":201.69999998807907,"fetchStart":201.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":201.69999998807907,"responseEnd":275.89999997615814,"responseStart":275.89999997615814,"secureConnectionStart":201.69999998807907},{"duration":152,"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":201.89999997615814,"connectEnd":201.89999997615814,"connectStart":201.89999997615814,"domainLookupEnd":201.89999997615814,"domainLookupStart":201.89999997615814,"fetchStart":201.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":201.89999997615814,"responseEnd":353.89999997615814,"responseStart":353.89999997615814,"secureConnectionStart":201.89999997615814},{"duration":155.20000004768372,"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":202.5999999642372,"connectEnd":202.5999999642372,"connectStart":202.5999999642372,"domainLookupEnd":202.5999999642372,"domainLookupStart":202.5999999642372,"fetchStart":202.5999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":202.5999999642372,"responseEnd":357.80000001192093,"responseStart":357.80000001192093,"secureConnectionStart":202.5999999642372},{"duration":155.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":202.80000001192093,"connectEnd":202.80000001192093,"connectStart":202.80000001192093,"domainLookupEnd":202.80000001192093,"domainLookupStart":202.80000001192093,"fetchStart":202.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":202.80000001192093,"responseEnd":358.30000001192093,"responseStart":358.30000001192093,"secureConnectionStart":202.80000001192093},{"duration":155.69999998807907,"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":203,"connectEnd":203,"connectStart":203,"domainLookupEnd":203,"domainLookupStart":203,"fetchStart":203,"redirectEnd":0,"redirectStart":0,"requestStart":203,"responseEnd":358.69999998807907,"responseStart":358.69999998807907,"secureConnectionStart":203},{"duration":217.20000004768372,"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":203.0999999642372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":203.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":420.30000001192093,"responseStart":0,"secureConnectionStart":0},{"duration":156,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":203.30000001192093,"connectEnd":203.30000001192093,"connectStart":203.30000001192093,"domainLookupEnd":203.30000001192093,"domainLookupStart":203.30000001192093,"fetchStart":203.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":203.30000001192093,"responseEnd":359.30000001192093,"responseStart":359.30000001192093,"secureConnectionStart":203.30000001192093},{"duration":217,"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":203.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":203.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":420.39999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":156.30000001192093,"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":203.5999999642372,"connectEnd":203.5999999642372,"connectStart":203.5999999642372,"domainLookupEnd":203.5999999642372,"domainLookupStart":203.5999999642372,"fetchStart":203.5999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":203.5999999642372,"responseEnd":359.89999997615814,"responseStart":359.89999997615814,"secureConnectionStart":203.5999999642372},{"duration":389.80000001192093,"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":208.5999999642372,"connectEnd":208.5999999642372,"connectStart":208.5999999642372,"domainLookupEnd":208.5999999642372,"domainLookupStart":208.5999999642372,"fetchStart":208.5999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":208.5999999642372,"responseEnd":598.3999999761581,"responseStart":598.3999999761581,"secureConnectionStart":208.5999999642372},{"duration":525.1000000238419,"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":208.69999998807907,"connectEnd":208.69999998807907,"connectStart":208.69999998807907,"domainLookupEnd":208.69999998807907,"domainLookupStart":208.69999998807907,"fetchStart":208.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":208.69999998807907,"responseEnd":733.8000000119209,"responseStart":733.8000000119209,"secureConnectionStart":208.69999998807907},{"duration":166,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":433.19999998807907,"connectEnd":433.19999998807907,"connectStart":433.19999998807907,"domainLookupEnd":433.19999998807907,"domainLookupStart":433.19999998807907,"fetchStart":433.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":433.19999998807907,"responseEnd":599.1999999880791,"responseStart":599.1999999880791,"secureConnectionStart":433.19999998807907},{"duration":54.30000001192093,"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":701.6999999880791,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":701.6999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":756,"responseStart":0,"secureConnectionStart":0},{"duration":190.30000001192093,"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":703,"connectEnd":703,"connectStart":703,"domainLookupEnd":703,"domainLookupStart":703,"fetchStart":703,"redirectEnd":0,"redirectStart":0,"requestStart":703,"responseEnd":893.3000000119209,"responseStart":893.3000000119209,"secureConnectionStart":703},{"duration":194.5999999642372,"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":703.5,"connectEnd":703.5,"connectStart":703.5,"domainLookupEnd":703.5,"domainLookupStart":703.5,"fetchStart":703.5,"redirectEnd":0,"redirectStart":0,"requestStart":703.5,"responseEnd":898.0999999642372,"responseStart":898.0999999642372,"secureConnectionStart":703.5},{"duration":145.20000004768372,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":795.0999999642372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":795.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":940.3000000119209,"responseStart":0,"secureConnectionStart":0},{"duration":162.69999998807907,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":818.3000000119209,"connectEnd":818.3000000119209,"connectStart":818.3000000119209,"domainLookupEnd":818.3000000119209,"domainLookupStart":818.3000000119209,"fetchStart":818.3000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":818.3000000119209,"responseEnd":981,"responseStart":981,"secureConnectionStart":818.3000000119209}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":17,"responseStart":196,"responseEnd":204,"domLoading":200,"domInteractive":977,"domContentLoadedEventStart":977,"domContentLoadedEventEnd":1022,"domComplete":1396,"loadEventStart":1396,"loadEventEnd":1396,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":942.3000000119209},{"name":"bigPipe.sidebar-id.end","time":943.0999999642372},{"name":"bigPipe.activity-panel-pipe-id.start","time":943.3000000119209},{"name":"bigPipe.activity-panel-pipe-id.end","time":944.3000000119209},{"name":"activityTabFullyLoaded","time":1040.8999999761581}],"measures":[],"correlationId":"fcf0ec1b9c67a7","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":106,"dbReadsTimeInMs":16,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}