Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
11.1(EOL) , 11.2(EOL) , 11.3(EOL) , 11.4 , 11.5(EOL) , 11.6(EOL)
Consider the following case:
CREATE TABLE t1 (a INT , b VARCHAR (30)) CHARSET=utf8mb4;
INSERT INTO t1 VALUES (1, 'one' ), (0, NULL ), (3, 'three' ), (4, 'four' );
PREPARE stmt1 FROM 'DELETE FROM t1 WHERE b=?' ;
SET @arg00= NULL ;
EXECUTE stmt1 USING @arg00; # <<=== First time the prepared statement 'stmt1' is executed
SET @arg00= 'one' ;
EXECUTE stmt1 USING @arg00; <<=== Second time the same prepared statement is executed results in memory leaks
The essential prerequisite in the above use case is that the table t1 is created with CHARSET=utf8mb4. Without explicit clause 'CHARSET=utf8mb4' in CREATE TABLE statement, the aforementioned test case would complete with success up to 11.6 where the default characterset was changed from latin1 to utf8mb4 (commit 36eba98817339f53cc57f1d4884ace3efb38db8d)
is part of
MDEV-14959
Control over memory allocated for SP/PS
Closed
{"report":{"fcp":787.1000000238419,"ttfb":278.60000002384186,"pageVisibility":"visible","entityId":130150,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"2845db3f-3f0a-404c-88cd-80f83c569146","navigationType":0,"readyForUser":845.3999999761581,"redirectCount":0,"resourceLoadedEnd":620.3999999761581,"resourceLoadedStart":285.19999998807907,"resourceTiming":[{"duration":24.30000001192093,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":285.19999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":285.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":309.5,"responseStart":0,"secureConnectionStart":0},{"duration":26,"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":285.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":285.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":311.5,"responseStart":0,"secureConnectionStart":0},{"duration":75.19999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":285.69999998807907,"connectEnd":285.69999998807907,"connectStart":285.69999998807907,"domainLookupEnd":285.69999998807907,"domainLookupStart":285.69999998807907,"fetchStart":285.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":313.5,"responseEnd":360.89999997615814,"responseStart":330.60000002384186,"secureConnectionStart":285.69999998807907},{"duration":83.10000002384186,"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":285.89999997615814,"connectEnd":285.89999997615814,"connectStart":285.89999997615814,"domainLookupEnd":285.89999997615814,"domainLookupStart":285.89999997615814,"fetchStart":285.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":313.5,"responseEnd":369,"responseStart":328,"secureConnectionStart":285.89999997615814},{"duration":41.89999997615814,"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":286,"connectEnd":286,"connectStart":286,"domainLookupEnd":286,"domainLookupStart":286,"fetchStart":286,"redirectEnd":0,"redirectStart":0,"requestStart":314.69999998807907,"responseEnd":327.89999997615814,"responseStart":327.30000001192093,"secureConnectionStart":286},{"duration":54.80000001192093,"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":286.19999998807907,"connectEnd":286.19999998807907,"connectStart":286.19999998807907,"domainLookupEnd":286.19999998807907,"domainLookupStart":286.19999998807907,"fetchStart":286.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":316.60000002384186,"responseEnd":341,"responseStart":340.60000002384186,"secureConnectionStart":286.19999998807907},{"duration":54.30000001192093,"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":286.30000001192093,"connectEnd":286.30000001192093,"connectStart":286.30000001192093,"domainLookupEnd":286.30000001192093,"domainLookupStart":286.30000001192093,"fetchStart":286.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":317,"responseEnd":340.60000002384186,"responseStart":340,"secureConnectionStart":286.30000001192093},{"duration":30.100000023841858,"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":286.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":286.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":316.60000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":56.90000003576279,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":286.69999998807907,"connectEnd":286.69999998807907,"connectStart":286.69999998807907,"domainLookupEnd":286.69999998807907,"domainLookupStart":286.69999998807907,"fetchStart":286.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":317.60000002384186,"responseEnd":343.60000002384186,"responseStart":343.10000002384186,"secureConnectionStart":286.69999998807907},{"duration":30.5,"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":286.80000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":286.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":317.30000001192093,"responseStart":0,"secureConnectionStart":0},{"duration":59.60000002384186,"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":287,"connectEnd":287,"connectStart":287,"domainLookupEnd":287,"domainLookupStart":287,"fetchStart":287,"redirectEnd":0,"redirectStart":0,"requestStart":319.69999998807907,"responseEnd":346.60000002384186,"responseStart":346.10000002384186,"secureConnectionStart":287},{"duration":309.0999999642372,"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":310.80000001192093,"connectEnd":310.80000001192093,"connectStart":310.80000001192093,"domainLookupEnd":310.80000001192093,"domainLookupStart":310.80000001192093,"fetchStart":310.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":507.60000002384186,"responseEnd":619.8999999761581,"responseStart":616.1999999880791,"secureConnectionStart":310.80000001192093},{"duration":309.5999999642372,"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":310.80000001192093,"connectEnd":310.80000001192093,"connectStart":310.80000001192093,"domainLookupEnd":310.80000001192093,"domainLookupStart":310.80000001192093,"fetchStart":310.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":445.30000001192093,"responseEnd":620.3999999761581,"responseStart":617.3000000119209,"secureConnectionStart":310.80000001192093},{"duration":182.19999998807907,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":547.3000000119209,"connectEnd":547.3000000119209,"connectStart":547.3000000119209,"domainLookupEnd":547.3000000119209,"domainLookupStart":547.3000000119209,"fetchStart":547.3000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":694.6000000238419,"responseEnd":729.5,"responseStart":728.8000000119209,"secureConnectionStart":547.3000000119209}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":94,"responseStart":279,"responseEnd":310,"domLoading":282,"domInteractive":893,"domContentLoadedEventStart":893,"domContentLoadedEventEnd":925,"domComplete":1433,"loadEventStart":1433,"loadEventEnd":1433,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":877.3999999761581},{"name":"bigPipe.sidebar-id.end","time":878.1999999880791},{"name":"bigPipe.activity-panel-pipe-id.start","time":878.3000000119209},{"name":"bigPipe.activity-panel-pipe-id.end","time":879.1999999880791},{"name":"activityTabFullyLoaded","time":941.1999999880791}],"measures":[],"correlationId":"73c330b2f9c84b","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":114,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
The branch for review is bb-11.1-
MDEV-34649