safe_mutex: Found wrong usage of mutex 'LOCK_commit_ordered' and 'LOCK_global_system_variables', or of mutex 'LOCK_global_system_variables' and 'LOCK_log', on setting max_binlog_size or binlog_checksum and START TRANSACTION
Elena Stepanova
added a comment - Also with binlog_checksum , as in
--source include/have_innodb.inc
--source include/have_log_bin.inc
SET GLOBAL binlog_checksum= CRC32;
START TRANSACTION WITH CONSISTENT SNAPSHOT;
The problem is old though.
safe_mutex: Found wrong usage of mutex 'LOCK_commit_ordered' and 'LOCK_global_system_variables'
Mutex currently locked (in reverse order):
LOCK_global_system_variables /test/10.11_dbg/sql/sql_plugin.cc line 3096
LOCK_commit_ordered /test/10.11_dbg/sql/handler.cc line 3007
Same source code line numbers for the testcase by elenst (with thanks!)
Roel Van de Paar
added a comment - - edited Was able to catch a bit more info with this testcase
# mysqld options required for replay: --log-bin
SET GLOBAL max_binlog_size=0;
START TRANSACTION WITH CONSISTENT SNAPSHOT;
10.11.0 6ebdd3013a18b01dbecec76b870810329eb76586 (Debug)
safe_mutex: Found wrong usage of mutex 'LOCK_commit_ordered' and 'LOCK_global_system_variables'
Mutex currently locked (in reverse order):
LOCK_global_system_variables /test/10.11_dbg/sql/sql_plugin.cc line 3096
LOCK_commit_ordered /test/10.11_dbg/sql/handler.cc line 3007
Same source code line numbers for the testcase by elenst (with thanks!)
safe_mutex: Found wrong usage of mutex 'LOCK_global_system_variables' and 'LOCK_log'
Mutex currently locked (in reverse order):
LOCK_log /test/11.3_dbg/sql/log.cc line 12235
LOCK_global_system_variables /test/11.3_dbg/sql/sys_vars_shared.h line 56
Roel Van de Paar
added a comment - - edited Also please try:
# mysqld options required for replay: --log-bin
START TRANSACTION WITH CONSISTENT SNAPSHOT;
FLUSH LOGS;
SET GLOBAL binlog_checksum=NONE;
11.3.0 126157061b4376496c034a809ea4943e863d1465 (Debug)
2023-12-07 15:08:21 0 [Note] /test/MD311023-mariadb-11.3.0-linux-x86_64-dbg/bin/mariadbd: ready for connections.
Version: '11.3.0-MariaDB-debug-log' socket: '/test/MD311023-mariadb-11.3.0-linux-x86_64-dbg/socket.sock' port: 10415 MariaDB Server
2023-12-07 15:08:21 6 [Note] Start binlog_dump to slave_server(2), pos(, 4), using_gtid(1), gtid('')
safe_mutex: Found wrong usage of mutex 'LOCK_global_system_variables' and 'LOCK_log'
Mutex currently locked (in reverse order):
LOCK_log /test/11.3_dbg/sql/log.cc line 12235
LOCK_global_system_variables /test/11.3_dbg/sql/sys_vars_shared.h line 56
safe_mutex: Found wrong usage of mutex LOCK_commit_ordered and LOCK_global_system_variables
Roel Van de Paar
added a comment - - edited
# mysqld options required for replay: --log-bin
SET GLOBAL binlog_checksum= DEFAULT ;
START TRANSACTION WITH CONSISTENT SNAPSHOT, READ WRITE;
safe_mutex: Found wrong usage of mutex LOCK_commit_ordered and LOCK_global_system_variables
sergLet me know if you're going to review this week, otherwise I'll just take it back and push it with your suggestion to use mysql_mutex_record_order()
Kristian Nielsen
added a comment - serg Let me know if you're going to review this week, otherwise I'll just take it back and push it with your suggestion to use mysql_mutex_record_order()
Kristian Nielsen
added a comment - Pushed to 10.6.
Requires another patch when merged to 11.4, see here: https://lists.mariadb.org/hyperkitty/list/developers@lists.mariadb.org/thread/LN35WETUEUHYUQNZXAKXLVU5EGSCQSVX/
People
Kristian Nielsen
Roel Van de Paar
Votes:
0Vote for this issue
Watchers:
6Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1296.0999999046326,"ttfb":501.59999990463257,"pageVisibility":"visible","entityId":115348,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"69347373-53a2-42fe-a0ab-0f1d7a55036e","navigationType":0,"readyForUser":1417.4000000953674,"redirectCount":0,"resourceLoadedEnd":1554.4000000953674,"resourceLoadedStart":509.40000009536743,"resourceTiming":[{"duration":246.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":509.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":509.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":756,"responseStart":0,"secureConnectionStart":0},{"duration":246.59999990463257,"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":509.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":509.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":756.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":306.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":509.90000009536743,"connectEnd":509.90000009536743,"connectStart":509.90000009536743,"domainLookupEnd":509.90000009536743,"domainLookupStart":509.90000009536743,"fetchStart":509.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":509.90000009536743,"responseEnd":816.4000000953674,"responseStart":816.4000000953674,"secureConnectionStart":509.90000009536743},{"duration":396.80000019073486,"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.09999990463257,"connectEnd":510.09999990463257,"connectStart":510.09999990463257,"domainLookupEnd":510.09999990463257,"domainLookupStart":510.09999990463257,"fetchStart":510.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":510.09999990463257,"responseEnd":906.9000000953674,"responseStart":906.9000000953674,"secureConnectionStart":510.09999990463257},{"duration":400.59999990463257,"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":510.19999980926514,"connectEnd":510.19999980926514,"connectStart":510.19999980926514,"domainLookupEnd":510.19999980926514,"domainLookupStart":510.19999980926514,"fetchStart":510.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":510.19999980926514,"responseEnd":910.7999997138977,"responseStart":910.7999997138977,"secureConnectionStart":510.19999980926514},{"duration":400.7999997138977,"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":510.40000009536743,"connectEnd":510.40000009536743,"connectStart":510.40000009536743,"domainLookupEnd":510.40000009536743,"domainLookupStart":510.40000009536743,"fetchStart":510.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":510.40000009536743,"responseEnd":911.1999998092651,"responseStart":911.1999998092651,"secureConnectionStart":510.40000009536743},{"duration":396.69999980926514,"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":514.9000000953674,"connectEnd":514.9000000953674,"connectStart":514.9000000953674,"domainLookupEnd":514.9000000953674,"domainLookupStart":514.9000000953674,"fetchStart":514.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":514.9000000953674,"responseEnd":911.5999999046326,"responseStart":911.5999999046326,"secureConnectionStart":514.9000000953674},{"duration":450.5,"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":515.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":515.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":965.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":396.7000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":515.2999997138977,"connectEnd":515.2999997138977,"connectStart":515.2999997138977,"domainLookupEnd":515.2999997138977,"domainLookupStart":515.2999997138977,"fetchStart":515.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":515.2999997138977,"responseEnd":912,"responseStart":912,"secureConnectionStart":515.2999997138977},{"duration":450.19999980926514,"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":515.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":515.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":965.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":396.80000019073486,"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":515.7999997138977,"connectEnd":515.7999997138977,"connectStart":515.7999997138977,"domainLookupEnd":515.7999997138977,"domainLookupStart":515.7999997138977,"fetchStart":515.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":515.7999997138977,"responseEnd":912.5999999046326,"responseStart":912.5999999046326,"secureConnectionStart":515.7999997138977},{"duration":739.8000001907349,"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":516.6999998092651,"connectEnd":516.6999998092651,"connectStart":516.6999998092651,"domainLookupEnd":516.6999998092651,"domainLookupStart":516.6999998092651,"fetchStart":516.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":516.6999998092651,"responseEnd":1256.5,"responseStart":1256.5,"secureConnectionStart":516.6999998092651},{"duration":960.6000003814697,"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":516.7999997138977,"connectEnd":516.7999997138977,"connectStart":516.7999997138977,"domainLookupEnd":516.7999997138977,"domainLookupStart":516.7999997138977,"fetchStart":516.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":516.7999997138977,"responseEnd":1477.4000000953674,"responseStart":1477.4000000953674,"secureConnectionStart":516.7999997138977},{"duration":281.6000003814697,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":977.7999997138977,"connectEnd":977.7999997138977,"connectStart":977.7999997138977,"domainLookupEnd":977.7999997138977,"domainLookupStart":977.7999997138977,"fetchStart":977.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":977.7999997138977,"responseEnd":1259.4000000953674,"responseStart":1259.2999997138977,"secureConnectionStart":977.7999997138977},{"duration":224,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1289,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1289,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1513,"responseStart":0,"secureConnectionStart":0},{"duration":238,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1316.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1316.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1554.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":230.80000019073486,"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":1317.2999997138977,"connectEnd":1317.2999997138977,"connectStart":1317.2999997138977,"domainLookupEnd":1317.2999997138977,"domainLookupStart":1317.2999997138977,"fetchStart":1317.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":1317.2999997138977,"responseEnd":1548.0999999046326,"responseStart":1548.0999999046326,"secureConnectionStart":1317.2999997138977},{"duration":235.10000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":1317.7999997138977,"connectEnd":1317.7999997138977,"connectStart":1317.7999997138977,"domainLookupEnd":1317.7999997138977,"domainLookupStart":1317.7999997138977,"fetchStart":1317.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":1317.7999997138977,"responseEnd":1552.9000000953674,"responseStart":1552.9000000953674,"secureConnectionStart":1317.7999997138977}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":320,"responseStart":501,"responseEnd":503,"domLoading":506,"domInteractive":1579,"domContentLoadedEventStart":1579,"domContentLoadedEventEnd":1628,"domComplete":1852,"loadEventStart":1852,"loadEventEnd":1853,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1521.6999998092651},{"name":"bigPipe.sidebar-id.end","time":1522.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1522.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":1527.5},{"name":"activityTabFullyLoaded","time":1655}],"measures":[],"correlationId":"76442e1d7708d5","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":119,"dbReadsTimeInMs":13,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Also with binlog_checksum, as in
--source include/have_innodb.inc
--source include/have_log_bin.inc
The problem is old though.