-
Bug
-
-
Major
-
Resolution:
Fixed
-
None
-
None
-
None
-
Repeatable in maria-5.3 , repeatable in maria-5.3-subqueries-mwl90. Not repeatable with maria-5.3 before WL#106. EXPLAIN also crashes.
backtrace:
#3 <signal handler called>
#4 0x000000000080672c in pull_out_semijoin_tables (join=0xc34b1f0) at opt_subselect.cc:1545
#5 0x0000000000747d35 in make_join_statistics (join=0xc34b1f0, tables_list=..., conds=0xc303cd0, keyuse_array=0xc3511a0) at sql_select.cc:3460
#6 0x000000000074a49e in JOIN::optimize (this=0xc34b1f0) at sql_select.cc:1101
#7 0x000000000074dfbd in mysql_select (thd=0xc23f098, rref_pointer_array=0xc241c18, tables=0xc2c4ee8, wild_num=1, fields=..., conds=0xc301728, og_num=0,
order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0xc301990, unit=0xc241510, select_lex=0xc2419f8)
at sql_select.cc:2872
#8 0x000000000075443c in handle_select (thd=0xc23f098, lex=0xc241470, result=0xc301990, setup_tables_done_option=0) at sql_select.cc:283
#9 0x00000000006a1744 in execute_sqlcom_select (thd=0xc23f098, all_tables=0xc2c4ee8) at sql_parse.cc:5082
#10 0x00000000006a33f7 in mysql_execute_command (thd=0xc23f098) at sql_parse.cc:2227
#11 0x00000000006ac18f in mysql_parse (thd=0xc23f098,
rawbuf=0xc2c4c40 "SELECT *\nFROM t1\nWHERE t1.f1 IN (\nSELECT t2.f2\nFROM t2\nLEFT JOIN (\nSELECT *\nFROM t3\n) AS alias1\nON alias1.f3 = t2.f2\n)",
length=118, found_semicolon=0x422b9f08) at sql_parse.cc:6083
#12 0x00000000006ad027 in dispatch_command (command=COM_QUERY, thd=0xc23f098,
packet=0xc2bb8c9 "SELECT *\nFROM t1\nWHERE t1.f1 IN (\nSELECT t2.f2\nFROM t2\nLEFT JOIN (\nSELECT *\nFROM t3\n) AS alias1\nON alias1.f3 = t2.f2\n)\n",
packet_length=119) at sql_parse.cc:1206
#13 0x00000000006ae635 in do_command (thd=0xc23f098) at sql_parse.cc:904
#14 0x00000000006990eb in handle_one_connection (arg=0xc23f098) at sql_connect.cc:1178
#15 0x00000033b600673d in start_thread () from /lib64/libpthread.so.0
#16 0x00000033b58d40cd in clone () from /lib64/libc.so.6
optimizer switch in effect:
index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=off,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=on,mrr_cost_based=off,mrr_sort_keys=on,outer_join_with_cache=off,semijoin_with_cache=off,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on
test case:
CREATE TABLE t1 ( f1 int) ;
INSERT INTO t1 VALUES (1),(1);
CREATE TABLE t2 ( f2 int) ;
INSERT INTO t2 VALUES (1),(1);
CREATE TABLE t3 ( f3 int) ;
INSERT INTO t3 VALUES (1),(1);
SELECT *
FROM t1
WHERE t1.f1 IN (
SELECT t2.f2
FROM t2
LEFT JOIN (
SELECT *
FROM t3
) AS alias1
ON alias1.f3 = t2.f2
);
{"report":{"fcp":697.6000001430511,"ttfb":155.79999995231628,"pageVisibility":"visible","entityId":20813,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"78c819ee-4021-4ee0-b460-26136f00ac32","navigationType":0,"readyForUser":751.7000000476837,"redirectCount":0,"resourceLoadedEnd":658,"resourceLoadedStart":161.20000004768372,"resourceTiming":[{"duration":21.299999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":161.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":161.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":182.5,"responseStart":0,"secureConnectionStart":0},{"duration":21.5,"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":161.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":161.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":183,"responseStart":0,"secureConnectionStart":0},{"duration":74,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":161.5,"connectEnd":161.5,"connectStart":161.5,"domainLookupEnd":161.5,"domainLookupStart":161.5,"fetchStart":161.5,"redirectEnd":0,"redirectStart":0,"requestStart":161.5,"responseEnd":235.5,"responseStart":235.5,"secureConnectionStart":161.5},{"duration":144.69999980926514,"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":161.60000014305115,"connectEnd":161.60000014305115,"connectStart":161.60000014305115,"domainLookupEnd":161.60000014305115,"domainLookupStart":161.60000014305115,"fetchStart":161.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":161.60000014305115,"responseEnd":306.2999999523163,"responseStart":306.2999999523163,"secureConnectionStart":161.60000014305115},{"duration":148.20000004768372,"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":161.70000004768372,"connectEnd":161.70000004768372,"connectStart":161.70000004768372,"domainLookupEnd":161.70000004768372,"domainLookupStart":161.70000004768372,"fetchStart":161.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":161.70000004768372,"responseEnd":309.90000009536743,"responseStart":309.90000009536743,"secureConnectionStart":161.70000004768372},{"duration":148.70000004768372,"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":161.79999995231628,"connectEnd":161.79999995231628,"connectStart":161.79999995231628,"domainLookupEnd":161.79999995231628,"domainLookupStart":161.79999995231628,"fetchStart":161.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":161.79999995231628,"responseEnd":310.5,"responseStart":310.5,"secureConnectionStart":161.79999995231628},{"duration":149.5,"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":162,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":162,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":311.5,"responseStart":0,"secureConnectionStart":0},{"duration":149,"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":162,"connectEnd":162,"connectStart":162,"domainLookupEnd":162,"domainLookupStart":162,"fetchStart":162,"redirectEnd":0,"redirectStart":0,"requestStart":162,"responseEnd":311,"responseStart":311,"secureConnectionStart":162},{"duration":149.79999995231628,"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":162.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":162.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":312,"responseStart":0,"secureConnectionStart":0},{"duration":149.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":162.20000004768372,"connectEnd":162.20000004768372,"connectStart":162.20000004768372,"domainLookupEnd":162.20000004768372,"domainLookupStart":162.20000004768372,"fetchStart":162.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":162.20000004768372,"responseEnd":311.5,"responseStart":311.5,"secureConnectionStart":162.20000004768372},{"duration":149.70000004768372,"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":162.40000009536743,"connectEnd":162.40000009536743,"connectStart":162.40000009536743,"domainLookupEnd":162.40000009536743,"domainLookupStart":162.40000009536743,"fetchStart":162.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":162.40000009536743,"responseEnd":312.10000014305115,"responseStart":312.10000014305115,"secureConnectionStart":162.40000009536743},{"duration":351,"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":163,"connectEnd":163,"connectStart":163,"domainLookupEnd":163,"domainLookupStart":163,"fetchStart":163,"redirectEnd":0,"redirectStart":0,"requestStart":163,"responseEnd":514,"responseStart":514,"secureConnectionStart":163},{"duration":494.89999985694885,"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":163.10000014305115,"connectEnd":163.10000014305115,"connectStart":163.10000014305115,"domainLookupEnd":163.10000014305115,"domainLookupStart":163.10000014305115,"fetchStart":163.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":163.10000014305115,"responseEnd":658,"responseStart":658,"secureConnectionStart":163.10000014305115},{"duration":203.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":450.2000000476837,"connectEnd":450.2000000476837,"connectStart":450.2000000476837,"domainLookupEnd":450.2000000476837,"domainLookupStart":450.2000000476837,"fetchStart":450.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":450.2000000476837,"responseEnd":653.7999999523163,"responseStart":653.7999999523163,"secureConnectionStart":450.2000000476837},{"duration":109.10000014305115,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":675.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":675.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":784.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":110.69999980926514,"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.6000001430511,"connectEnd":697.6000001430511,"connectStart":697.6000001430511,"domainLookupEnd":697.6000001430511,"domainLookupStart":697.6000001430511,"fetchStart":697.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":697.6000001430511,"responseEnd":808.2999999523163,"responseStart":808.2999999523163,"secureConnectionStart":697.6000001430511}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":23,"responseStart":156,"responseEnd":157,"domLoading":159,"domInteractive":808,"domContentLoadedEventStart":808,"domContentLoadedEventEnd":848,"domComplete":1401,"loadEventStart":1401,"loadEventEnd":1403,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":790},{"name":"bigPipe.sidebar-id.end","time":790.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":791.1000001430511},{"name":"bigPipe.activity-panel-pipe-id.end","time":793.4000000953674},{"name":"activityTabFullyLoaded","time":854.5}],"measures":[],"correlationId":"43bd34441cfaa5","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":82,"dbReadsTimeInMs":13,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}