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":1099.9000000953674,"ttfb":341.80000019073486,"pageVisibility":"visible","entityId":102154,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"4c7460b3-58fb-49bc-bfd0-8356be7a9dcd","navigationType":0,"readyForUser":1252.6999998092651,"redirectCount":0,"resourceLoadedEnd":1159.4000000953674,"resourceLoadedStart":348.59999990463257,"resourceTiming":[{"duration":269,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":348.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":348.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":617.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":269,"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":348.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":348.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":617.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":278,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":349.09999990463257,"connectEnd":349.09999990463257,"connectStart":349.09999990463257,"domainLookupEnd":349.09999990463257,"domainLookupStart":349.09999990463257,"fetchStart":349.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":349.09999990463257,"responseEnd":627.0999999046326,"responseStart":627.0999999046326,"secureConnectionStart":349.09999990463257},{"duration":354.19999980926514,"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":349.30000019073486,"connectEnd":349.30000019073486,"connectStart":349.30000019073486,"domainLookupEnd":349.30000019073486,"domainLookupStart":349.30000019073486,"fetchStart":349.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":349.30000019073486,"responseEnd":703.5,"responseStart":703.5,"secureConnectionStart":349.30000019073486},{"duration":357.7000002861023,"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":349.59999990463257,"connectEnd":349.59999990463257,"connectStart":349.59999990463257,"domainLookupEnd":349.59999990463257,"domainLookupStart":349.59999990463257,"fetchStart":349.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":349.59999990463257,"responseEnd":707.3000001907349,"responseStart":707.3000001907349,"secureConnectionStart":349.59999990463257},{"duration":357.8999996185303,"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":349.80000019073486,"connectEnd":349.80000019073486,"connectStart":349.80000019073486,"domainLookupEnd":349.80000019073486,"domainLookupStart":349.80000019073486,"fetchStart":349.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":349.80000019073486,"responseEnd":707.6999998092651,"responseStart":707.6999998092651,"secureConnectionStart":349.80000019073486},{"duration":358.09999990463257,"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":350,"connectEnd":350,"connectStart":350,"domainLookupEnd":350,"domainLookupStart":350,"fetchStart":350,"redirectEnd":0,"redirectStart":0,"requestStart":350,"responseEnd":708.0999999046326,"responseStart":708.0999999046326,"secureConnectionStart":350},{"duration":420.5,"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":350.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":350.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":770.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":358.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":350.40000009536743,"connectEnd":350.40000009536743,"connectStart":350.40000009536743,"domainLookupEnd":350.40000009536743,"domainLookupStart":350.40000009536743,"fetchStart":350.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":350.40000009536743,"responseEnd":708.5,"responseStart":708.5,"secureConnectionStart":350.40000009536743},{"duration":420.30000019073486,"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":350.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":350.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":770.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":358.40000009536743,"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":350.69999980926514,"connectEnd":350.69999980926514,"connectStart":350.69999980926514,"domainLookupEnd":350.69999980926514,"domainLookupStart":350.69999980926514,"fetchStart":350.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":350.69999980926514,"responseEnd":709.0999999046326,"responseStart":709.0999999046326,"secureConnectionStart":350.69999980926514},{"duration":707.4000000953674,"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":351.69999980926514,"connectEnd":351.69999980926514,"connectStart":351.69999980926514,"domainLookupEnd":351.69999980926514,"domainLookupStart":351.69999980926514,"fetchStart":351.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":351.69999980926514,"responseEnd":1059.0999999046326,"responseStart":1059.0999999046326,"secureConnectionStart":351.69999980926514},{"duration":727.2999997138977,"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":351.80000019073486,"connectEnd":351.80000019073486,"connectStart":351.80000019073486,"domainLookupEnd":351.80000019073486,"domainLookupStart":351.80000019073486,"fetchStart":351.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":351.80000019073486,"responseEnd":1079.0999999046326,"responseStart":1079.0999999046326,"secureConnectionStart":351.80000019073486},{"duration":277.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":782.5,"connectEnd":782.5,"connectStart":782.5,"domainLookupEnd":782.5,"domainLookupStart":782.5,"fetchStart":782.5,"redirectEnd":0,"redirectStart":0,"requestStart":782.5,"responseEnd":1059.5999999046326,"responseStart":1059.5999999046326,"secureConnectionStart":782.5},{"duration":201.90000009536743,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1093.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1093.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1295.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":42.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-jira.view.issue,-jira.navigator.kickass,-viewissue.standalone,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1117.3000001907349,"connectEnd":1117.3000001907349,"connectStart":1117.3000001907349,"domainLookupEnd":1117.3000001907349,"domainLookupStart":1117.3000001907349,"fetchStart":1117.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1117.3000001907349,"responseEnd":1159.4000000953674,"responseStart":1159.4000000953674,"secureConnectionStart":1117.3000001907349}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":161,"responseStart":342,"responseEnd":345,"domLoading":345,"domInteractive":1336,"domContentLoadedEventStart":1337,"domContentLoadedEventEnd":1404,"domComplete":2025,"loadEventStart":2025,"loadEventEnd":2026,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1299},{"name":"bigPipe.sidebar-id.end","time":1299.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1299.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1304.1999998092651},{"name":"activityTabFullyLoaded","time":1424.5999999046326}],"measures":[],"correlationId":"a10783dab361ba","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":113,"dbReadsTimeInMs":13,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Ok to push.