INSTALL PLUGIN spider SONAME 'ha_spider.so';
|
CREATE TABLE t0 (a INT,KEY(a)) ENGINE=SPIDER;
|
CREATE TABLE t1 (a INT,KEY(a)) ENGINE=SPIDER;
|
INSERT INTO t1 SELECT * FROM t1 ;
|
ALTER TABLE t1 CHANGE COLUMN n o CHAR(10);
|
INSERT INTO t0 VALUES (0);
|
SELECT MIN(a) FROM t1;
|
Leads to:
10.8.0 ccdf5711a8fff0cd610a91fdcf37c8ff1182878c (Optimized)
|
Core was generated by `/test/MD121221-mariadb-10.8.0-linux-x86_64-opt/bin/mysqld --no-defaults --core-'.
|
Program terminated with signal SIGSEGV, Segmentation fault.
|
#0 0x00001518ac4db28b in spider_set_direct_limit_offset (
|
spider=spider@entry=0x1517f007d870)
|
at /test/10.8_opt/storage/spider/spd_table.cc:9535
|
9535 if (spider->partition_handler_share->owner->
|
[Current thread is 1 (Thread 0x1518ac5c1700 (LWP 2638237))]
|
(gdb) bt
|
#0 0x00001518ac4db28b in spider_set_direct_limit_offset (spider=spider@entry=0x1517f007d870) at /test/10.8_opt/storage/spider/spd_table.cc:9535
|
#1 0x00001518ac4f8ecf in ha_spider::check_direct_order_limit (this=0x1517f007d870) at /test/10.8_opt/storage/spider/ha_spider.cc:13105
|
#2 ha_spider::check_direct_order_limit (this=0x1517f007d870) at /test/10.8_opt/storage/spider/ha_spider.cc:13089
|
#3 0x00001518ac4fe74b in ha_spider::index_read_map_internal (find_flag=HA_READ_AFTER_KEY, keypart_map=1, key=0x1518ac5be930 "\001", buf=0x1517f006ff38 "\377", this=0x1517f007d870) at /test/10.8_opt/storage/spider/ha_spider.cc:1918
|
#4 ha_spider::index_read_map_internal (this=0x1517f007d870, buf=0x1517f006ff38 "\377", key=0x1518ac5be930 "\001", keypart_map=1, find_flag=HA_READ_AFTER_KEY) at /test/10.8_opt/storage/spider/ha_spider.cc:1882
|
#5 0x0000557bad24ead8 in handler::ha_index_read_map (this=0x1517f007d870, buf=0x1517f006ff38 "\377", key=0x1518ac5be930 "\001", keypart_map=1, find_flag=find_flag@entry=HA_READ_AFTER_KEY) at /test/10.8_opt/sql/handler.cc:3450
|
#6 0x0000557bacf303d4 in get_index_min_value (item_field=0x1517f0010db8, prefix_len=<optimized out>, range_fl=<optimized out>, ref=0x1518ac5be8c0, table=0x1517f006fb58) at /test/10.8_opt/sql/opt_sum.cc:154
|
#7 opt_sum_query (thd=0x1517f0000c58, tables=@0x1517f0010b50: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x1517f0012618, last = 0x1517f0012618, elements = 1}, <No data fields>}, all_fields=@0x1517f00123c8: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x1517f0011010, last = 0x1517f0011010, elements = 1}, <No data fields>}, conds=0x0) at /test/10.8_opt/sql/opt_sum.cc:411
|
#8 0x0000557bad0796bd in JOIN::optimize_inner (this=0x1517f0012060) at /test/10.8_opt/sql/sql_select.cc:2364
|
#9 0x0000557bad07b803 in JOIN::optimize (this=this@entry=0x1517f0012060) at /test/10.8_opt/sql/sql_select.cc:1809
|
#10 0x0000557bad07b8ee in mysql_select (thd=0x1517f0000c58, tables=0x1517f0011070, fields=@0x1517f0010bd8: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x1517f0011010, last = 0x1517f0011010, elements = 1}, <No data fields>}, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=<optimized out>, result=0x1517f0012038, unit=0x1517f0004ea0, select_lex=0x1517f0010938) at /test/10.8_opt/sql/sql_select.cc:4979
|
#11 0x0000557bad07c0f7 in handle_select (thd=thd@entry=0x1517f0000c58, lex=lex@entry=0x1517f0004dc8, result=result@entry=0x1517f0012038, setup_tables_done_option=setup_tables_done_option@entry=0) at /test/10.8_opt/sql/sql_select.cc:545
|
#12 0x0000557bacffcc01 in execute_sqlcom_select (thd=0x1517f0000c58, all_tables=0x1517f0011070) at /test/10.8_opt/sql/sql_parse.cc:6253
|
#13 0x0000557bad00aef2 in mysql_execute_command (thd=0x1517f0000c58, is_called_from_prepared_stmt=<optimized out>) at /test/10.8_opt/sql/sql_parse.cc:3944
|
#14 0x0000557bacff7986 in mysql_parse (thd=0x1517f0000c58, rawbuf=<optimized out>, length=<optimized out>, parser_state=<optimized out>) at /test/10.8_opt/sql/sql_parse.cc:8028
|
#15 0x0000557bad003b35 in dispatch_command (command=COM_QUERY, thd=0x1517f0000c58, packet=<optimized out>, packet_length=<optimized out>, blocking=<optimized out>) at /test/10.8_opt/sql/sql_class.h:1360
|
#16 0x0000557bad005d27 in do_command (thd=0x1517f0000c58, blocking=blocking@entry=true) at /test/10.8_opt/sql/sql_parse.cc:1402
|
#17 0x0000557bad1242e7 in do_handle_one_connection (connect=<optimized out>, put_in_cache=true) at /test/10.8_opt/sql/sql_connect.cc:1418
|
#18 0x0000557bad12462d in handle_one_connection (arg=arg@entry=0x557bafb61be8) at /test/10.8_opt/sql/sql_connect.cc:1312
|
#19 0x0000557bad4925d8 in pfs_spawn_thread (arg=0x557bafb19218) at /test/10.8_opt/storage/perfschema/pfs.cc:2201
|
#20 0x00001518cb751609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#21 0x00001518cb33f293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.5.14 (opt), 10.6.6 (opt), 10.7.2 (opt), 10.8.0 (opt)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.2.42 (dbg), 10.2.42 (opt), 10.3.33 (dbg), 10.3.33 (opt), 10.4.23 (dbg), 10.4.23 (opt), 10.5.14 (dbg), 10.6.6 (dbg), 10.7.2 (dbg), 10.8.0 (dbg)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.36 (dbg), 5.7.36 (opt), 8.0.27 (dbg), 8.0.27 (opt)
{"report":{"fcp":993.1000001430511,"ttfb":202.79999995231628,"pageVisibility":"visible","entityId":106292,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"0b58b0e4-083d-4682-9a91-21b6b614c361","navigationType":0,"readyForUser":1080.5,"redirectCount":0,"resourceLoadedEnd":1399.5,"resourceLoadedStart":209.60000014305115,"resourceTiming":[{"duration":199.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":209.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":209.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":409.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":199.29999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":209.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":209.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":409.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":208.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":210.10000014305115,"connectEnd":210.10000014305115,"connectStart":210.10000014305115,"domainLookupEnd":210.10000014305115,"domainLookupStart":210.10000014305115,"fetchStart":210.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":210.10000014305115,"responseEnd":418.2999999523163,"responseStart":418.2999999523163,"secureConnectionStart":210.10000014305115},{"duration":468.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":210.10000014305115,"connectEnd":210.10000014305115,"connectStart":210.10000014305115,"domainLookupEnd":210.10000014305115,"domainLookupStart":210.10000014305115,"fetchStart":210.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":210.10000014305115,"responseEnd":678.7000000476837,"responseStart":678.7000000476837,"secureConnectionStart":210.10000014305115},{"duration":472.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":210.29999995231628,"connectEnd":210.29999995231628,"connectStart":210.29999995231628,"domainLookupEnd":210.29999995231628,"domainLookupStart":210.29999995231628,"fetchStart":210.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":210.29999995231628,"responseEnd":682.5,"responseStart":682.5,"secureConnectionStart":210.29999995231628},{"duration":473.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":210.29999995231628,"connectEnd":210.29999995231628,"connectStart":210.29999995231628,"domainLookupEnd":210.29999995231628,"domainLookupStart":210.29999995231628,"fetchStart":210.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":210.29999995231628,"responseEnd":683.9000000953674,"responseStart":683.9000000953674,"secureConnectionStart":210.29999995231628},{"duration":473.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":210.5,"connectEnd":210.5,"connectStart":210.5,"domainLookupEnd":210.5,"domainLookupStart":210.5,"fetchStart":210.5,"redirectEnd":0,"redirectStart":0,"requestStart":210.5,"responseEnd":684.2999999523163,"responseStart":684.2999999523163,"secureConnectionStart":210.5},{"duration":474.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":210.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":210.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":685.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":474.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":210.70000004768372,"connectEnd":210.70000004768372,"connectStart":210.70000004768372,"domainLookupEnd":210.70000004768372,"domainLookupStart":210.70000004768372,"fetchStart":210.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":210.70000004768372,"responseEnd":685.1000001430511,"responseStart":685.1000001430511,"secureConnectionStart":210.70000004768372},{"duration":475,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":210.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":210.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":685.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":474.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":211.10000014305115,"connectEnd":211.10000014305115,"connectStart":211.10000014305115,"domainLookupEnd":211.10000014305115,"domainLookupStart":211.10000014305115,"fetchStart":211.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":211.10000014305115,"responseEnd":685.9000000953674,"responseStart":685.9000000953674,"secureConnectionStart":211.10000014305115},{"duration":559.6000001430511,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":211.79999995231628,"connectEnd":211.79999995231628,"connectStart":211.79999995231628,"domainLookupEnd":211.79999995231628,"domainLookupStart":211.79999995231628,"fetchStart":211.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":211.79999995231628,"responseEnd":771.4000000953674,"responseStart":771.2999999523163,"secureConnectionStart":211.79999995231628},{"duration":1174.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":211.90000009536743,"connectEnd":211.90000009536743,"connectStart":211.90000009536743,"domainLookupEnd":211.90000009536743,"domainLookupStart":211.90000009536743,"fetchStart":211.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":211.90000009536743,"responseEnd":1386.2000000476837,"responseStart":1386.2000000476837,"secureConnectionStart":211.90000009536743},{"duration":124.20000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":568.2000000476837,"connectEnd":568.2000000476837,"connectStart":568.2000000476837,"domainLookupEnd":568.2000000476837,"domainLookupStart":568.2000000476837,"fetchStart":568.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":568.2000000476837,"responseEnd":692.4000000953674,"responseStart":692.4000000953674,"secureConnectionStart":568.2000000476837},{"duration":76.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/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","startTime":697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":773.5,"responseStart":0,"secureConnectionStart":0},{"duration":694.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/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","startTime":697.7999999523163,"connectEnd":697.7999999523163,"connectStart":697.7999999523163,"domainLookupEnd":697.7999999523163,"domainLookupStart":697.7999999523163,"fetchStart":697.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":697.7999999523163,"responseEnd":1392.6000001430511,"responseStart":1392.6000001430511,"secureConnectionStart":697.7999999523163},{"duration":701.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/f51ef5507eea4c158f257c66c93b2a3f-CDN/lu2bu7/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","startTime":698.2000000476837,"connectEnd":698.2000000476837,"connectStart":698.2000000476837,"domainLookupEnd":698.2000000476837,"domainLookupStart":698.2000000476837,"fetchStart":698.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":698.2000000476837,"responseEnd":1399.5,"responseStart":1399.5,"secureConnectionStart":698.2000000476837}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":71,"responseStart":203,"responseEnd":209,"domLoading":207,"domInteractive":1411,"domContentLoadedEventStart":1411,"domContentLoadedEventEnd":1452,"domComplete":1972,"loadEventStart":1972,"loadEventEnd":1974,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1388},{"name":"bigPipe.sidebar-id.end","time":1388.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1389.1000001430511},{"name":"bigPipe.activity-panel-pipe-id.end","time":1391.5},{"name":"activityTabFullyLoaded","time":1464.9000000953674}],"measures":[],"correlationId":"e719336cdddcf3","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":76,"dbReadsTimeInMs":11,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}