CREATE TABLE t1 (id INT PRIMARY KEY);
|
INSERT INTO t1 VALUES (1),(2);
|
|
SELECT 1 IN (SELECT (SELECT COUNT(id) FROM t1 WHERE t1_outer.id <> id) AS f FROM t1 AS t1_outer GROUP BY f);
|
|
# Cleanup
|
DROP TABLE t1;
|
10.2 5ecaf52d
|
#3 <signal handler called>
|
#4 Item_subselect::init_expr_cache_tracker (this=0x7faab0014b98, thd=0x7faab0000d90) at /data/src/10.2/sql/item_subselect.cc:6828
|
#5 0x000055d279095647 in Item_singlerow_subselect::expr_cache_insert_transformer (this=0x7faab0014b98, tmp_thd=0x7faab0000d90, unused=0x0) at /data/src/10.2/sql/item_subselect.cc:1287
|
#6 0x000055d278fe14ce in Item::transform (this=0x7faab0014b98, thd=0x7faab0000d90, transformer=&virtual Item::expr_cache_insert_transformer(THD*, unsigned char*), arg=0x0) at /data/src/10.2/sql/item.cc:736
|
#7 0x000055d278d90bdc in JOIN::setup_subquery_caches (this=0x7faab0016098) at /data/src/10.2/sql/sql_select.cc:3178
|
#8 0x000055d278d8cc63 in JOIN::optimize_inner (this=0x7faab0016098) at /data/src/10.2/sql/sql_select.cc:2086
|
#9 0x000055d278d89496 in JOIN::optimize (this=0x7faab0016098) at /data/src/10.2/sql/sql_select.cc:1118
|
#10 0x000055d278d38301 in st_select_lex::optimize_unflattened_subqueries (this=0x7faab00050c8, const_only=true) at /data/src/10.2/sql/sql_lex.cc:3871
|
#11 0x000055d278efbcc9 in JOIN::optimize_constant_subqueries (this=0x7faab00159b0) at /data/src/10.2/sql/opt_subselect.cc:5360
|
#12 0x000055d278d89fb2 in JOIN::optimize_inner (this=0x7faab00159b0) at /data/src/10.2/sql/sql_select.cc:1340
|
#13 0x000055d278d89496 in JOIN::optimize (this=0x7faab00159b0) at /data/src/10.2/sql/sql_select.cc:1118
|
#14 0x000055d278d929d4 in mysql_select (thd=0x7faab0000d90, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7faab0015990, unit=0x7faab0004988, select_lex=0x7faab00050c8) at /data/src/10.2/sql/sql_select.cc:3823
|
#15 0x000055d278d86bde in handle_select (thd=0x7faab0000d90, lex=0x7faab00048c8, result=0x7faab0015990, setup_tables_done_option=0) at /data/src/10.2/sql/sql_select.cc:361
|
#16 0x000055d278d512e8 in execute_sqlcom_select (thd=0x7faab0000d90, all_tables=0x7faab00141e8) at /data/src/10.2/sql/sql_parse.cc:6248
|
#17 0x000055d278d47c97 in mysql_execute_command (thd=0x7faab0000d90) at /data/src/10.2/sql/sql_parse.cc:3559
|
#18 0x000055d278d55091 in mysql_parse (thd=0x7faab0000d90, rawbuf=0x7faab00126f8 "SELECT 1 IN (SELECT (SELECT COUNT(id) FROM t1 WHERE t1_outer.id <> id) AS f FROM t1 AS t1_outer GROUP BY f)", length=107, parser_state=0x7faac19315f0, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:7763
|
#19 0x000055d278d4336a in dispatch_command (command=COM_QUERY, thd=0x7faab0000d90, packet=0x7faab0008b51 "SELECT 1 IN (SELECT (SELECT COUNT(id) FROM t1 WHERE t1_outer.id <> id) AS f FROM t1 AS t1_outer GROUP BY f)", packet_length=107, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1827
|
#20 0x000055d278d41e65 in do_command (thd=0x7faab0000d90) at /data/src/10.2/sql/sql_parse.cc:1381
|
#21 0x000055d278e9c972 in do_handle_one_connection (connect=0x55d27c7d1930) at /data/src/10.2/sql/sql_connect.cc:1336
|
#22 0x000055d278e9c6d7 in handle_one_connection (arg=0x55d27c7d1930) at /data/src/10.2/sql/sql_connect.cc:1241
|
#23 0x000055d2796c4eb8 in pfs_spawn_thread (arg=0x55d27c7b4c80) at /data/src/10.2/storage/perfschema/pfs.cc:1869
|
#24 0x00007faac7ce7609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#25 0x00007faac78c3293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Reproducible on debug and non-debug builds alike.
The failure appeared in 10.2 after this commit:
Author: Varun Gupta
|
Date: Mon Feb 15 16:28:44 2021 +0530
|
|
MDEV-24779: main.subselect fails in buildbot with --ps-protocol
|
Other versions are not affected so far, since the patch hasn't been merged up yet.
Likely to be related to MDEV-24898.
{"report":{"fcp":1808.2999999821186,"ttfb":733.7999999821186,"pageVisibility":"visible","entityId":97107,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"57f59e3d-587f-466c-bc78-f1b439ee9d31","navigationType":0,"readyForUser":1896.8999999761581,"redirectCount":0,"resourceLoadedEnd":2595.199999988079,"resourceLoadedStart":740.2999999821186,"resourceTiming":[{"duration":499.7000000178814,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":740.2999999821186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":740.2999999821186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1240,"responseStart":0,"secureConnectionStart":0},{"duration":500,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":740.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":740.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1240.5,"responseStart":0,"secureConnectionStart":0},{"duration":555.8000000119209,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":740.7999999821186,"connectEnd":740.7999999821186,"connectStart":740.7999999821186,"domainLookupEnd":740.7999999821186,"domainLookupStart":740.7999999821186,"fetchStart":740.7999999821186,"redirectEnd":0,"redirectStart":0,"requestStart":740.7999999821186,"responseEnd":1296.5999999940395,"responseStart":1296.5999999940395,"secureConnectionStart":740.7999999821186},{"duration":618.8000000119209,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":740.8999999761581,"connectEnd":740.8999999761581,"connectStart":740.8999999761581,"domainLookupEnd":740.8999999761581,"domainLookupStart":740.8999999761581,"fetchStart":740.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":740.8999999761581,"responseEnd":1359.699999988079,"responseStart":1359.699999988079,"secureConnectionStart":740.8999999761581},{"duration":622.6999999880791,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":741.0999999940395,"connectEnd":741.0999999940395,"connectStart":741.0999999940395,"domainLookupEnd":741.0999999940395,"domainLookupStart":741.0999999940395,"fetchStart":741.0999999940395,"redirectEnd":0,"redirectStart":0,"requestStart":741.0999999940395,"responseEnd":1363.7999999821186,"responseStart":1363.7999999821186,"secureConnectionStart":741.0999999940395},{"duration":623,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":741.3999999761581,"connectEnd":741.3999999761581,"connectStart":741.3999999761581,"domainLookupEnd":741.3999999761581,"domainLookupStart":741.3999999761581,"fetchStart":741.3999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":741.3999999761581,"responseEnd":1364.3999999761581,"responseStart":1364.2999999821186,"secureConnectionStart":741.3999999761581},{"duration":623.1999999880791,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":741.5999999940395,"connectEnd":741.5999999940395,"connectStart":741.5999999940395,"domainLookupEnd":741.5999999940395,"domainLookupStart":741.5999999940395,"fetchStart":741.5999999940395,"redirectEnd":0,"redirectStart":0,"requestStart":741.5999999940395,"responseEnd":1364.7999999821186,"responseStart":1364.7999999821186,"secureConnectionStart":741.5999999940395},{"duration":715,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":741.6999999880791,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":741.6999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1456.699999988079,"responseStart":0,"secureConnectionStart":0},{"duration":623.5999999940395,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":741.7999999821186,"connectEnd":741.7999999821186,"connectStart":741.7999999821186,"domainLookupEnd":741.7999999821186,"domainLookupStart":741.7999999821186,"fetchStart":741.7999999821186,"redirectEnd":0,"redirectStart":0,"requestStart":741.7999999821186,"responseEnd":1365.3999999761581,"responseStart":1365.3999999761581,"secureConnectionStart":741.7999999821186},{"duration":714.7999999821186,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":742.0999999940395,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":742.0999999940395,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1456.8999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":624.3000000119209,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":742.1999999880791,"connectEnd":742.1999999880791,"connectStart":742.1999999880791,"domainLookupEnd":742.1999999880791,"domainLookupStart":742.1999999880791,"fetchStart":742.1999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":742.1999999880791,"responseEnd":1366.5,"responseStart":1366.5,"secureConnectionStart":742.1999999880791},{"duration":1648.9000000059605,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":743.0999999940395,"connectEnd":743.0999999940395,"connectStart":743.0999999940395,"domainLookupEnd":743.0999999940395,"domainLookupStart":743.0999999940395,"fetchStart":743.0999999940395,"redirectEnd":0,"redirectStart":0,"requestStart":743.0999999940395,"responseEnd":2392,"responseStart":2392,"secureConnectionStart":743.0999999940395},{"duration":1846.9000000059605,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":748.2999999821186,"connectEnd":748.2999999821186,"connectStart":748.2999999821186,"domainLookupEnd":748.2999999821186,"domainLookupStart":748.2999999821186,"fetchStart":748.2999999821186,"redirectEnd":0,"redirectStart":0,"requestStart":748.2999999821186,"responseEnd":2595.199999988079,"responseStart":2595.199999988079,"secureConnectionStart":748.2999999821186},{"duration":915,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1480.7999999821186,"connectEnd":1480.7999999821186,"connectStart":1480.7999999821186,"domainLookupEnd":1480.7999999821186,"domainLookupStart":1480.7999999821186,"fetchStart":1480.7999999821186,"redirectEnd":0,"redirectStart":0,"requestStart":1480.7999999821186,"responseEnd":2395.7999999821186,"responseStart":2395.7999999821186,"secureConnectionStart":1480.7999999821186},{"duration":811.6000000238419,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1801.8999999761581,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1801.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2613.5,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":560,"responseStart":734,"responseEnd":742,"domLoading":738,"domInteractive":2615,"domContentLoadedEventStart":2615,"domContentLoadedEventEnd":2660,"domComplete":3448,"loadEventStart":3448,"loadEventEnd":3449,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2600},{"name":"bigPipe.sidebar-id.end","time":2600.7999999821186},{"name":"bigPipe.activity-panel-pipe-id.start","time":2601},{"name":"bigPipe.activity-panel-pipe-id.end","time":2602.5},{"name":"activityTabFullyLoaded","time":2675.399999976158}],"measures":[],"correlationId":"72474aaf92f010","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":110,"dbReadsTimeInMs":18,"dbConnsTimeInMs":26,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
bb-10.3-mdev24925