BUILD: mariadb-lts git_mariadb_11.4.4
on Fedora41 + gcc (GCC) 14.2.1 20250110 (Red Hat 14.2.1-7)
OK
-> log: https://pastebin.com/aHQzV8Qk
BUILD: mariadb-lts git_mariadb_11.4.5
on Fedora41 + gcc (GCC) 14.2.1 20250110 (Red Hat 14.2.1-7)
FAILS
-> https://pastebin.com/5FRnJnfy, line # 907
```
...
/builddir/build/BUILD/mariadb-lts-git_mariadb_11.4.5-build/server.git-e2c746b03313677dd880ed7f5ada49c17c8c1b1c/storage/innobase/include/trx0trx.h: In member function ‘void trx_t::mutex_lock()’:
/builddir/build/BUILD/mariadb-lts-git_mariadb_11.4.5-build/server.git-e2c746b03313677dd880ed7f5ada49c17c8c1b1c/storage/innobase/include/trx0trx.h:674:13: error: ‘mutex_owner’ was not declared in this scope
674 | assert(!mutex_owner.exchange(pthread_self(),
^~~~~~~~~~~
/builddir/build/BUILD/mariadb-lts-git_mariadb_11.4.5-build/server.git-e2c746b03313677dd880ed7f5ada49c17c8c1b1c/storage/innobase/include/trx0trx.h: In member function ‘void trx_t::mutex_unlock()’:
/builddir/build/BUILD/mariadb-lts-git_mariadb_11.4.5-build/server.git-e2c746b03313677dd880ed7f5ada49c17c8c1b1c/storage/innobase/include/trx0trx.h:680:12: error: ‘mutex_owner’ was not declared in this scope
680 |
assert(mutex_owner.exchange(0, std::memory_order_relaxed) == |
^~~~~~~~~~~
...
``` |
- is duplicated by
-
MDEV-36113
Compilation fails in storage/innobase/include/trx0trx.h
-
-
Closed
{"report":{"fcp":805.5,"ttfb":249.90000009536743,"pageVisibility":"visible","entityId":132737,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"db78cc15-4302-469f-9a70-2dec24b62734","navigationType":0,"readyForUser":923.4000000953674,"redirectCount":0,"resourceLoadedEnd":538.6999998092651,"resourceLoadedStart":254.69999980926514,"resourceTiming":[{"duration":7.600000381469727,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":254.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":254.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":262.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":7.599999904632568,"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":255,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":255,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":262.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":146.10000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":255.19999980926514,"connectEnd":255.19999980926514,"connectStart":255.19999980926514,"domainLookupEnd":255.19999980926514,"domainLookupStart":255.19999980926514,"fetchStart":255.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":266.5,"responseEnd":401.30000019073486,"responseStart":280.09999990463257,"secureConnectionStart":255.19999980926514},{"duration":262,"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":255.30000019073486,"connectEnd":265.09999990463257,"connectStart":265.09999990463257,"domainLookupEnd":265.09999990463257,"domainLookupStart":265.09999990463257,"fetchStart":255.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":265.30000019073486,"responseEnd":517.3000001907349,"responseStart":277.40000009536743,"secureConnectionStart":265.09999990463257},{"duration":30.09999990463257,"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":260.30000019073486,"connectEnd":260.30000019073486,"connectStart":260.30000019073486,"domainLookupEnd":260.30000019073486,"domainLookupStart":260.30000019073486,"fetchStart":260.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":271,"responseEnd":290.40000009536743,"responseStart":289,"secureConnectionStart":260.30000019073486},{"duration":34.5,"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":260.5,"connectEnd":260.5,"connectStart":260.5,"domainLookupEnd":260.5,"domainLookupStart":260.5,"fetchStart":260.5,"redirectEnd":0,"redirectStart":0,"requestStart":271.90000009536743,"responseEnd":295,"responseStart":291.69999980926514,"secureConnectionStart":260.5},{"duration":36.80000019073486,"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":260.59999990463257,"connectEnd":260.59999990463257,"connectStart":260.59999990463257,"domainLookupEnd":260.59999990463257,"domainLookupStart":260.59999990463257,"fetchStart":260.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":272.30000019073486,"responseEnd":297.40000009536743,"responseStart":295.30000019073486,"secureConnectionStart":260.59999990463257},{"duration":11.399999618530273,"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":260.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":260.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":272.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":36.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":261,"connectEnd":261,"connectStart":261,"domainLookupEnd":261,"domainLookupStart":261,"fetchStart":261,"redirectEnd":0,"redirectStart":0,"requestStart":273.69999980926514,"responseEnd":297.69999980926514,"responseStart":295.69999980926514,"secureConnectionStart":261},{"duration":11.900000095367432,"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":261.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":261.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":273,"responseStart":0,"secureConnectionStart":0},{"duration":38.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":261.19999980926514,"connectEnd":261.19999980926514,"connectStart":261.19999980926514,"domainLookupEnd":261.19999980926514,"domainLookupStart":261.19999980926514,"fetchStart":261.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":276.5,"responseEnd":300,"responseStart":297.80000019073486,"secureConnectionStart":261.19999980926514},{"duration":274.90000009536743,"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":263.5,"connectEnd":263.5,"connectStart":263.5,"domainLookupEnd":263.5,"domainLookupStart":263.5,"fetchStart":263.5,"redirectEnd":0,"redirectStart":0,"requestStart":285.40000009536743,"responseEnd":538.4000000953674,"responseStart":532.5,"secureConnectionStart":263.5},{"duration":275.09999990463257,"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":263.59999990463257,"connectEnd":263.59999990463257,"connectStart":263.59999990463257,"domainLookupEnd":263.59999990463257,"domainLookupStart":263.59999990463257,"fetchStart":263.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":289.80000019073486,"responseEnd":538.6999998092651,"responseStart":533.0999999046326,"secureConnectionStart":263.59999990463257},{"duration":59.60000038146973,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":552.6999998092651,"connectEnd":552.6999998092651,"connectStart":552.6999998092651,"domainLookupEnd":552.6999998092651,"domainLookupStart":552.6999998092651,"fetchStart":552.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":577.4000000953674,"responseEnd":612.3000001907349,"responseStart":611.5,"secureConnectionStart":552.6999998092651},{"duration":176.19999980926514,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":798.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":798.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":975.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":276,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":805.3000001907349,"connectEnd":805.3000001907349,"connectStart":805.3000001907349,"domainLookupEnd":805.3000001907349,"domainLookupStart":805.3000001907349,"fetchStart":805.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1044.5999999046326,"responseEnd":1081.3000001907349,"responseStart":1080,"secureConnectionStart":805.3000001907349}],"fetchStart":0,"domainLookupStart":21,"domainLookupEnd":30,"connectStart":30,"connectEnd":51,"secureConnectionStart":39,"requestStart":51,"responseStart":249,"responseEnd":260,"domLoading":253,"domInteractive":1012,"domContentLoadedEventStart":1012,"domContentLoadedEventEnd":1071,"domComplete":1367,"loadEventStart":1367,"loadEventEnd":1368,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":977.8000001907349},{"name":"bigPipe.sidebar-id.end","time":978.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":978.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":982.1999998092651},{"name":"activityTabFullyLoaded","time":1091.9000000953674}],"measures":[],"correlationId":"aa3ab71e2efb07","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":128,"dbReadsTimeInMs":19,"dbConnsTimeInMs":37,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
regression from 43233fe469fd85d7c64978f01ed68de3288d43cc
mutex_owner is behind UNIV_DEBUG
diff --git a/storage/innobase/include/trx0trx.h b/storage/innobase/include/trx0trx.h
index 889437aa1d2..ef11f5edd1c 100644
--- a/storage/innobase/include/trx0trx.h
+++ b/storage/innobase/include/trx0trx.h
@@ -658,10 +658,8 @@ struct trx_t : ilist_node<>
/** mutex protecting state and some of lock
(some are protected by lock_sys.latch) */
srw_spin_mutex mutex;
-#ifdef UNIV_DEBUG
/** The owner of mutex (0 if none); protected by mutex */
std::atomic<pthread_t> mutex_owner{0};
-#endif /* UNIV_DEBUG */
public:
void mutex_init() { mutex.init(); }
void mutex_destroy() { mutex.destroy(); }