3 threads required to reproduce this deadlock:
thread1: mysql_change_user() (or connects/disconnects)
thread2: INSTALL PLUGIN
thread3: SHOW VARIABLES
Easily repeatable with mtr test case:
delimiter |;
|
CREATE PROCEDURE p_install(x INT)
|
BEGIN
|
DECLARE CONTINUE HANDLER FOR 1126 BEGIN END;
|
WHILE x DO
|
SET x= x - 1;
|
INSTALL PLUGIN no_such_plugin SONAME 'no_such_object';
|
END WHILE;
|
END|
|
|
CREATE PROCEDURE p_show_vars(x INT)
|
WHILE x DO
|
SET x= x - 1;
|
SHOW VARIABLES;
|
END WHILE|
|
delimiter ;|
|
|
connect(con1, localhost, root,,);
|
connect(con2, localhost, root,,);
|
|
connection con1;
|
--send CALL p_install(100);
|
|
connection con2;
|
--send CALL p_show_vars(100);
|
|
connection default;
|
|
disable_result_log;
|
let $i= 100;
|
while ($i)
|
{
|
change_user;
|
dec $i;
|
}
|
|
connection con1;
|
reap;
|
connection con2;
|
reap;
|
connection default;
|
enable_result_log;
|
|
disconnect con1;
|
disconnect con2;
|
DROP PROCEDURE p_install;
|
DROP PROCEDURE p_show_vars;
|
- is part of
-
MDEV-5089
possible deadlocks between rwlocks and mutexes
-
-
Closed
- links to
-
{"report":{"fcp":1553.0999999046326,"ttfb":608.6999998092651,"pageVisibility":"visible","entityId":27005,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"27326c0d-f09e-4428-9763-1abe5048a16d","navigationType":0,"readyForUser":1634.1999998092651,"redirectCount":0,"resourceLoadedEnd":1954.2999997138977,"resourceLoadedStart":614.1999998092651,"resourceTiming":[{"duration":476.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":614.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":614.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1090.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":476.2000002861023,"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":614.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":614.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1090.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":485.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":614.5999999046326,"connectEnd":614.5999999046326,"connectStart":614.5999999046326,"domainLookupEnd":614.5999999046326,"domainLookupStart":614.5999999046326,"fetchStart":614.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":614.5999999046326,"responseEnd":1099.6999998092651,"responseStart":1099.6999998092651,"secureConnectionStart":614.5999999046326},{"duration":543.5,"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":614.7999997138977,"connectEnd":614.7999997138977,"connectStart":614.7999997138977,"domainLookupEnd":614.7999997138977,"domainLookupStart":614.7999997138977,"fetchStart":614.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":614.7999997138977,"responseEnd":1158.2999997138977,"responseStart":1158.2999997138977,"secureConnectionStart":614.7999997138977},{"duration":546.9000000953674,"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":615.0999999046326,"connectEnd":615.0999999046326,"connectStart":615.0999999046326,"domainLookupEnd":615.0999999046326,"domainLookupStart":615.0999999046326,"fetchStart":615.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":615.0999999046326,"responseEnd":1162,"responseStart":1162,"secureConnectionStart":615.0999999046326},{"duration":547.2000002861023,"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":615.2999997138977,"connectEnd":615.2999997138977,"connectStart":615.2999997138977,"domainLookupEnd":615.2999997138977,"domainLookupStart":615.2999997138977,"fetchStart":615.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":615.2999997138977,"responseEnd":1162.5,"responseStart":1162.5,"secureConnectionStart":615.2999997138977},{"duration":547.4000000953674,"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":615.3999996185303,"connectEnd":615.3999996185303,"connectStart":615.3999996185303,"domainLookupEnd":615.3999996185303,"domainLookupStart":615.3999996185303,"fetchStart":615.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":615.3999996185303,"responseEnd":1162.7999997138977,"responseStart":1162.7999997138977,"secureConnectionStart":615.3999996185303},{"duration":627.9000000953674,"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":615.5999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":615.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1243.5,"responseStart":0,"secureConnectionStart":0},{"duration":547.5999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":615.6999998092651,"connectEnd":615.6999998092651,"connectStart":615.6999998092651,"domainLookupEnd":615.6999998092651,"domainLookupStart":615.6999998092651,"fetchStart":615.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":615.6999998092651,"responseEnd":1163.2999997138977,"responseStart":1163.2999997138977,"secureConnectionStart":615.6999998092651},{"duration":627.8000001907349,"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":615.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":615.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1243.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":547.6999998092651,"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":616.0999999046326,"connectEnd":616.0999999046326,"connectStart":616.0999999046326,"domainLookupEnd":616.0999999046326,"domainLookupStart":616.0999999046326,"fetchStart":616.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":616.0999999046326,"responseEnd":1163.7999997138977,"responseStart":1163.7999997138977,"secureConnectionStart":616.0999999046326},{"duration":1175.8999996185303,"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":617.5,"connectEnd":617.5,"connectStart":617.5,"domainLookupEnd":617.5,"domainLookupStart":617.5,"fetchStart":617.5,"redirectEnd":0,"redirectStart":0,"requestStart":617.5,"responseEnd":1793.3999996185303,"responseStart":1793.3999996185303,"secureConnectionStart":617.5},{"duration":1332.9000000953674,"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":621.3999996185303,"connectEnd":621.3999996185303,"connectStart":621.3999996185303,"domainLookupEnd":621.3999996185303,"domainLookupStart":621.3999996185303,"fetchStart":621.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":621.3999996185303,"responseEnd":1954.2999997138977,"responseStart":1954.2999997138977,"secureConnectionStart":621.3999996185303},{"duration":565,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1254.5999999046326,"connectEnd":1254.5999999046326,"connectStart":1254.5999999046326,"domainLookupEnd":1254.5999999046326,"domainLookupStart":1254.5999999046326,"fetchStart":1254.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1254.5999999046326,"responseEnd":1819.5999999046326,"responseStart":1819.5999999046326,"secureConnectionStart":1254.5999999046326}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":443,"responseStart":608,"responseEnd":613,"domLoading":611,"domInteractive":1980,"domContentLoadedEventStart":1980,"domContentLoadedEventEnd":2026,"domComplete":2428,"loadEventStart":2428,"loadEventEnd":2428,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1956},{"name":"bigPipe.sidebar-id.end","time":1956.7999997138977},{"name":"bigPipe.activity-panel-pipe-id.start","time":1957},{"name":"bigPipe.activity-panel-pipe-id.end","time":1958.7999997138977},{"name":"activityTabFullyLoaded","time":2042.5999999046326}],"measures":[],"correlationId":"6301c24eccd598","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":100,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
The MTR testcase fails the MySQL 5.6.15 too. Has this been reported to Oracle? If not, would you mind me reporting it with your testcase?