How to repeat:
----------------
#Run mysqld in valgrind. Execute:
drop table if exists `t1`;
|
create table `t1`(`a` char(1) character set utf8)engine=innodb;
|
select 1 from `t1` where `a` in (select group_concat(`a`) from t1);
|
Windows call stack:
---------------------
Version: '10.0.0-MariaDB-log' socket: '' port: 3306 Source distribution
|
121228 7:46:33 [ERROR] mysqld got exception 0xc0000005 ;
|
mysqld.exe!setup_jtbm_semi_joins()[opt_subselect.cc:5224]
|
mysqld.exe!JOIN::optimize_inner()[sql_select.cc:1123]
|
mysqld.exe!JOIN::optimize()[sql_select.cc:992]
|
mysqld.exe!mysql_select()[sql_select.cc:3176]
|
mysqld.exe!handle_select()[sql_select.cc:362]
|
mysqld.exe!execute_sqlcom_select()[sql_parse.cc:4937]
|
mysqld.exe!mysql_execute_command()[sql_parse.cc:2421]
|
mysqld.exe!mysql_parse()[sql_parse.cc:6061]
|
mysqld.exe!dispatch_command()[sql_parse.cc:1219]
|
mysqld.exe!do_command()[sql_parse.cc:951]
|
mysqld.exe!threadpool_process_request()[threadpool_common.cc:225]
|
mysqld.exe!io_completion_callback()[threadpool_win.cc:568]
|
See attached file for full valgrind outputs.
{"report":{"fcp":1339.8999996185303,"ttfb":503.3999996185303,"pageVisibility":"visible","entityId":22453,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"25dd504e-aa28-4a42-8b7f-f279b795c88c","navigationType":0,"readyForUser":1590.2999997138977,"redirectCount":0,"resourceLoadedEnd":1718.2999997138977,"resourceLoadedStart":510,"resourceTiming":[{"duration":126.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":510,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":510,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":636.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":126.40000009536743,"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":510.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":510.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":636.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":223.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":510.5,"connectEnd":510.5,"connectStart":510.5,"domainLookupEnd":510.5,"domainLookupStart":510.5,"fetchStart":510.5,"redirectEnd":0,"redirectStart":0,"requestStart":510.5,"responseEnd":734.1999998092651,"responseStart":734.1999998092651,"secureConnectionStart":510.5},{"duration":418,"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":510.69999980926514,"connectEnd":510.69999980926514,"connectStart":510.69999980926514,"domainLookupEnd":510.69999980926514,"domainLookupStart":510.69999980926514,"fetchStart":510.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":510.69999980926514,"responseEnd":928.6999998092651,"responseStart":928.6999998092651,"secureConnectionStart":510.69999980926514},{"duration":422,"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":511,"connectEnd":511,"connectStart":511,"domainLookupEnd":511,"domainLookupStart":511,"fetchStart":511,"redirectEnd":0,"redirectStart":0,"requestStart":511,"responseEnd":933,"responseStart":933,"secureConnectionStart":511},{"duration":422.40000009536743,"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":511.19999980926514,"connectEnd":511.19999980926514,"connectStart":511.19999980926514,"domainLookupEnd":511.19999980926514,"domainLookupStart":511.19999980926514,"fetchStart":511.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":511.19999980926514,"responseEnd":933.5999999046326,"responseStart":933.5999999046326,"secureConnectionStart":511.19999980926514},{"duration":422.7000002861023,"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":511.3999996185303,"connectEnd":511.3999996185303,"connectStart":511.3999996185303,"domainLookupEnd":511.3999996185303,"domainLookupStart":511.3999996185303,"fetchStart":511.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":511.3999996185303,"responseEnd":934.0999999046326,"responseStart":934.0999999046326,"secureConnectionStart":511.3999996185303},{"duration":433.7999997138977,"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":511.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":511.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":945.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":422.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":511.7999997138977,"connectEnd":511.7999997138977,"connectStart":511.7999997138977,"domainLookupEnd":511.7999997138977,"domainLookupStart":511.7999997138977,"fetchStart":511.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":511.7999997138977,"responseEnd":934.5999999046326,"responseStart":934.5,"secureConnectionStart":511.7999997138977},{"duration":433.5,"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":511.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":511.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":945.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":426.59999990463257,"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":512.0999999046326,"connectEnd":512.0999999046326,"connectStart":512.0999999046326,"domainLookupEnd":512.0999999046326,"domainLookupStart":512.0999999046326,"fetchStart":512.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":512.0999999046326,"responseEnd":938.6999998092651,"responseStart":938.6999998092651,"secureConnectionStart":512.0999999046326},{"duration":797.6000003814697,"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":512.8999996185303,"connectEnd":512.8999996185303,"connectStart":512.8999996185303,"domainLookupEnd":512.8999996185303,"domainLookupStart":512.8999996185303,"fetchStart":512.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":512.8999996185303,"responseEnd":1310.5,"responseStart":1310.5,"secureConnectionStart":512.8999996185303},{"duration":862.7999997138977,"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":521,"connectEnd":521,"connectStart":521,"domainLookupEnd":521,"domainLookupStart":521,"fetchStart":521,"redirectEnd":0,"redirectStart":0,"requestStart":521,"responseEnd":1383.7999997138977,"responseStart":1383.7999997138977,"secureConnectionStart":521},{"duration":409.19999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":900.6999998092651,"connectEnd":900.6999998092651,"connectStart":900.6999998092651,"domainLookupEnd":900.6999998092651,"domainLookupStart":900.6999998092651,"fetchStart":900.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":900.6999998092651,"responseEnd":1309.8999996185303,"responseStart":1309.8999996185303,"secureConnectionStart":900.6999998092651},{"duration":339.7999997138977,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1324.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1324.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1663.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":351.5,"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":1366.7999997138977,"connectEnd":1366.7999997138977,"connectStart":1366.7999997138977,"domainLookupEnd":1366.7999997138977,"domainLookupStart":1366.7999997138977,"fetchStart":1366.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":1366.7999997138977,"responseEnd":1718.2999997138977,"responseStart":1718.2999997138977,"secureConnectionStart":1366.7999997138977}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":327,"responseStart":503,"responseEnd":515,"domLoading":508,"domInteractive":1780,"domContentLoadedEventStart":1780,"domContentLoadedEventEnd":1868,"domComplete":2501,"loadEventStart":2501,"loadEventEnd":2502,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1702.5999999046326},{"name":"bigPipe.sidebar-id.end","time":1703.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1703.7999997138977},{"name":"bigPipe.activity-panel-pipe-id.end","time":1705.5999999046326},{"name":"activityTabFullyLoaded","time":1948}],"measures":[],"correlationId":"f4c89aab27e29a","effectiveType":"4g","downlink":9.8,"rtt":0,"serverDuration":106,"dbReadsTimeInMs":11,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
On a debug version, causes assertion `0' failure in bool subselect_hash_sj_engine::init(List<Item>*, uint).
The assertion failure is also reproducible with a non-empty MyISAM table:
SET optimizer_switch = 'materialization=on';
create table `t1`(`a` char(1) character set utf8) engine=myisam;
insert into t1 values ('a'),('b');
select 1 from `t1` where `a` in (select group_concat(a) from t1);
Minimal optimizer_switch: materialization=on.