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":1622.7000000476837,"ttfb":382.60000014305115,"pageVisibility":"visible","entityId":102154,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"310dabb9-230f-428a-bdd0-a7d3274abfa9","navigationType":0,"readyForUser":1745.1000001430511,"redirectCount":0,"resourceLoadedEnd":1081.4000000953674,"resourceLoadedStart":393.90000009536743,"resourceTiming":[{"duration":57.200000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":393.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":393.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":451.10000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":57.200000047683716,"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":394.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":394.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":451.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":368.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":394.5,"connectEnd":394.5,"connectStart":394.5,"domainLookupEnd":394.5,"domainLookupStart":394.5,"fetchStart":394.5,"redirectEnd":0,"redirectStart":0,"requestStart":461.7999999523163,"responseEnd":762.6000001430511,"responseStart":495.60000014305115,"secureConnectionStart":394.5},{"duration":656.3000001907349,"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":394.7999999523163,"connectEnd":394.7999999523163,"connectStart":394.7999999523163,"domainLookupEnd":394.7999999523163,"domainLookupStart":394.7999999523163,"fetchStart":394.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":461.90000009536743,"responseEnd":1051.1000001430511,"responseStart":496.2000000476837,"secureConnectionStart":394.7999999523163},{"duration":106.79999995231628,"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":394.90000009536743,"connectEnd":394.90000009536743,"connectStart":394.90000009536743,"domainLookupEnd":394.90000009536743,"domainLookupStart":394.90000009536743,"fetchStart":394.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":462,"responseEnd":501.7000000476837,"responseStart":497.90000009536743,"secureConnectionStart":394.90000009536743},{"duration":106.79999995231628,"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":395.10000014305115,"connectEnd":395.10000014305115,"connectStart":395.10000014305115,"domainLookupEnd":395.10000014305115,"domainLookupStart":395.10000014305115,"fetchStart":395.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":462.2000000476837,"responseEnd":501.90000009536743,"responseStart":498.40000009536743,"secureConnectionStart":395.10000014305115},{"duration":107,"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":395.40000009536743,"connectEnd":395.40000009536743,"connectStart":395.40000009536743,"domainLookupEnd":395.40000009536743,"domainLookupStart":395.40000009536743,"fetchStart":395.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":462.2999999523163,"responseEnd":502.40000009536743,"responseStart":499.7000000476837,"secureConnectionStart":395.40000009536743},{"duration":64.19999980926514,"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":395.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":395.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":459.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":106.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":395.7999999523163,"connectEnd":395.7999999523163,"connectStart":395.7999999523163,"domainLookupEnd":395.7999999523163,"domainLookupStart":395.7999999523163,"fetchStart":395.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":462.5,"responseEnd":502.2000000476837,"responseStart":499.10000014305115,"secureConnectionStart":395.7999999523163},{"duration":64.10000014305115,"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":396,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":396,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":460.10000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":108.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":396.2000000476837,"connectEnd":396.2000000476837,"connectStart":396.2000000476837,"domainLookupEnd":396.2000000476837,"domainLookupStart":396.2000000476837,"fetchStart":396.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":465.10000014305115,"responseEnd":504.60000014305115,"responseStart":502.90000009536743,"secureConnectionStart":396.2000000476837},{"duration":666.7000000476837,"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":405.40000009536743,"connectEnd":405.40000009536743,"connectStart":405.40000009536743,"domainLookupEnd":405.40000009536743,"domainLookupStart":405.40000009536743,"fetchStart":405.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":523.6000001430511,"responseEnd":1072.1000001430511,"responseStart":1061,"secureConnectionStart":405.40000009536743},{"duration":665.9000000953674,"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":415.5,"connectEnd":415.5,"connectStart":415.5,"domainLookupEnd":415.5,"domainLookupStart":415.5,"fetchStart":415.5,"redirectEnd":0,"redirectStart":0,"requestStart":533.2999999523163,"responseEnd":1081.4000000953674,"responseStart":1064.7999999523163,"secureConnectionStart":415.5},{"duration":269.30000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":923.2999999523163,"connectEnd":923.2999999523163,"connectStart":923.2999999523163,"domainLookupEnd":923.2999999523163,"domainLookupStart":923.2999999523163,"fetchStart":923.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1160,"responseEnd":1192.6000001430511,"responseStart":1191.9000000953674,"secureConnectionStart":923.2999999523163}],"fetchStart":1,"domainLookupStart":134,"domainLookupEnd":135,"connectStart":135,"connectEnd":154,"secureConnectionStart":143,"requestStart":155,"responseStart":383,"responseEnd":416,"domLoading":389,"domInteractive":1831,"domContentLoadedEventStart":1831,"domContentLoadedEventEnd":1913,"domComplete":3336,"loadEventStart":3336,"loadEventEnd":3336,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1791.5},{"name":"bigPipe.sidebar-id.end","time":1792.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1792.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1796.7999999523163},{"name":"activityTabFullyLoaded","time":1934}],"measures":[],"correlationId":"10bb408fbd4a9d","effectiveType":"4g","downlink":9.8,"rtt":0,"serverDuration":133,"dbReadsTimeInMs":14,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
See
MDEV-17890for additional testcases that still crash.