Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
10.5 , 10.6 , 10.11 , 11.2(EOL) , 11.4 , 11.6(EOL) , 11.7(EOL)
--source include/have_innodb.inc
SET SQL_MODE= '' ;
BINLOG ' SOgWTg8BAAAAbgAAAHIAAAAAAAQANS42LjMtbTUtZGVidWctbG9nAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAABI6BZOEzgNAAgAEgAEBAQEEgAAVgAEGggAAAAICAgCAAAAAAVAYI8=' ;
CREATE TABLE t1 (i INT ,g GEOMETRY NOT NULL ,SPATIAL INDEX (g)) ENGINE=InnoDB;
CREATE TEMPORARY TABLE t1 (a INT KEY ) ENGINE=InnoDB;
INSERT INTO t1 VALUES (1);
--error ER_DUP_ENTRY
INSERT INTO t1 VALUES (1);
DROP TEMPORARY TABLE IF EXISTS t1;
BINLOG ' SVtYRxMBAAAAKQAAADQBAAAAABAAAAAAAAAABHRlc3QAAnQxAAEDAAE=SVtYRxcBAAAAIgAAAFYBAAAQABAAAAAAAAEAAf /+ AgAAAA==' ;
Leads to:
CS 10.5.27 be164fc401343ed81b9ebd1f6a3cbb31e364a016 (Debug)
Core was generated by `/test/MD270924-mariadb-10.5.27-linux-x86_64-dbg/bin/mariadbd --no-defaults --ma'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 dict_table_get_next_index (index=0x0)at /test/10.5_dbg/storage/innobase/include/dict0dict.inl:239
[Current thread is 1 (Thread 0x152284f53700 (LWP 3215162))]
(gdb) bt
#0 dict_table_get_next_index (index=0x0) at /test/10.5_dbg/storage/innobase/include/dict0dict.inl:239
#1 innobase_get_mysql_key_number_for_index (index=0x15224c0230e8, ib_table=<optimized out>, table=<optimized out>) at /test/10.5_dbg/storage/innobase/handler/ha_innodb.cc:14185
#2 ha_innobase::info_low (this=0x15224c02d4d0, flag=34, is_analyze=is_analyze@entry=false) at /test/10.5_dbg/storage/innobase/handler/ha_innodb.cc:14680
#3 0x000056413ad927a0 in ha_innobase::info (this=<optimized out>, flag=<optimized out>) at /test/10.5_dbg/storage/innobase/handler/ha_innodb.cc:14711
#4 0x000056413a9d3a0e in handler::get_dup_key (this=0x15224c02d4d0, error=error@entry=158) at /test/10.5_dbg/sql/handler.cc:4593
#5 0x000056413ab606a9 in Rows_log_event::write_row (this=this@entry=0x15224c029ea8, rgi=rgi@entry=0x15224c020540, overwrite=false) at /test/10.5_dbg/sql/log_event_server.cc:7387
#6 0x000056413ab6093c in Write_rows_log_event::do_exec_row (this=0x15224c029ea8, rgi=0x15224c020540) at /test/10.5_dbg/sql/log_event_server.cc:7640
#7 0x000056413ab5280f in Rows_log_event::do_apply_event (this=0x15224c029ea8, rgi=0x15224c020540) at /test/10.5_dbg/sql/log_event_server.cc:5770
#8 0x000056413a825dcd in Log_event::apply_event (rgi=0x15224c020540, this=0x15224c029ea8) at /test/10.5_dbg/sql/log_event.h:1495
#9 mysql_client_binlog_statement (thd=thd@entry=0x15224c000d48) at /test/10.5_dbg/sql/sql_binlog.cc:357
#10 0x000056413a7079d9 in mysql_execute_command (thd=thd@entry=0x15224c000d48) at /test/10.5_dbg/sql/sql_parse.cc:6094
#11 0x000056413a6ee552 in mysql_parse (thd=thd@entry=0x15224c000d48, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x152284f522c0, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:8236
#12 0x000056413a6fd297 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x15224c000d48, packet=packet@entry=0x15224c00aa19 "BINLOG ' SVtYRxMBAAAAKQAAADQBAAAAABAAAAAAAAAABHRlc3QAAnQxAAEDAAE=SVtYRxcBAAAAIgAAAFYBAAAQABAAAAAAAAEAAf /+ AgAAAA=='", packet_length=packet_length@entry=116, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_class.h:1329
#13 0x000056413a6fffd0 in do_command (thd=0x15224c000d48) at /test/10.5_dbg/sql/sql_parse.cc:1376
#14 0x000056413a84d905 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x56413ef4b078, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1417
#15 0x000056413a84dfab in handle_one_connection (arg=arg@entry=0x56413ef4b078) at /test/10.5_dbg/sql/sql_connect.cc:1319
#16 0x000056413accf289 in pfs_spawn_thread (arg=0x56413e41c778) at /test/10.5_dbg/storage/perfschema/pfs.cc:2201
#17 0x000015229cb74609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#18 0x000015229c760133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Bug confirmed present in:
MariaDB: 10.5.27 (dbg), 10.5.27 (opt), 10.6.20 (dbg), 10.6.20 (opt), 10.11.10 (dbg), 10.11.10 (opt), 11.1.7 (dbg), 11.1.7 (opt), 11.2.6 (dbg), 11.2.6 (opt), 11.4.4 (dbg), 11.4.4 (opt), 11.6.2 (dbg), 11.6.2 (opt), 11.7.0 (dbg), 11.7.0 (opt)
{"report":{"fcp":1203.0999999046326,"ttfb":370.09999990463257,"pageVisibility":"visible","entityId":131137,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"8d9ba485-eeb7-44d7-8901-56cbdde2edee","navigationType":0,"readyForUser":1323.1999999284744,"redirectCount":0,"resourceLoadedEnd":1646.5999999046326,"resourceLoadedStart":389.59999990463257,"resourceTiming":[{"duration":179.20000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":389.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":389.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":568.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":178.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":390.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":390.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":569.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":295,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":396.09999990463257,"connectEnd":396.09999990463257,"connectStart":396.09999990463257,"domainLookupEnd":396.09999990463257,"domainLookupStart":396.09999990463257,"fetchStart":396.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":396.09999990463257,"responseEnd":691.0999999046326,"responseStart":691.0999999046326,"secureConnectionStart":396.09999990463257},{"duration":449.10000002384186,"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":397.89999997615814,"connectEnd":397.89999997615814,"connectStart":397.89999997615814,"domainLookupEnd":397.89999997615814,"domainLookupStart":397.89999997615814,"fetchStart":397.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":397.89999997615814,"responseEnd":847,"responseStart":847,"secureConnectionStart":397.89999997615814},{"duration":454.90000009536743,"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":398.59999990463257,"connectEnd":398.59999990463257,"connectStart":398.59999990463257,"domainLookupEnd":398.59999990463257,"domainLookupStart":398.59999990463257,"fetchStart":398.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":398.59999990463257,"responseEnd":853.5,"responseStart":853.5,"secureConnectionStart":398.59999990463257},{"duration":456.10000002384186,"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":398.7999999523163,"connectEnd":398.7999999523163,"connectStart":398.7999999523163,"domainLookupEnd":398.7999999523163,"domainLookupStart":398.7999999523163,"fetchStart":398.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":398.7999999523163,"responseEnd":854.8999999761581,"responseStart":854.8999999761581,"secureConnectionStart":398.7999999523163},{"duration":457,"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":399,"connectEnd":399,"connectStart":399,"domainLookupEnd":399,"domainLookupStart":399,"fetchStart":399,"redirectEnd":0,"redirectStart":0,"requestStart":399,"responseEnd":856,"responseStart":856,"secureConnectionStart":399},{"duration":464.10000002384186,"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":399.1999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":399.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":863.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":458.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":399.39999997615814,"connectEnd":399.39999997615814,"connectStart":399.39999997615814,"domainLookupEnd":399.39999997615814,"domainLookupStart":399.39999997615814,"fetchStart":399.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":399.39999997615814,"responseEnd":857.6999999284744,"responseStart":857.6999999284744,"secureConnectionStart":399.39999997615814},{"duration":464.7999999523163,"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":399.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":399.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":864.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":458.8000000715256,"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":399.6999999284744,"connectEnd":399.6999999284744,"connectStart":399.6999999284744,"domainLookupEnd":399.6999999284744,"domainLookupStart":399.6999999284744,"fetchStart":399.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":399.6999999284744,"responseEnd":858.5,"responseStart":858.5,"secureConnectionStart":399.6999999284744},{"duration":1203.6999999284744,"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":400.5,"connectEnd":400.5,"connectStart":400.5,"domainLookupEnd":400.5,"domainLookupStart":400.5,"fetchStart":400.5,"redirectEnd":0,"redirectStart":0,"requestStart":400.5,"responseEnd":1604.1999999284744,"responseStart":1604.1999999284744,"secureConnectionStart":400.5},{"duration":1204,"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":400.59999990463257,"connectEnd":400.59999990463257,"connectStart":400.59999990463257,"domainLookupEnd":400.59999990463257,"domainLookupStart":400.59999990463257,"fetchStart":400.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":400.59999990463257,"responseEnd":1604.5999999046326,"responseStart":1604.5999999046326,"secureConnectionStart":400.59999990463257},{"duration":429,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":853.6999999284744,"connectEnd":853.6999999284744,"connectStart":853.6999999284744,"domainLookupEnd":853.6999999284744,"domainLookupStart":853.6999999284744,"fetchStart":853.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":853.6999999284744,"responseEnd":1282.6999999284744,"responseStart":1282.6999999284744,"secureConnectionStart":853.6999999284744},{"duration":427,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1195.8999999761581,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1195.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1622.8999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":255.60000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/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&whisper-enabled=true","startTime":1390.8999999761581,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1390.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1646.5,"responseStart":0,"secureConnectionStart":0},{"duration":254.89999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1391.6999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1391.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1646.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":252.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/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&whisper-enabled=true","startTime":1392.6999999284744,"connectEnd":1392.6999999284744,"connectStart":1392.6999999284744,"domainLookupEnd":1392.6999999284744,"domainLookupStart":1392.6999999284744,"fetchStart":1392.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":1392.6999999284744,"responseEnd":1644.7999999523163,"responseStart":1644.7999999523163,"secureConnectionStart":1392.6999999284744},{"duration":260.6999999284744,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/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&whisper-enabled=true","startTime":1393.3999999761581,"connectEnd":1393.3999999761581,"connectStart":1393.3999999761581,"domainLookupEnd":1393.3999999761581,"domainLookupStart":1393.3999999761581,"fetchStart":1393.3999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":1393.3999999761581,"responseEnd":1654.0999999046326,"responseStart":1654.0999999046326,"secureConnectionStart":1393.3999999761581},{"duration":261.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/e0bf5781d46ea69fb123572974cf39de-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/js/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":1394.0999999046326,"connectEnd":1394.0999999046326,"connectStart":1394.0999999046326,"domainLookupEnd":1394.0999999046326,"domainLookupStart":1394.0999999046326,"fetchStart":1394.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1394.0999999046326,"responseEnd":1655.7999999523163,"responseStart":1655.7999999523163,"secureConnectionStart":1394.0999999046326}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":212,"responseStart":370,"responseEnd":387,"domLoading":376,"domInteractive":1653,"domContentLoadedEventStart":1653,"domContentLoadedEventEnd":1719,"domComplete":2517,"loadEventStart":2517,"loadEventEnd":2518,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1625.5},{"name":"bigPipe.sidebar-id.end","time":1626.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":1626.3999999761581},{"name":"bigPipe.activity-panel-pipe-id.end","time":1629.0999999046326},{"name":"activityTabFullyLoaded","time":1733.1999999284744}],"measures":[],"correlationId":"96ee829f436eea","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":95,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}