nikitamalyavin and midenok, to me it looks like the code around global_system_variables might breaking some strict-aliasing rules. I am concerned about any approach to suppress any -fsanitize=undefined checks, because there rarely (if ever) are any false positives, but many false negatives such as in this case.
I think that we had better start testing with the recently released clang -fsanitize=type (D32199) and fix MDEV-20277.
Marko Mäkelä
added a comment - nikitamalyavin and midenok , to me it looks like the code around global_system_variables might breaking some strict-aliasing rules. I am concerned about any approach to suppress any -fsanitize=undefined checks, because there rarely (if ever) are any false positives, but many false negatives such as in this case .
I think that we had better start testing with the recently released clang -fsanitize=type ( D32199 ) and fix MDEV-20277 .
marko It's true, and MariaDB code counts on disabled strict aliasing widely. Also we couldn't find a better solution, than just disabling UBSAN for global_var_ptr()/session_var_ptr(). I tried to solve that with unions, but still been receiving UBSAN+ASAN failures. If you have something in mind, please share.
Nikita Malyavin
added a comment - marko It's true, and MariaDB code counts on disabled strict aliasing widely. Also we couldn't find a better solution, than just disabling UBSAN for global_var_ptr()/session_var_ptr() . I tried to solve that with unions, but still been receiving UBSAN+ASAN failures. If you have something in mind, please share.
Thank you. I don’t have anything else in mind than considering MDEV-20277 once again. I do not know how extensive changes it would require and what kind of performance improvements we could expect from removing -fno-strict-aliasing.
Marko Mäkelä
added a comment - Thank you. I don’t have anything else in mind than considering MDEV-20277 once again. I do not know how extensive changes it would require and what kind of performance improvements we could expect from removing -fno-strict-aliasing .
People
Aleksey Midenkov
Roel Van de Paar
Votes:
0Vote for this issue
Watchers:
5Start 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":762.9000000953674,"ttfb":165.5,"pageVisibility":"visible","entityId":130366,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"0327a5a4-7b12-4457-b0c2-613ce82ccaab","navigationType":0,"readyForUser":837.4000000953674,"redirectCount":0,"resourceLoadedEnd":376.40000009536743,"resourceLoadedStart":173.40000009536743,"resourceTiming":[{"duration":16.299999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":173.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":173.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":189.70000004768372,"responseStart":0,"secureConnectionStart":0},{"duration":16.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/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":173.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":173.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":190.29999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":142.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/c54b129276d75dc2a3460e1d78f37913-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":173.79999995231628,"connectEnd":173.79999995231628,"connectStart":173.79999995231628,"domainLookupEnd":173.79999995231628,"domainLookupStart":173.79999995231628,"fetchStart":173.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":191.29999995231628,"responseEnd":316.5,"responseStart":223.29999995231628,"secureConnectionStart":173.79999995231628},{"duration":202.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/f867843cd2fdb209d4d1d4f760f86346-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/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":173.90000009536743,"connectEnd":173.90000009536743,"connectStart":173.90000009536743,"domainLookupEnd":173.90000009536743,"domainLookupStart":173.90000009536743,"fetchStart":173.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":193,"responseEnd":376.40000009536743,"responseStart":224.60000014305115,"secureConnectionStart":173.90000009536743},{"duration":53.799999952316284,"initiatorType":"script","name":"https://jira.mariadb.org/s/ffdb17665775c5b4d6f097f3974ee359-CDN/lu2bsh/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":174,"connectEnd":174,"connectStart":174,"domainLookupEnd":174,"domainLookupStart":174,"fetchStart":174,"redirectEnd":0,"redirectStart":0,"requestStart":194.5,"responseEnd":227.79999995231628,"responseStart":225.90000009536743,"secureConnectionStart":174},{"duration":55.200000047683716,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":174.20000004768372,"connectEnd":174.20000004768372,"connectStart":174.20000004768372,"domainLookupEnd":174.20000004768372,"domainLookupStart":174.20000004768372,"fetchStart":174.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":195,"responseEnd":229.40000009536743,"responseStart":226.5,"secureConnectionStart":174.20000004768372},{"duration":55.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":174.29999995231628,"connectEnd":174.29999995231628,"connectStart":174.29999995231628,"domainLookupEnd":174.29999995231628,"domainLookupStart":174.29999995231628,"fetchStart":174.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":197.90000009536743,"responseEnd":229.70000004768372,"responseStart":228.20000004768372,"secureConnectionStart":174.29999995231628},{"duration":20.399999856948853,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bsh/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":174.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":174.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":194.79999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":57.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":174.5,"connectEnd":174.5,"connectStart":174.5,"domainLookupEnd":174.5,"domainLookupStart":174.5,"fetchStart":174.5,"redirectEnd":0,"redirectStart":0,"requestStart":203.10000014305115,"responseEnd":232.10000014305115,"responseStart":230.29999995231628,"secureConnectionStart":174.5},{"duration":22.699999809265137,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bsh/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":174.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":174.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":197.29999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":64.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/81b5d7c27af3ebc078cc4a36383678ba-CDN/lu2bsh/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":174.70000004768372,"connectEnd":174.70000004768372,"connectStart":174.70000004768372,"domainLookupEnd":174.70000004768372,"domainLookupStart":174.70000004768372,"fetchStart":174.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":203.29999995231628,"responseEnd":239.60000014305115,"responseStart":230.90000009536743,"secureConnectionStart":174.70000004768372},{"duration":181.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":177.90000009536743,"connectEnd":177.90000009536743,"connectStart":177.90000009536743,"domainLookupEnd":177.90000009536743,"domainLookupStart":177.90000009536743,"fetchStart":177.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":213.20000004768372,"responseEnd":359.7999999523163,"responseStart":356.7000000476837,"secureConnectionStart":177.90000009536743},{"duration":183.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":178,"connectEnd":178,"connectStart":178,"domainLookupEnd":178,"domainLookupStart":178,"fetchStart":178,"redirectEnd":0,"redirectStart":0,"requestStart":223,"responseEnd":361.7999999523163,"responseStart":360.40000009536743,"secureConnectionStart":178},{"duration":209.29999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":514.6000001430511,"connectEnd":514.6000001430511,"connectStart":514.6000001430511,"domainLookupEnd":514.6000001430511,"domainLookupStart":514.6000001430511,"fetchStart":514.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":694.6000001430511,"responseEnd":723.9000000953674,"responseStart":723,"secureConnectionStart":514.6000001430511}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":12,"responseStart":165,"responseEnd":177,"domLoading":169,"domInteractive":902,"domContentLoadedEventStart":902,"domContentLoadedEventEnd":947,"domComplete":1798,"loadEventStart":1798,"loadEventEnd":1798,"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.6000001430511},{"name":"bigPipe.sidebar-id.end","time":878.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":878.6000001430511},{"name":"bigPipe.activity-panel-pipe-id.end","time":880.5},{"name":"activityTabFullyLoaded","time":967.7999999523163}],"measures":[],"correlationId":"7af06a65012bea","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":81,"dbReadsTimeInMs":14,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Please review bb-10.5-midenok