export UBSAN_OPTIONS=print_stacktrace=1:report_error_type=1
|
rm -Rf data tmp
|
mkdir tmp
|
./scripts/mariadb-install-db --no-defaults --force --auth-root-authentication-method=normal --basedir=${PWD} --tmpdir=${PWD}/tmp --datadir=${PWD}/data
|
Leads to:
CS 11.4.5 866a8ea6736d2edc0f6be552d1cdd6810c10d5ab (Debug, UBASAN)
|
/test/11.4_dbg_san/mysys/array.c:382:5: runtime error: call to function free_acl_user(ACL_USER*) through pointer to incorrect function type 'void (*)(void *)'
|
/test/11.4_dbg_san/sql/sql_acl.cc:2264: note: free_acl_user(ACL_USER*) defined here
|
#0 0x558e6ebb3a0d in delete_dynamic_with_callback /test/11.4_dbg_san/mysys/array.c:382:5
|
#1 0x558e683e7e3f in acl_free(bool) /test/11.4_dbg_san/sql/sql_acl.cc:2918:3
|
#2 0x558e67e4c949 in clean_up(bool) /test/11.4_dbg_san/sql/mysqld.cc:1988:3
|
#3 0x558e67e5aae7 in mysqld_main(int, char**) /test/11.4_dbg_san/sql/mysqld.cc:6105:3
|
#4 0x558e67e438b3 in main /test/11.4_dbg_san/sql/main.cc:34:10
|
#5 0x14ff5602a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
|
#6 0x14ff5602a28a in __libc_start_main csu/../csu/libc-start.c:360:3
|
#7 0x558e67d68084 in _start (/test/UBASAN_MD271124-mariadb-11.4.5-linux-x86_64-dbg/bin/mariadbd+0x412a084) (BuildId: 457f3d994c8914000e781d9d568f5e103246b60c)
|
|
SUMMARY: UndefinedBehaviorSanitizer: function-type-mismatch /test/11.4_dbg_san/mysys/array.c:382:5
|
Observed using UBSAN with Clang and LLMV 18.1.3:
sudo apt install clang llvm-18 llvm-18-linker-tools llvm-18-runtime llvm-18-tools llvm-18-dev libstdc++-14-dev llvm-dev llvm-17-linker-tools # llvm-17-linker-tools installs /usr/lib/llvm-17/lib/LLVMgold.so, which is needed for compilation, and LLVMgold.so is no longer included in LLVM 18
|
sudo ln -s /usr/lib/llvm-17/lib/LLVMgold.so /usr/lib/llvm-18/lib/LLVMgold.so
|
...
|
export UBSAN_OPTIONS=print_stacktrace=1:report_error_type=1
|
This bug will likely be fixed by the upmerge of the MDEV-34348 to 11.4. Logging as we have a filter in place for function:delete_dynamic_with_callback, which will be removed if MDEV-34348 fixes the bug.
{"report":{"fcp":1783.3999996185303,"ttfb":302.3999996185303,"pageVisibility":"visible","entityId":131859,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"eea63c86-6422-4ae7-a5bc-aa326a491d33","navigationType":0,"readyForUser":1877.5999994277954,"redirectCount":0,"resourceLoadedEnd":1971.5,"resourceLoadedStart":312,"resourceTiming":[{"duration":717.0999994277954,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":312,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":312,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1029.0999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":717,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":312.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":312.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1029.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":778.9000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":312.5999994277954,"connectEnd":312.5999994277954,"connectStart":312.5999994277954,"domainLookupEnd":312.5999994277954,"domainLookupStart":312.5999994277954,"fetchStart":312.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":312.5999994277954,"responseEnd":1091.5,"responseStart":1091.5,"secureConnectionStart":312.5999994277954},{"duration":976.7000007629395,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":312.79999923706055,"connectEnd":312.79999923706055,"connectStart":312.79999923706055,"domainLookupEnd":312.79999923706055,"domainLookupStart":312.79999923706055,"fetchStart":312.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":312.79999923706055,"responseEnd":1289.5,"responseStart":1289.5,"secureConnectionStart":312.79999923706055},{"duration":980.6999998092651,"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":313.0999994277954,"connectEnd":313.0999994277954,"connectStart":313.0999994277954,"domainLookupEnd":313.0999994277954,"domainLookupStart":313.0999994277954,"fetchStart":313.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":313.0999994277954,"responseEnd":1293.7999992370605,"responseStart":1293.7999992370605,"secureConnectionStart":313.0999994277954},{"duration":981,"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":313.29999923706055,"connectEnd":313.29999923706055,"connectStart":313.29999923706055,"domainLookupEnd":313.29999923706055,"domainLookupStart":313.29999923706055,"fetchStart":313.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":313.29999923706055,"responseEnd":1294.2999992370605,"responseStart":1294.2999992370605,"secureConnectionStart":313.29999923706055},{"duration":981.1999998092651,"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":313.5,"connectEnd":313.5,"connectStart":313.5,"domainLookupEnd":313.5,"domainLookupStart":313.5,"fetchStart":313.5,"redirectEnd":0,"redirectStart":0,"requestStart":313.5,"responseEnd":1294.6999998092651,"responseStart":1294.6999998092651,"secureConnectionStart":313.5},{"duration":996,"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":313.5999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":313.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1309.5999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":981.4000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":313.79999923706055,"connectEnd":313.79999923706055,"connectStart":313.79999923706055,"domainLookupEnd":313.79999923706055,"domainLookupStart":313.79999923706055,"fetchStart":313.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":313.79999923706055,"responseEnd":1295.1999998092651,"responseStart":1295.1999998092651,"secureConnectionStart":313.79999923706055},{"duration":995.3000001907349,"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":314.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":314.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1309.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":981.1000003814697,"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":314.5999994277954,"connectEnd":314.5999994277954,"connectStart":314.5999994277954,"domainLookupEnd":314.5999994277954,"domainLookupStart":314.5999994277954,"fetchStart":314.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":314.5999994277954,"responseEnd":1295.6999998092651,"responseStart":1295.6999998092651,"secureConnectionStart":314.5999994277954},{"duration":1645,"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":315.5,"connectEnd":315.5,"connectStart":315.5,"domainLookupEnd":315.5,"domainLookupStart":315.5,"fetchStart":315.5,"redirectEnd":0,"redirectStart":0,"requestStart":315.5,"responseEnd":1960.5,"responseStart":1960.5,"secureConnectionStart":315.5},{"duration":1645.6999998092651,"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":315.5999994277954,"connectEnd":315.5999994277954,"connectStart":315.5999994277954,"domainLookupEnd":315.5999994277954,"domainLookupStart":315.5999994277954,"fetchStart":315.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":315.5999994277954,"responseEnd":1961.2999992370605,"responseStart":1961.2999992370605,"secureConnectionStart":315.5999994277954},{"duration":343,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1290.3999996185303,"connectEnd":1290.3999996185303,"connectStart":1290.3999996185303,"domainLookupEnd":1290.3999996185303,"domainLookupStart":1290.3999996185303,"fetchStart":1290.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":1290.3999996185303,"responseEnd":1633.3999996185303,"responseStart":1633.3999996185303,"secureConnectionStart":1290.3999996185303},{"duration":251.4000005722046,"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","startTime":1720.0999994277954,"connectEnd":1720.0999994277954,"connectStart":1720.0999994277954,"domainLookupEnd":1720.0999994277954,"domainLookupStart":1720.0999994277954,"fetchStart":1720.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":1720.0999994277954,"responseEnd":1971.5,"responseStart":1971.5,"secureConnectionStart":1720.0999994277954},{"duration":257.19999980926514,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1773.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1773.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2031.0999994277954,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":118,"responseStart":302,"responseEnd":307,"domLoading":309,"domInteractive":2041,"domContentLoadedEventStart":2041,"domContentLoadedEventEnd":2094,"domComplete":2319,"loadEventStart":2320,"loadEventEnd":2320,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1995.2999992370605},{"name":"bigPipe.sidebar-id.end","time":1996.3999996185303},{"name":"bigPipe.activity-panel-pipe-id.start","time":1996.5999994277954},{"name":"bigPipe.activity-panel-pipe-id.end","time":1998.1999998092651},{"name":"activityTabFullyLoaded","time":2112.7999992370605}],"measures":[],"correlationId":"d34ed422616cdf","effectiveType":"4g","downlink":9.3,"rtt":0,"serverDuration":120,"dbReadsTimeInMs":21,"dbConnsTimeInMs":30,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
I think that it could have been better to wait for the merge of
MDEV-34348.