Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
10.6.9 , 10.3(EOL) , 10.4(EOL) , 10.5 , 10.6 , 10.7(EOL) , 10.8(EOL) , 10.9(EOL) , 10.10(EOL)
When I execute:
SELECT T2.` Name `
FROM (
SELECT `Country` FROM `religion` GROUP BY `Country` ORDER BY COUNT ( DISTINCT ` Name `) DESC LIMIT 1
) AS T1
INNER JOIN `country` AS T2
ON T1.`Country`=T2.`Code`
MariaDB crashes. The log is attached. A dump of the data is attached.
Expected behaviour: The query returns country name with the highest count of distinct religions.
Reproducibility: On macOS 12.6, case insensitive file system, with a fresh installation of MariaDB 10.7.3 from Homebrew I only get a misleading error message (the db remains responsive to other queries):
2003 - Can't connect to MySQL server on '127.0.0.1' (61 "Connection refused")
Severity: It causes a crash on a select query → marking as Critical.
What I checked:
I renamed `Country` column name to not clash with `country` table. It didn't have any impact.
When I change `LIMIT 1` to `LIMIT 2`, the query works.
relates to
MDEV-24210
SIGSEGV in QUICK_GROUP_MIN_MAX_SELECT::is_agg_distinct from st_join_table::is_using_agg_loose_index_scan on SELECT FROM a table with subpartitions
Open
{"report":{"fcp":862.3000001907349,"ttfb":162.80000019073486,"pageVisibility":"visible","entityId":117376,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"8794ce91-626d-47d3-981e-7aa3984e2aaf","navigationType":0,"readyForUser":925.7000000476837,"redirectCount":0,"resourceLoadedEnd":992.1000001430511,"resourceLoadedStart":167.70000004768372,"resourceTiming":[{"duration":226.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":167.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":167.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":394.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":226.20000004768372,"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":168,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":168,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":394.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":235.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":168.10000014305115,"connectEnd":168.10000014305115,"connectStart":168.10000014305115,"domainLookupEnd":168.10000014305115,"domainLookupStart":168.10000014305115,"fetchStart":168.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":168.10000014305115,"responseEnd":403.30000019073486,"responseStart":403.30000019073486,"secureConnectionStart":168.10000014305115},{"duration":311.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":168.30000019073486,"connectEnd":168.30000019073486,"connectStart":168.30000019073486,"domainLookupEnd":168.30000019073486,"domainLookupStart":168.30000019073486,"fetchStart":168.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":168.30000019073486,"responseEnd":480,"responseStart":480,"secureConnectionStart":168.30000019073486},{"duration":315.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":168.40000009536743,"connectEnd":168.40000009536743,"connectStart":168.40000009536743,"domainLookupEnd":168.40000009536743,"domainLookupStart":168.40000009536743,"fetchStart":168.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":168.40000009536743,"responseEnd":483.60000014305115,"responseStart":483.60000014305115,"secureConnectionStart":168.40000009536743},{"duration":315.7000000476837,"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":168.40000009536743,"connectEnd":168.40000009536743,"connectStart":168.40000009536743,"domainLookupEnd":168.40000009536743,"domainLookupStart":168.40000009536743,"fetchStart":168.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":168.40000009536743,"responseEnd":484.10000014305115,"responseStart":484.10000014305115,"secureConnectionStart":168.40000009536743},{"duration":316.2000000476837,"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":168.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":168.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":484.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":315.89999985694885,"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":168.60000014305115,"connectEnd":168.60000014305115,"connectStart":168.60000014305115,"domainLookupEnd":168.60000014305115,"domainLookupStart":168.60000014305115,"fetchStart":168.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":168.60000014305115,"responseEnd":484.5,"responseStart":484.5,"secureConnectionStart":168.60000014305115},{"duration":316.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":168.70000004768372,"connectEnd":168.70000004768372,"connectStart":168.70000004768372,"domainLookupEnd":168.70000004768372,"domainLookupStart":168.70000004768372,"fetchStart":168.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":168.70000004768372,"responseEnd":484.80000019073486,"responseStart":484.80000019073486,"secureConnectionStart":168.70000004768372},{"duration":316.39999985694885,"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":168.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":168.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":485.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":316.5,"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":168.90000009536743,"connectEnd":168.90000009536743,"connectStart":168.90000009536743,"domainLookupEnd":168.90000009536743,"domainLookupStart":168.90000009536743,"fetchStart":168.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":168.90000009536743,"responseEnd":485.40000009536743,"responseStart":485.40000009536743,"secureConnectionStart":168.90000009536743},{"duration":404.5,"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":174.30000019073486,"connectEnd":174.30000019073486,"connectStart":174.30000019073486,"domainLookupEnd":174.30000019073486,"domainLookupStart":174.30000019073486,"fetchStart":174.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":174.30000019073486,"responseEnd":578.8000001907349,"responseStart":578.8000001907349,"secureConnectionStart":174.30000019073486},{"duration":817.7000000476837,"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":174.40000009536743,"connectEnd":174.40000009536743,"connectStart":174.40000009536743,"domainLookupEnd":174.40000009536743,"domainLookupStart":174.40000009536743,"fetchStart":174.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":174.40000009536743,"responseEnd":992.1000001430511,"responseStart":992.1000001430511,"secureConnectionStart":174.40000009536743},{"duration":376.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":615,"connectEnd":615,"connectStart":615,"domainLookupEnd":615,"domainLookupStart":615,"fetchStart":615,"redirectEnd":0,"redirectStart":0,"requestStart":615,"responseEnd":991.8000001907349,"responseStart":991.7000000476837,"secureConnectionStart":615}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":40,"responseStart":163,"responseEnd":167,"domLoading":166,"domInteractive":1016,"domContentLoadedEventStart":1016,"domContentLoadedEventEnd":1052,"domComplete":1931,"loadEventStart":1931,"loadEventEnd":1933,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":998.6000001430511},{"name":"bigPipe.sidebar-id.end","time":999.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":999.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1001.8000001907349},{"name":"activityTabFullyLoaded","time":1058.8000001907349}],"measures":[],"correlationId":"5982e97012d07b","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":67,"dbReadsTimeInMs":9,"dbConnsTimeInMs":15,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}