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":997.0999999046326,"ttfb":266.09999990463257,"pageVisibility":"visible","entityId":131137,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"eda68db7-89a0-4d9c-85c0-64d6f703a877","navigationType":0,"readyForUser":1081.5,"redirectCount":0,"resourceLoadedEnd":1060.9000000953674,"resourceLoadedStart":271.09999990463257,"resourceTiming":[{"duration":177.7000002861023,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":271.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":271.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":448.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":177.69999980926514,"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":271.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":271.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":449.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":187.89999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":271.7000002861023,"connectEnd":271.7000002861023,"connectStart":271.7000002861023,"domainLookupEnd":271.7000002861023,"domainLookupStart":271.7000002861023,"fetchStart":271.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":271.7000002861023,"responseEnd":459.59999990463257,"responseStart":459.59999990463257,"secureConnectionStart":271.7000002861023},{"duration":273.69999980926514,"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":271.80000019073486,"connectEnd":271.80000019073486,"connectStart":271.80000019073486,"domainLookupEnd":271.80000019073486,"domainLookupStart":271.80000019073486,"fetchStart":271.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":271.80000019073486,"responseEnd":545.5,"responseStart":545.5,"secureConnectionStart":271.80000019073486},{"duration":276.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":272,"connectEnd":272,"connectStart":272,"domainLookupEnd":272,"domainLookupStart":272,"fetchStart":272,"redirectEnd":0,"redirectStart":0,"requestStart":272,"responseEnd":548.9000000953674,"responseStart":548.9000000953674,"secureConnectionStart":272},{"duration":277.09999990463257,"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":272.30000019073486,"connectEnd":272.30000019073486,"connectStart":272.30000019073486,"domainLookupEnd":272.30000019073486,"domainLookupStart":272.30000019073486,"fetchStart":272.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":272.30000019073486,"responseEnd":549.4000000953674,"responseStart":549.4000000953674,"secureConnectionStart":272.30000019073486},{"duration":277.19999980926514,"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":272.40000009536743,"connectEnd":272.40000009536743,"connectStart":272.40000009536743,"domainLookupEnd":272.40000009536743,"domainLookupStart":272.40000009536743,"fetchStart":272.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":272.40000009536743,"responseEnd":549.5999999046326,"responseStart":549.5999999046326,"secureConnectionStart":272.40000009536743},{"duration":332.30000019073486,"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":272.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":272.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":604.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":277.3999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":272.7000002861023,"connectEnd":272.7000002861023,"connectStart":272.7000002861023,"domainLookupEnd":272.7000002861023,"domainLookupStart":272.7000002861023,"fetchStart":272.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":272.7000002861023,"responseEnd":550.0999999046326,"responseStart":550.0999999046326,"secureConnectionStart":272.7000002861023},{"duration":332.09999990463257,"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":272.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":272.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":605,"responseStart":0,"secureConnectionStart":0},{"duration":277.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":273.09999990463257,"connectEnd":273.09999990463257,"connectStart":273.09999990463257,"domainLookupEnd":273.09999990463257,"domainLookupStart":273.09999990463257,"fetchStart":273.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":273.09999990463257,"responseEnd":550.5999999046326,"responseStart":550.5999999046326,"secureConnectionStart":273.09999990463257},{"duration":769.0999999046326,"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":278.7000002861023,"connectEnd":278.7000002861023,"connectStart":278.7000002861023,"domainLookupEnd":278.7000002861023,"domainLookupStart":278.7000002861023,"fetchStart":278.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":278.7000002861023,"responseEnd":1047.8000001907349,"responseStart":1047.8000001907349,"secureConnectionStart":278.7000002861023},{"duration":781.8000001907349,"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":279.09999990463257,"connectEnd":279.09999990463257,"connectStart":279.09999990463257,"domainLookupEnd":279.09999990463257,"domainLookupStart":279.09999990463257,"fetchStart":279.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":279.09999990463257,"responseEnd":1060.9000000953674,"responseStart":1060.8000001907349,"secureConnectionStart":279.09999990463257},{"duration":147.69999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":617.4000000953674,"connectEnd":617.4000000953674,"connectStart":617.4000000953674,"domainLookupEnd":617.4000000953674,"domainLookupStart":617.4000000953674,"fetchStart":617.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":617.4000000953674,"responseEnd":765.0999999046326,"responseStart":765.0999999046326,"secureConnectionStart":617.4000000953674}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":68,"responseStart":266,"responseEnd":277,"domLoading":269,"domInteractive":1145,"domContentLoadedEventStart":1145,"domContentLoadedEventEnd":1194,"domComplete":1780,"loadEventStart":1780,"loadEventEnd":1780,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1124.4000000953674},{"name":"bigPipe.sidebar-id.end","time":1125.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1125.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1126.5},{"name":"activityTabFullyLoaded","time":1213.8000001907349}],"measures":[],"correlationId":"29c2b24ceeb29d","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":118,"dbReadsTimeInMs":19,"dbConnsTimeInMs":29,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}