Note: GCC’s -fsanitize=undefined does not include this check; clang’s does. In include/my_global.h there is an attempt to fool clang, but I believe that it would lead to undefined behaviour as well:
In fact, some use of this led to crashes in clang -fsanitize=undefined builds, until MDEV-26272 was fixed.
Marko Mäkelä
added a comment - Note: GCC’s -fsanitize=undefined does not include this check; clang ’s does. In include/my_global.h there is an attempt to fool clang , but I believe that it would lead to undefined behaviour as well:
#define my_offsetof(TYPE, MEMBER) PTR_BYTE_DIFF(&((TYPE *)0x10)->MEMBER, 0x10)
In fact, some use of this led to crashes in clang -fsanitize=undefined builds, until MDEV-26272 was fixed.
People
Alexander Barkov
Roel Van de Paar
Votes:
0Vote for this issue
Watchers:
2Start 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":726.3999996185303,"ttfb":162.69999980926514,"pageVisibility":"visible","entityId":131864,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"8533275b-8b45-479f-95bc-14c489f8e98c","navigationType":0,"readyForUser":842,"redirectCount":0,"resourceLoadedEnd":872.5999999046326,"resourceLoadedStart":180.89999961853027,"resourceTiming":[{"duration":14.100000381469727,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":180.89999961853027,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":180.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":195,"responseStart":0,"secureConnectionStart":0},{"duration":14.199999809265137,"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":181.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":181.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":195.39999961853027,"responseStart":0,"secureConnectionStart":0},{"duration":83.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":181.39999961853027,"connectEnd":181.39999961853027,"connectStart":181.39999961853027,"domainLookupEnd":181.39999961853027,"domainLookupStart":181.39999961853027,"fetchStart":181.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":181.39999961853027,"responseEnd":265.19999980926514,"responseStart":265.19999980926514,"secureConnectionStart":181.39999961853027},{"duration":170.69999980926514,"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":181.59999990463257,"connectEnd":181.59999990463257,"connectStart":181.59999990463257,"domainLookupEnd":181.59999990463257,"domainLookupStart":181.59999990463257,"fetchStart":181.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":181.59999990463257,"responseEnd":352.2999997138977,"responseStart":352.2999997138977,"secureConnectionStart":181.59999990463257},{"duration":174.30000019073486,"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":181.7999997138977,"connectEnd":181.7999997138977,"connectStart":181.7999997138977,"domainLookupEnd":181.7999997138977,"domainLookupStart":181.7999997138977,"fetchStart":181.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":181.7999997138977,"responseEnd":356.09999990463257,"responseStart":356,"secureConnectionStart":181.7999997138977},{"duration":174.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":182,"connectEnd":182,"connectStart":182,"domainLookupEnd":182,"domainLookupStart":182,"fetchStart":182,"redirectEnd":0,"redirectStart":0,"requestStart":182,"responseEnd":356.5,"responseStart":356.5,"secureConnectionStart":182},{"duration":174.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":182.19999980926514,"connectEnd":182.19999980926514,"connectStart":182.19999980926514,"domainLookupEnd":182.19999980926514,"domainLookupStart":182.19999980926514,"fetchStart":182.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":182.19999980926514,"responseEnd":356.8999996185303,"responseStart":356.8999996185303,"secureConnectionStart":182.19999980926514},{"duration":226.80000019073486,"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":182.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":182.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":409.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":174.89999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":182.5,"connectEnd":182.5,"connectStart":182.5,"domainLookupEnd":182.5,"domainLookupStart":182.5,"fetchStart":182.5,"redirectEnd":0,"redirectStart":0,"requestStart":182.5,"responseEnd":357.3999996185303,"responseStart":357.3999996185303,"secureConnectionStart":182.5},{"duration":226.5,"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":182.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":182.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":409.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":175.10000038146973,"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":182.89999961853027,"connectEnd":182.89999961853027,"connectStart":182.89999961853027,"domainLookupEnd":182.89999961853027,"domainLookupStart":182.89999961853027,"fetchStart":182.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":182.89999961853027,"responseEnd":358,"responseStart":358,"secureConnectionStart":182.89999961853027},{"duration":342.7999997138977,"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":183.59999990463257,"connectEnd":183.59999990463257,"connectStart":183.59999990463257,"domainLookupEnd":183.59999990463257,"domainLookupStart":183.59999990463257,"fetchStart":183.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":183.59999990463257,"responseEnd":526.3999996185303,"responseStart":526.2999997138977,"secureConnectionStart":183.59999990463257},{"duration":611.0999999046326,"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":183.59999990463257,"connectEnd":183.59999990463257,"connectStart":183.59999990463257,"domainLookupEnd":183.59999990463257,"domainLookupStart":183.59999990463257,"fetchStart":183.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":183.59999990463257,"responseEnd":794.6999998092651,"responseStart":794.6999998092651,"secureConnectionStart":183.59999990463257},{"duration":108.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":422.8999996185303,"connectEnd":422.8999996185303,"connectStart":422.8999996185303,"domainLookupEnd":422.8999996185303,"domainLookupStart":422.8999996185303,"fetchStart":422.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":422.8999996185303,"responseEnd":531.7999997138977,"responseStart":531.7999997138977,"secureConnectionStart":422.8999996185303},{"duration":192.30000019073486,"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":680.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":680.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":872.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":178.7000002861023,"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":681.2999997138977,"connectEnd":681.2999997138977,"connectStart":681.2999997138977,"domainLookupEnd":681.2999997138977,"domainLookupStart":681.2999997138977,"fetchStart":681.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":681.2999997138977,"responseEnd":860,"responseStart":860,"secureConnectionStart":681.2999997138977},{"duration":183.5,"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":681.5999999046326,"connectEnd":681.5999999046326,"connectStart":681.5999999046326,"domainLookupEnd":681.5999999046326,"domainLookupStart":681.5999999046326,"fetchStart":681.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":681.5999999046326,"responseEnd":865.0999999046326,"responseStart":865.0999999046326,"secureConnectionStart":681.5999999046326}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":3,"responseStart":163,"responseEnd":180,"domLoading":179,"domInteractive":900,"domContentLoadedEventStart":900,"domContentLoadedEventEnd":941,"domComplete":1291,"loadEventStart":1291,"loadEventEnd":1292,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":888.5},{"name":"bigPipe.sidebar-id.end","time":889.3999996185303},{"name":"bigPipe.activity-panel-pipe-id.start","time":889.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":890.6999998092651},{"name":"activityTabFullyLoaded","time":965.1999998092651}],"measures":[],"correlationId":"6f5dae45268346","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":93,"dbReadsTimeInMs":10,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Note: GCC’s -fsanitize=undefined does not include this check; clang’s does. In include/my_global.h there is an attempt to fool clang, but I believe that it would lead to undefined behaviour as well:
In fact, some use of this led to crashes in clang -fsanitize=undefined builds, until
MDEV-26272was fixed.