SET sql_mode= '';
|
CREATE TEMPORARY TABLE t (c INT AUTO_INCREMENT KEY,c2 INT,INDEX idx (c2)) ENGINE=InnoDB;
|
CREATE UNIQUE INDEX i1 USING HASH ON t (c ASC);
|
INSERT INTO t VALUES ('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa','E0');
|
DELETE FROM t;
|
Leads to:
10.7.0 52505bf20de0ce77a5c0b0a74af021051987bb0d (Debug)
|
2021-08-28 10:55:06 0 [Note] /test/MD160821-mariadb-10.7.0-linux-x86_64-dbg/bin/mysqld: ready for connections.
|
Version: '10.7.0-MariaDB-debug' socket: '/test/MD160821-mariadb-10.7.0-linux-x86_64-dbg/socket.sock' port: 25303 MariaDB Server
|
2021-08-28 10:55:09 4 [ERROR] InnoDB: Record in index `i1` of table `data`.`#sql-temptable-3d10e-4-1` was not found on update: TUPLE (info_bits=0, 2 fields): {[8] (0x00000104000002D0),[4] (0x80000001)} at: COMPACT RECORD(info_bits=0, 2 fields): {[8] (0x00000104000002C4),[4] (0x80000001)}
|
mysqld: /test/10.7_dbg/storage/innobase/row/row0upd.cc:2051: dberr_t row_upd_sec_index_entry(upd_node_t*, que_thr_t*): Assertion `0' failed.
|
10.7.0 52505bf20de0ce77a5c0b0a74af021051987bb0d (Debug)
|
mysqld: /test/10.7_dbg/storage/innobase/row/row0upd.cc:2051: dberr_t row_upd_sec_index_entry(upd_node_t*, que_thr_t*): Assertion `0' failed.
|
10.7.0 52505bf20de0ce77a5c0b0a74af021051987bb0d (Debug)
|
Core was generated by `/test/MD160821-mariadb-10.7.0-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
|
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 0x14f400e3d700 (LWP 1962842))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x000014f4039fb859 in __GI_abort () at abort.c:79
|
#2 0x000014f4039fb729 in __assert_fail_base (fmt=0x14f403b91588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x5567400ceb6b "0", file=0x5567401a5310 "/test/10.7_dbg/storage/innobase/row/row0upd.cc", line=2051, function=<optimized out>) at assert.c:92
|
#3 0x000014f403a0cf36 in __GI___assert_fail (assertion=assertion@entry=0x5567400ceb6b "0", file=file@entry=0x5567401a5310 "/test/10.7_dbg/storage/innobase/row/row0upd.cc", line=line@entry=2051, function=function@entry=0x5567401a66e8 "dberr_t row_upd_sec_index_entry(upd_node_t*, que_thr_t*)") at assert.c:101
|
#4 0x000055673fb0a1c1 in row_upd_sec_index_entry (node=node@entry=0x14f3bc02af58, thr=thr@entry=0x14f3bc022b18) at /test/10.7_dbg/storage/innobase/row/row0upd.cc:2051
|
#5 0x000055673fb0afcf in row_upd_sec_step (thr=0x14f3bc022b18, node=0x14f3bc02af58) at /test/10.7_dbg/storage/innobase/row/row0upd.cc:2200
|
#6 row_upd (thr=0x14f3bc022b18, node=0x14f3bc02af58) at /test/10.7_dbg/storage/innobase/row/row0upd.cc:2936
|
#7 row_upd_step (thr=thr@entry=0x14f3bc022b18) at /test/10.7_dbg/storage/innobase/row/row0upd.cc:3051
|
#8 0x000055673faafbb3 in row_update_for_mysql (prebuilt=0x14f3bc02a4b8) at /test/10.7_dbg/storage/innobase/row/row0mysql.cc:1740
|
#9 0x000055673f938b50 in ha_innobase::delete_row (this=0x14f3bc0297d0, record=0x14f3bc026c28 "\375\001") at /test/10.7_dbg/storage/innobase/handler/ha_innodb.cc:8660
|
#10 0x000055673f59e53a in handler::ha_delete_row (this=0x14f3bc0297d0, buf=0x14f3bc026c28 "\375\001") at /test/10.7_dbg/sql/handler.cc:7646
|
#11 0x000055673f2347a1 in TABLE::delete_row (this=0x14f3bc026798) at /test/10.7_dbg/sql/sql_delete.cc:281
|
#12 0x000055673f2327d3 in mysql_delete (thd=thd@entry=0x14f3bc000db8, table_list=0x14f3bc013d40, conds=<optimized out>, order_list=order_list@entry=0x14f3bc005c00, limit=18446744073709551615, options=<optimized out>, result=<optimized out>) at /test/10.7_dbg/sql/sql_delete.cc:825
|
#13 0x000055673f294a26 in mysql_execute_command (thd=thd@entry=0x14f3bc000db8, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.7_dbg/sql/sql_limit.h:83
|
#14 0x000055673f27eac3 in mysql_parse (thd=thd@entry=0x14f3bc000db8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14f400e3c400) at /test/10.7_dbg/sql/sql_parse.cc:8030
|
#15 0x000055673f28d6c8 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14f3bc000db8, packet=packet@entry=0x14f3bc00b739 "DELETE FROM t", packet_length=packet_length@entry=13, blocking=blocking@entry=true) at /test/10.7_dbg/sql/sql_class.h:1357
|
#16 0x000055673f290ae9 in do_command (thd=0x14f3bc000db8, blocking=blocking@entry=true) at /test/10.7_dbg/sql/sql_parse.cc:1404
|
#17 0x000055673f406dd6 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x556741e96f38, put_in_cache=put_in_cache@entry=true) at /test/10.7_dbg/sql/sql_connect.cc:1418
|
#18 0x000055673f4073db in handle_one_connection (arg=arg@entry=0x556741e96f38) at /test/10.7_dbg/sql/sql_connect.cc:1312
|
#19 0x000055673f86fce4 in pfs_spawn_thread (arg=0x556741dbffe8) at /test/10.7_dbg/storage/perfschema/pfs.cc:2201
|
#20 0x000014f403f0a609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#21 0x000014f403af8293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.4.22 (dbg), 10.5.13 (dbg), 10.6.5 (dbg), 10.7.0 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.2.41 (dbg), 10.2.41 (opt), 10.3.32 (dbg), 10.3.32 (opt), 10.4.22 (opt), 10.5.13 (opt), 10.6.5 (opt), 10.7.0 (opt)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.35 (dbg), 5.7.35 (opt), 8.0.26 (dbg), 8.0.26 (opt)
{"report":{"fcp":1192.3999996185303,"ttfb":300.2999997138977,"pageVisibility":"visible","entityId":102154,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"cba8221b-1d15-4ba2-8367-572c00f3c959","navigationType":0,"readyForUser":1321.3999996185303,"redirectCount":0,"resourceLoadedEnd":879.3999996185303,"resourceLoadedStart":316.7999997138977,"resourceTiming":[{"duration":95.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":316.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":316.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":412.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":118.19999980926514,"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":317.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":317.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":435.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":151.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":317.2999997138977,"connectEnd":317.2999997138977,"connectStart":317.2999997138977,"domainLookupEnd":317.2999997138977,"domainLookupStart":317.2999997138977,"fetchStart":317.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":317.2999997138977,"responseEnd":469.09999990463257,"responseStart":469.09999990463257,"secureConnectionStart":317.2999997138977},{"duration":466.40000009536743,"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":317.3999996185303,"connectEnd":317.3999996185303,"connectStart":317.3999996185303,"domainLookupEnd":317.3999996185303,"domainLookupStart":317.3999996185303,"fetchStart":317.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":499.59999990463257,"responseEnd":783.7999997138977,"responseStart":524.6999998092651,"secureConnectionStart":317.3999996185303},{"duration":153.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":317.59999990463257,"connectEnd":317.59999990463257,"connectStart":317.59999990463257,"domainLookupEnd":317.59999990463257,"domainLookupStart":317.59999990463257,"fetchStart":317.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":317.59999990463257,"responseEnd":470.7999997138977,"responseStart":470.7999997138977,"secureConnectionStart":317.59999990463257},{"duration":153.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":317.7999997138977,"connectEnd":317.7999997138977,"connectStart":317.7999997138977,"domainLookupEnd":317.7999997138977,"domainLookupStart":317.7999997138977,"fetchStart":317.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":317.7999997138977,"responseEnd":471.2999997138977,"responseStart":471.2999997138977,"secureConnectionStart":317.7999997138977},{"duration":153.69999980926514,"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":318,"connectEnd":318,"connectStart":318,"domainLookupEnd":318,"domainLookupStart":318,"fetchStart":318,"redirectEnd":0,"redirectStart":0,"requestStart":318,"responseEnd":471.69999980926514,"responseStart":471.69999980926514,"secureConnectionStart":318},{"duration":177.59999990463257,"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":318.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":318.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":495.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":153.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":318.2999997138977,"connectEnd":318.2999997138977,"connectStart":318.2999997138977,"domainLookupEnd":318.2999997138977,"domainLookupStart":318.2999997138977,"fetchStart":318.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":318.2999997138977,"responseEnd":472.19999980926514,"responseStart":472.09999990463257,"secureConnectionStart":318.2999997138977},{"duration":184.10000038146973,"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":318.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":318.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":502.5,"responseStart":0,"secureConnectionStart":0},{"duration":154.09999990463257,"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":318.59999990463257,"connectEnd":318.59999990463257,"connectStart":318.59999990463257,"domainLookupEnd":318.59999990463257,"domainLookupStart":318.59999990463257,"fetchStart":318.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":318.59999990463257,"responseEnd":472.69999980926514,"responseStart":472.69999980926514,"secureConnectionStart":318.59999990463257},{"duration":469.90000009536743,"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":319.69999980926514,"connectEnd":319.69999980926514,"connectStart":319.69999980926514,"domainLookupEnd":319.69999980926514,"domainLookupStart":319.69999980926514,"fetchStart":319.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":545.3999996185303,"responseEnd":789.5999999046326,"responseStart":779.8999996185303,"secureConnectionStart":319.69999980926514},{"duration":559.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":319.7999997138977,"connectEnd":319.7999997138977,"connectStart":319.7999997138977,"domainLookupEnd":319.7999997138977,"domainLookupStart":319.7999997138977,"fetchStart":319.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":864.8999996185303,"responseEnd":879.3999996185303,"responseStart":878.7999997138977,"secureConnectionStart":319.7999997138977},{"duration":313.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":659.0999999046326,"connectEnd":659.0999999046326,"connectStart":659.0999999046326,"domainLookupEnd":659.0999999046326,"domainLookupStart":659.0999999046326,"fetchStart":659.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":929.1999998092651,"responseEnd":973,"responseStart":965.5,"secureConnectionStart":659.0999999046326},{"duration":292.3999996185303,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1097.5,"connectEnd":1097.5,"connectStart":1097.5,"domainLookupEnd":1097.5,"domainLookupStart":1097.5,"fetchStart":1097.5,"redirectEnd":0,"redirectStart":0,"requestStart":1358.1999998092651,"responseEnd":1389.8999996185303,"responseStart":1388.8999996185303,"secureConnectionStart":1097.5},{"duration":301.59999990463257,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1149.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1149.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1451.2999997138977,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":81,"responseStart":300,"responseEnd":309,"domLoading":313,"domInteractive":1519,"domContentLoadedEventStart":1520,"domContentLoadedEventEnd":1594,"domComplete":1985,"loadEventStart":1985,"loadEventEnd":1985,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1463.8999996185303},{"name":"bigPipe.sidebar-id.end","time":1464.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1464.8999996185303},{"name":"bigPipe.activity-panel-pipe-id.end","time":1471.0999999046326},{"name":"activityTabFullyLoaded","time":1616.3999996185303}],"measures":[],"correlationId":"a2bf5e91858ae","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":122,"dbReadsTimeInMs":19,"dbConnsTimeInMs":29,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
See
MDEV-17890for additional testcases that still crash.