Type:
Bug
Priority:
Major
Resolution:
Duplicate
Affects Version/s:
10.5
$ . /bin/mariadb -uroot --socket=${PWD} /socket .sock
Leads to:
CS 10.5.28 773cb726a8437d911d3f7ceedf4839dab6124484 (Debug, UBASAN)
/test/clang_new/10.5_dbg_san/libmariadb/plugins/auth/my_auth.c:94:9: runtime error: call to function (unknown) through pointer to incorrect function type 'int (*)(struct st_plugin_vio *, const unsigned char *, int)'
(/test/CLANG_UBASAN_MD251124-mariadb-10.5.28-linux-x86_64-dbg/bin/mariadb+0x5ce828): note: (unknown) defined here
#0 0x5635f274160c (/test/CLANG_UBASAN_MD251124-mariadb-10.5.28-linux-x86_64-dbg/bin/mariadb+0x5cb60c) (BuildId: 11e9790fec8b3dff9cd05600a31d9a48007bd9ae)
#1 0x5635f2742e4c in run_plugin_auth (/test/CLANG_UBASAN_MD251124-mariadb-10.5.28-linux-x86_64-dbg/bin/mariadb+0x5cce4c) (BuildId: 11e9790fec8b3dff9cd05600a31d9a48007bd9ae)
#2 0x5635f2620b2c in mthd_my_real_connect (/test/CLANG_UBASAN_MD251124-mariadb-10.5.28-linux-x86_64-dbg/bin/mariadb+0x4aab2c) (BuildId: 11e9790fec8b3dff9cd05600a31d9a48007bd9ae)
#3 0x5635f2618394 in mysql_real_connect (/test/CLANG_UBASAN_MD251124-mariadb-10.5.28-linux-x86_64-dbg/bin/mariadb+0x4a2394) (BuildId: 11e9790fec8b3dff9cd05600a31d9a48007bd9ae)
#4 0x5635f25c6e3a (/test/CLANG_UBASAN_MD251124-mariadb-10.5.28-linux-x86_64-dbg/bin/mariadb+0x450e3a) (BuildId: 11e9790fec8b3dff9cd05600a31d9a48007bd9ae)
#5 0x5635f25d5bcc (/test/CLANG_UBASAN_MD251124-mariadb-10.5.28-linux-x86_64-dbg/bin/mariadb+0x45fbcc) (BuildId: 11e9790fec8b3dff9cd05600a31d9a48007bd9ae)
#6 0x5635f259b812 (/test/CLANG_UBASAN_MD251124-mariadb-10.5.28-linux-x86_64-dbg/bin/mariadb+0x425812) (BuildId: 11e9790fec8b3dff9cd05600a31d9a48007bd9ae)
#7 0x5635f25989c0 in main (/test/CLANG_UBASAN_MD251124-mariadb-10.5.28-linux-x86_64-dbg/bin/mariadb+0x4229c0) (BuildId: 11e9790fec8b3dff9cd05600a31d9a48007bd9ae)
#8 0x153180c2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#9 0x153180c2a28a in __libc_start_main csu/../csu/libc-start.c:360:3
#10 0x5635f24b7ca4 in _start (/test/CLANG_UBASAN_MD251124-mariadb-10.5.28-linux-x86_64-dbg/bin/mariadb+0x341ca4) (BuildId: 11e9790fec8b3dff9cd05600a31d9a48007bd9ae)
SUMMARY: UndefinedBehaviorSanitizer: function-type-mismatch /test/clang_new/10.5_dbg_san/libmariadb/plugins/auth/my_auth.c:94:9
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 4
Server version: 10.5.28-MariaDB-debug MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
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
duplicates
CONC-711
UBSAN: client_mpvio_write_packet through pointer to incorrect function
Closed
{"report":{"fcp":825,"ttfb":279.89999985694885,"pageVisibility":"visible","entityId":131745,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"1b88e020-ce37-4348-ad9e-c2ea2e85e5cf","navigationType":0,"readyForUser":885.2999999523163,"redirectCount":0,"resourceLoadedEnd":904,"resourceLoadedStart":340.39999985694885,"resourceTiming":[{"duration":7.6000001430511475,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":340.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":340.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":348,"responseStart":0,"secureConnectionStart":0},{"duration":7.400000095367432,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":340.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":340.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":348.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":62.299999952316284,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":340.7999999523163,"connectEnd":340.7999999523163,"connectStart":340.7999999523163,"domainLookupEnd":340.7999999523163,"domainLookupStart":340.7999999523163,"fetchStart":340.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":340.7999999523163,"responseEnd":403.09999990463257,"responseStart":403.09999990463257,"secureConnectionStart":340.7999999523163},{"duration":125.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":341,"connectEnd":341,"connectStart":341,"domainLookupEnd":341,"domainLookupStart":341,"fetchStart":341,"redirectEnd":0,"redirectStart":0,"requestStart":341,"responseEnd":466.7999999523163,"responseStart":466.7999999523163,"secureConnectionStart":341},{"duration":129.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":341.09999990463257,"connectEnd":341.09999990463257,"connectStart":341.09999990463257,"domainLookupEnd":341.09999990463257,"domainLookupStart":341.09999990463257,"fetchStart":341.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":341.09999990463257,"responseEnd":470.39999985694885,"responseStart":470.39999985694885,"secureConnectionStart":341.09999990463257},{"duration":129.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":341.09999990463257,"connectEnd":341.09999990463257,"connectStart":341.09999990463257,"domainLookupEnd":341.09999990463257,"domainLookupStart":341.09999990463257,"fetchStart":341.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":341.09999990463257,"responseEnd":470.89999985694885,"responseStart":470.89999985694885,"secureConnectionStart":341.09999990463257},{"duration":130.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":341.2000000476837,"connectEnd":341.2000000476837,"connectStart":341.2000000476837,"domainLookupEnd":341.2000000476837,"domainLookupStart":341.2000000476837,"fetchStart":341.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":341.2000000476837,"responseEnd":471.89999985694885,"responseStart":471.89999985694885,"secureConnectionStart":341.2000000476837},{"duration":131.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":341.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":341.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":472.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":130.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":341.5,"connectEnd":341.5,"connectStart":341.5,"domainLookupEnd":341.5,"domainLookupStart":341.5,"fetchStart":341.5,"redirectEnd":0,"redirectStart":0,"requestStart":341.5,"responseEnd":472.39999985694885,"responseStart":472.39999985694885,"secureConnectionStart":341.5},{"duration":131.20000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":341.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":341.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":472.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":131.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":341.7000000476837,"connectEnd":341.7000000476837,"connectStart":341.7000000476837,"domainLookupEnd":341.7000000476837,"domainLookupStart":341.7000000476837,"fetchStart":341.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":341.7000000476837,"responseEnd":473,"responseStart":473,"secureConnectionStart":341.7000000476837},{"duration":560.8999998569489,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":342.5,"connectEnd":342.5,"connectStart":342.5,"domainLookupEnd":342.5,"domainLookupStart":342.5,"fetchStart":342.5,"redirectEnd":0,"redirectStart":0,"requestStart":342.5,"responseEnd":903.3999998569489,"responseStart":903.3999998569489,"secureConnectionStart":342.5},{"duration":561.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":342.5,"connectEnd":342.5,"connectStart":342.5,"domainLookupEnd":342.5,"domainLookupStart":342.5,"fetchStart":342.5,"redirectEnd":0,"redirectStart":0,"requestStart":342.5,"responseEnd":904,"responseStart":904,"secureConnectionStart":342.5},{"duration":286.2999999523163,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":616.2000000476837,"connectEnd":616.2000000476837,"connectStart":616.2000000476837,"domainLookupEnd":616.2000000476837,"domainLookupStart":616.2000000476837,"fetchStart":616.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":616.2000000476837,"responseEnd":902.5,"responseStart":902.5,"secureConnectionStart":616.2000000476837},{"duration":114.69999980926514,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":804.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":804.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":918.8999998569489,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":134,"responseStart":280,"responseEnd":281,"domLoading":338,"domInteractive":980,"domContentLoadedEventStart":980,"domContentLoadedEventEnd":1020,"domComplete":1738,"loadEventStart":1738,"loadEventEnd":1739,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":962.7000000476837},{"name":"bigPipe.sidebar-id.end","time":963.3999998569489},{"name":"bigPipe.activity-panel-pipe-id.start","time":963.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":965.8999998569489},{"name":"activityTabFullyLoaded","time":1031.5}],"measures":[],"correlationId":"528f4c44ff03d6","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":86,"dbReadsTimeInMs":17,"dbConnsTimeInMs":26,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}