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.2 and 10.3.
|
|
ts_1.test
|
--------------
|
--source include/have_innodb.inc
|
# --disable_abort_on_error
|
|
CREATE TABLE t1 (col2 INT, col_int INTEGER) ENGINE = InnoDB ROW_FORMAT = Redundant ;
|
INSERT INTO t1 (col2, col_int) VALUES ( 1 , 1);
|
ALTER TABLE t1 ADD UNIQUE INDEX IF NOT EXISTS `huhu1` ( col2 );
|
ALTER TABLE t1 ADD PRIMARY KEY IF NOT EXISTS ( col_int ) ;
|
|
ALTER TABLE t1 DROP PRIMARY KEY;
|
ALTER TABLE t1 ADD UNIQUE INDEX IF NOT EXISTS `huhu2` ( col_int ) ;
|
ALTER TABLE t1 ADD PRIMARY KEY IF NOT EXISTS ( col2 ) ;
|
|
ALTER TABLE t1 ADD COLUMN IF NOT EXISTS col_int_copy INTEGER ;
|
ALTER TABLE t1 CHANGE COLUMN col_int col_int INTEGER;
|
--enable_abort_on_error
|
SHOW PROCESSLIST;
|
|
....
|
Version: '10.4.1-MariaDB-debug-log' socket: 'bld_debug/mysql-test/var/tmp/mysqld.1.sock' port: 16000 Source distribution
|
mysqld: storage/innobase/include/row0upd.ic:83: upd_field_t* upd_get_nth_field(const upd_t*, ulint): Assertion `n < update->n_fields' failed.
|
181219 11:55:47 [ERROR] mysqld got signal 6 ;
|
...
|
Query (0x7fd494014190): ALTER TABLE t1 CHANGE COLUMN col_int col_int INTEGER
|
Connection ID (thread ID): 9
|
Status: NOT_KILLED
|
...
|
Thread 1 (Thread 0x7fd4e43e0700 (LWP 25811)):
|
#0 __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
|
#1 0x0000564507e7eb94 in my_write_core (sig=6) at mysys/stacktrace.c:481
|
#2 0x00005645076c4ca3 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 0x00007fd4ea85bf5d in __GI_abort () at abort.c:90
|
#6 0x00007fd4ea851f17 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x56450823aa7c "n < update->n_fields", file=file@entry=0x56450823aa38 "storage/innobase/include/row0upd.ic", line=line@entry=83, function=function@entry=0x5645082418c0 <_ZZL17upd_get_nth_fieldPK5upd_tmE19__PRETTY_FUNCTION__> "upd_field_t* upd_get_nth_field(const upd_t*, ulint)") at assert.c:92
|
#7 0x00007fd4ea851fc2 in __GI___assert_fail (assertion=0x56450823aa7c "n < update->n_fields", file=0x56450823aa38 "storage/innobase/include/row0upd.ic", line=83, function=0x5645082418c0 <_ZZL17upd_get_nth_fieldPK5upd_tmE19__PRETTY_FUNCTION__> "upd_field_t* upd_get_nth_field(const upd_t*, ulint)") at assert.c:101
|
#8 0x0000564507b35cbb in upd_get_nth_field (update=0x7fd494070090, n=0) at storage/innobase/include/row0upd.ic:83
|
#9 0x0000564507b431e8 in btr_cur_trim (entry=0x7fd494063430, index=0x7fd49406a958, update=0x7fd494070090, thr=0x7fd49406ffd8) at storage/innobase/btr/btr0cur.cc:4377
|
#10 0x0000564507b43def in btr_cur_optimistic_update (flags=42, cursor=0x7fd4e43db090, offsets=0x7fd4e43dafb0, heap=0x7fd4e43dafb8, update=0x7fd494070090, cmpl_info=1, thr=0x7fd49406ffd8, trx_id=100, mtr=0x7fd4e43db1a0) at storage/innobase/btr/btr0cur.cc:4547
|
#11 0x0000564507b44bde in btr_cur_pessimistic_update (flags=10, cursor=0x7fd4e43db090, offsets=0x7fd4e43dafb0, offsets_heap=0x7fd4e43dafb8, entry_heap=0x7fd49406a3c0, big_rec=0x7fd4e43dafc0, update=0x7fd494070090, cmpl_info=1, thr=0x7fd49406ffd8, trx_id=100, mtr=0x7fd4e43db1a0) at storage/innobase/btr/btr0cur.cc:4832
|
#12 0x000056450791f382 in innobase_instant_try (ha_alter_info=0x7fd4e43dcbb0, ctx=0x7fd494015e28, altered_table=0x7fd49406e348, table=0x7fd49405c0e8, trx=0x7fd4e4677218) at storage/innobase/handler/handler0alter.cc:5618
|
#13 0x0000564507939af9 in commit_try_norebuild (ha_alter_info=0x7fd4e43dcbb0, ctx=0x7fd494015e28, altered_table=0x7fd49406e348, old_table=0x7fd49405c0e8, trx=0x7fd4e4677218, table_name=0x7fd494069b95 "t1") at storage/innobase/handler/handler0alter.cc:10047
|
#14 0x000056450792cc1d in ha_innobase::commit_inplace_alter_table (this=0x7fd494092400, altered_table=0x7fd49406e348, ha_alter_info=0x7fd4e43dcbb0, commit=true) at storage/innobase/handler/handler0alter.cc:10682
|
#15 0x00005645076d104b in handler::ha_commit_inplace_alter_table (this=0x7fd494092400, altered_table=0x7fd49406e348, ha_alter_info=0x7fd4e43dcbb0, commit=true) at sql/handler.cc:4492
|
#16 0x0000564507492448 in mysql_inplace_alter_table (thd=0x7fd494000ce8, table_list=0x7fd4940142a8, table=0x7fd49405c0e8, altered_table=0x7fd49406e348, ha_alter_info=0x7fd4e43dcbb0, inplace_supported=HA_ALTER_INPLACE_INSTANT, target_mdl_request=0x7fd4e43dcce0, alter_ctx=0x7fd4e43dd8d0) at sql/sql_table.cc:7590
|
#17 0x0000564507498286 in mysql_alter_table (thd=0x7fd494000ce8, new_db=0x7fd4940053b0, new_name=0x7fd494005780, create_info=0x7fd4e43de4c0, table_list=0x7fd4940142a8, alter_info=0x7fd4e43de400, order_num=0, order=0x0, ignore=false) at sql/sql_table.cc:9688
|
#18 0x000056450752226e in Sql_cmd_alter_table::execute (this=0x7fd494014a08, thd=0x7fd494000ce8) at sql/sql_alter.cc:491
|
#19 0x00005645073c08d0 in mysql_execute_command (thd=0x7fd494000ce8) at sql/sql_parse.cc:6302
|
#20 0x00005645073c5a8c in mysql_parse (thd=0x7fd494000ce8, rawbuf=0x7fd494014190 "ALTER TABLE t1 CHANGE COLUMN col_int col_int INTEGER", length=52, parser_state=0x7fd4e43df5f0, is_com_multi=false, is_next_command=false) at sql/sql_parse.cc:8104
|
#21 0x00005645073b29ba in dispatch_command (command=COM_QUERY, thd=0x7fd494000ce8, packet=0x7fd49400acd9 "ALTER TABLE t1 CHANGE COLUMN col_int col_int INTEGER", packet_length=52, is_com_multi=false, is_next_command=false) at sql/sql_parse.cc:1850
|
#22 0x00005645073b13cf in do_command (thd=0x7fd494000ce8) at sql/sql_parse.cc:1395
|
#23 0x000056450751c29e in do_handle_one_connection (connect=0x56450b04c968) at sql/sql_connect.cc:1402
|
#24 0x000056450751c015 in handle_one_connection (arg=0x56450b04c968) at sql/sql_connect.cc:1308
|
#25 0x0000564507e16d63 in pfs_spawn_thread (arg=0x56450b092d98) at storage/perfschema/pfs.cc:1862
|
#26 0x00007fd4eb4fd7fc in start_thread (arg=0x7fd4e43e0700) at pthread_create.c:465
|
#27 0x00007fd4ea937b5f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
- relates to
-
MDEV-18034
handler0alter.cc:217: void dict_table_t::init_instant(const dict_table_t&) [with bool replace_dropped = true]: Assertion `index.n_nullable == n_nullable' failed.
-
-
Closed
Transition |
Time In Source Status |
Execution Times |
Open |
|
In Progress |
|
8d 1h 1m
|
1
|
In Progress |
|
Closed |
|
2h 22m
|
1
|
{"report":{"fcp":1027,"ttfb":306.40000009536743,"pageVisibility":"visible","entityId":71492,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"72400644-e0bb-4617-b16d-7000fadcc680","navigationType":0,"readyForUser":1123.9000000953674,"redirectCount":0,"resourceLoadedEnd":717.9000000953674,"resourceLoadedStart":314.10000014305115,"resourceTiming":[{"duration":100.39999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":314.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":314.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":414.5,"responseStart":0,"secureConnectionStart":0},{"duration":100.29999995231628,"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":314.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":314.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":414.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":288.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":314.7000000476837,"connectEnd":314.7000000476837,"connectStart":314.7000000476837,"domainLookupEnd":314.7000000476837,"domainLookupStart":314.7000000476837,"fetchStart":314.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":414.90000009536743,"responseEnd":603.2000000476837,"responseStart":444.30000019073486,"secureConnectionStart":314.7000000476837},{"duration":403,"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":314.90000009536743,"connectEnd":314.90000009536743,"connectStart":314.90000009536743,"domainLookupEnd":314.90000009536743,"domainLookupStart":314.90000009536743,"fetchStart":314.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":418.7000000476837,"responseEnd":717.9000000953674,"responseStart":464.2000000476837,"secureConnectionStart":314.90000009536743},{"duration":137.59999990463257,"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":315.10000014305115,"connectEnd":315.10000014305115,"connectStart":315.10000014305115,"domainLookupEnd":315.10000014305115,"domainLookupStart":315.10000014305115,"fetchStart":315.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":429.40000009536743,"responseEnd":452.7000000476837,"responseStart":449.60000014305115,"secureConnectionStart":315.10000014305115},{"duration":135.39999985694885,"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":315.30000019073486,"connectEnd":315.30000019073486,"connectStart":315.30000019073486,"domainLookupEnd":315.30000019073486,"domainLookupStart":315.30000019073486,"fetchStart":315.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":429.60000014305115,"responseEnd":450.7000000476837,"responseStart":448.90000009536743,"secureConnectionStart":315.30000019073486},{"duration":137.70000004768372,"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":315.5,"connectEnd":315.5,"connectStart":315.5,"domainLookupEnd":315.5,"domainLookupStart":315.5,"fetchStart":315.5,"redirectEnd":0,"redirectStart":0,"requestStart":429.7000000476837,"responseEnd":453.2000000476837,"responseStart":450.90000009536743,"secureConnectionStart":315.5},{"duration":112.90000009536743,"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":315.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":315.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":428.60000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":137.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":315.90000009536743,"connectEnd":315.90000009536743,"connectStart":315.90000009536743,"domainLookupEnd":315.90000009536743,"domainLookupStart":315.90000009536743,"fetchStart":315.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":429.80000019073486,"responseEnd":453.40000009536743,"responseStart":451.7000000476837,"secureConnectionStart":315.90000009536743},{"duration":112.80000019073486,"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":316,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":316,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":428.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":146.5,"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":316.10000014305115,"connectEnd":316.10000014305115,"connectStart":316.10000014305115,"domainLookupEnd":316.10000014305115,"domainLookupStart":316.10000014305115,"fetchStart":316.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":431.10000014305115,"responseEnd":462.60000014305115,"responseStart":456.30000019073486,"secureConnectionStart":316.10000014305115},{"duration":366,"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":323.5,"connectEnd":323.5,"connectStart":323.5,"domainLookupEnd":323.5,"domainLookupStart":323.5,"fetchStart":323.5,"redirectEnd":0,"redirectStart":0,"requestStart":536.9000000953674,"responseEnd":689.5,"responseStart":683.4000000953674,"secureConnectionStart":323.5},{"duration":367.7000000476837,"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":323.60000014305115,"connectEnd":323.60000014305115,"connectStart":323.60000014305115,"domainLookupEnd":323.60000014305115,"domainLookupStart":323.60000014305115,"fetchStart":323.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":671.1000001430511,"responseEnd":691.3000001907349,"responseStart":686,"secureConnectionStart":323.60000014305115},{"duration":134.30000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":759.5,"connectEnd":759.5,"connectStart":759.5,"domainLookupEnd":759.5,"domainLookupStart":759.5,"fetchStart":759.5,"redirectEnd":0,"redirectStart":0,"requestStart":856.5,"responseEnd":893.8000001907349,"responseStart":893,"secureConnectionStart":759.5}],"fetchStart":0,"domainLookupStart":67,"domainLookupEnd":112,"connectStart":112,"connectEnd":131,"secureConnectionStart":121,"requestStart":132,"responseStart":307,"responseEnd":313,"domLoading":312,"domInteractive":1237,"domContentLoadedEventStart":1237,"domContentLoadedEventEnd":1286,"domComplete":1769,"loadEventStart":1769,"loadEventEnd":1769,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1215.3000001907349},{"name":"bigPipe.sidebar-id.end","time":1216.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1216.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1217.2000000476837},{"name":"activityTabFullyLoaded","time":1305.9000000953674}],"measures":[],"correlationId":"780c5a200438c3","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":91,"dbReadsTimeInMs":13,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}