There are a large number of issues seen across versions. All UniqueID's seen:
UBSAN|signed integer overflow: X * Y cannot be represented in type 'int'|strings/dtoa.c|my_strtod_int|my_strtod|Field_real::get_double|Field_double::store
UBSAN|signed integer overflow: X * Y cannot be represented in type 'int'|strings/dtoa.c|my_strtod_int|my_strtod|charset_info_st::strntod|Field_real::get_double
UBSAN|signed integer overflow: X * Y cannot be represented in type 'int'|strings/dtoa.c|my_strtod_int|my_strtod|my_strntod_8bit|Field_real::get_double
UBSAN|signed integer overflow: X * Y cannot be represented in type 'int'|strings/dtoa.c|my_strtod_int|my_strtod|my_strntod_8bit|charset_info_st::strntod
MDEV-28374UBSAN: runtime error: signed integer overflow: 10000000000000 * 10000000000000 cannot be represented in type 'long long int' in sql/sql_analyse.cc
Confirmed
MDEV-28345ASAN: use-after-poison or unknown-crash in my_strtod_int from charset_info_st::strntod or test_if_number
Debug build of more recent 10.11 no longer crashes, but it still shows the
/test/10.11_dbg_san/strings/dtoa.c:1481:16: runtime error: signed integer overflow: 429496729 * 10 cannot be represented in type 'int'
Roel Van de Paar
added a comment - Debug build of more recent 10.11 no longer crashes, but it still shows the
/test/10.11_dbg_san/strings/dtoa.c:1481:16: runtime error: signed integer overflow: 429496729 * 10 cannot be represented in type 'int'
Repeatable with MyISAM (which is default in MTR) with this MTR test:
CREATETABLE t1 (c DOUBLE);
--error ER_WARN_DATA_OUT_OF_RANGE
INSERTINTO t1 VALUES ('1e4294967297');
DROPTABLE t1;
main.AAA [ fail ] Found warnings/errors in server log file!
Test ended at 2022-11-17 14:00:28
line
/home/bar/maria-git/server.10.3.asan/sql/sql_show.cc:3812:7: runtime error: call to function rpl_semi_sync_master_show_clients(THD*, st_mysql_show_var*, char*) through pointer to incorrect function type 'int (*)(THD *, st_mysql_show_var *, void *, system_status_var *, enum_var_type)'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/bar/maria-git/server.10.3.asan/sql/sql_show.cc:3812:7 in
/home/bar/maria-git/server.10.3.asan/strings/dtoa.c:1481:16: runtime error: signed integer overflow: 10 * 429496729 cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/bar/maria-git/server.10.3.asan/strings/dtoa.c:1481:16 in
^ Found warnings in /home/bar/maria-git/server.10.3.asan/BUILD-DEB-CLANG/mysql-test/var/log/mysqld.1.err
Alexander Barkov
added a comment - Repeatable with MyISAM (which is default in MTR) with this MTR test:
CREATE TABLE t1 (c DOUBLE );
--error ER_WARN_DATA_OUT_OF_RANGE
INSERT INTO t1 VALUES ( '1e4294967297' );
DROP TABLE t1;
main.AAA [ fail ] Found warnings/errors in server log file!
Test ended at 2022-11-17 14:00:28
line
/home/bar/maria-git/server.10.3.asan/sql/sql_show.cc:3812:7: runtime error: call to function rpl_semi_sync_master_show_clients(THD*, st_mysql_show_var*, char*) through pointer to incorrect function type 'int (*)(THD *, st_mysql_show_var *, void *, system_status_var *, enum_var_type)'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/bar/maria-git/server.10.3.asan/sql/sql_show.cc:3812:7 in
/home/bar/maria-git/server.10.3.asan/strings/dtoa.c:1481:16: runtime error: signed integer overflow: 10 * 429496729 cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/bar/maria-git/server.10.3.asan/strings/dtoa.c:1481:16 in
^ Found warnings in /home/bar/maria-git/server.10.3.asan/BUILD-DEB-CLANG/mysql-test/var/log/mysqld.1.err
After adding this test into type_float.test, UBSAN issues more warnings:
/home/bar/maria-git/server.10.3.asan/sql/sql_show.cc:3812:7: runtime error: call to function rpl_semi_sync_master_show_clients(THD*, st_mysql_show_var*, char*) through pointer to incorrect function type 'int (*)(THD *, st_mysql_show_var *, void *, system_status_var *, enum_var_type)'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/bar/maria-git/server.10.3.asan/sql/sql_show.cc:3812:7 in
/home/bar/maria-git/server.10.3.asan/strings/decimal.c:1458:17: runtime error: left shift of negative value -1
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/bar/maria-git/server.10.3.asan/strings/decimal.c:1458:17 in
/home/bar/maria-git/server.10.3.asan/strings/decimal.c:1499:17: runtime error: left shift of negative value -1
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/bar/maria-git/server.10.3.asan/strings/decimal.c:1499:17 in
^ Found warnings in /home/bar/maria-git/server.10.3.asan/BUILD-DEB-CLANG/mysql-test/var/log/mysqld.1.err
ok
Alexander Barkov
added a comment - After adding this test into type_float.test, UBSAN issues more warnings:
/home/bar/maria-git/server.10.3.asan/sql/sql_show.cc:3812:7: runtime error: call to function rpl_semi_sync_master_show_clients(THD*, st_mysql_show_var*, char*) through pointer to incorrect function type 'int (*)(THD *, st_mysql_show_var *, void *, system_status_var *, enum_var_type)'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/bar/maria-git/server.10.3.asan/sql/sql_show.cc:3812:7 in
/home/bar/maria-git/server.10.3.asan/strings/decimal.c:1458:17: runtime error: left shift of negative value -1
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/bar/maria-git/server.10.3.asan/strings/decimal.c:1458:17 in
/home/bar/maria-git/server.10.3.asan/strings/decimal.c:1499:17: runtime error: left shift of negative value -1
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/bar/maria-git/server.10.3.asan/strings/decimal.c:1499:17 in
^ Found warnings in /home/bar/maria-git/server.10.3.asan/BUILD-DEB-CLANG/mysql-test/var/log/mysqld.1.err
ok
People
Alexander Barkov
Roel Van de Paar
Votes:
0Vote for this issue
Watchers:
4Start 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":1019.0999999046326,"ttfb":215.69999980926514,"pageVisibility":"visible","entityId":114461,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"81fb0df3-266c-434c-892f-be3c2a9f99c8","navigationType":0,"readyForUser":1108.7999997138977,"redirectCount":0,"resourceLoadedEnd":712.6999998092651,"resourceLoadedStart":223.90000009536743,"resourceTiming":[{"duration":19.399999618530273,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":223.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":223.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":243.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":19.100000381469727,"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":224.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":224.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":243.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":349.3999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/c54b129276d75dc2a3460e1d78f37913-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":224.40000009536743,"connectEnd":224.40000009536743,"connectStart":224.40000009536743,"domainLookupEnd":224.40000009536743,"domainLookupStart":224.40000009536743,"fetchStart":224.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":249.7999997138977,"responseEnd":573.7999997138977,"responseStart":274,"secureConnectionStart":224.40000009536743},{"duration":475.40000009536743,"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":224.59999990463257,"connectEnd":224.59999990463257,"connectStart":224.59999990463257,"domainLookupEnd":224.59999990463257,"domainLookupStart":224.59999990463257,"fetchStart":224.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":249.90000009536743,"responseEnd":700,"responseStart":278.19999980926514,"secureConnectionStart":224.59999990463257},{"duration":60.30000019073486,"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":224.69999980926514,"connectEnd":224.69999980926514,"connectStart":224.69999980926514,"domainLookupEnd":224.69999980926514,"domainLookupStart":224.69999980926514,"fetchStart":224.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":251.09999990463257,"responseEnd":285,"responseStart":279.59999990463257,"secureConnectionStart":224.69999980926514},{"duration":62.60000038146973,"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":224.7999997138977,"connectEnd":224.7999997138977,"connectStart":224.7999997138977,"domainLookupEnd":224.7999997138977,"domainLookupStart":224.7999997138977,"fetchStart":224.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":251.7999997138977,"responseEnd":287.40000009536743,"responseStart":282.69999980926514,"secureConnectionStart":224.7999997138977},{"duration":67.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":224.7999997138977,"connectEnd":224.7999997138977,"connectStart":224.7999997138977,"domainLookupEnd":224.7999997138977,"domainLookupStart":224.7999997138977,"fetchStart":224.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":257.09999990463257,"responseEnd":292.19999980926514,"responseStart":287.69999980926514,"secureConnectionStart":224.7999997138977},{"duration":24.59999990463257,"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":224.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":224.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":249.5,"responseStart":0,"secureConnectionStart":0},{"duration":97.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":225,"connectEnd":225,"connectStart":225,"domainLookupEnd":225,"domainLookupStart":225,"fetchStart":225,"redirectEnd":0,"redirectStart":0,"requestStart":261.09999990463257,"responseEnd":322.69999980926514,"responseStart":321,"secureConnectionStart":225},{"duration":28.300000190734863,"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":225.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":225.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":253.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":85,"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":225.19999980926514,"connectEnd":225.19999980926514,"connectStart":225.19999980926514,"domainLookupEnd":225.19999980926514,"domainLookupStart":225.19999980926514,"fetchStart":225.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":262.59999990463257,"responseEnd":310.19999980926514,"responseStart":293,"secureConnectionStart":225.19999980926514},{"duration":485.59999990463257,"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":226.09999990463257,"connectEnd":226.09999990463257,"connectStart":226.09999990463257,"domainLookupEnd":226.09999990463257,"domainLookupStart":226.09999990463257,"fetchStart":226.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":475.90000009536743,"responseEnd":711.6999998092651,"responseStart":704.6999998092651,"secureConnectionStart":226.09999990463257},{"duration":480,"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":232.69999980926514,"connectEnd":232.69999980926514,"connectStart":232.69999980926514,"domainLookupEnd":232.69999980926514,"domainLookupStart":232.69999980926514,"fetchStart":232.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":503,"responseEnd":712.6999998092651,"responseStart":707.0999999046326,"secureConnectionStart":232.69999980926514},{"duration":244.7000002861023,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":739.7999997138977,"connectEnd":739.7999997138977,"connectStart":739.7999997138977,"domainLookupEnd":739.7999997138977,"domainLookupStart":739.7999997138977,"fetchStart":739.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":957.1999998092651,"responseEnd":984.5,"responseStart":983.4000000953674,"secureConnectionStart":739.7999997138977}],"fetchStart":0,"domainLookupStart":26,"domainLookupEnd":37,"connectStart":37,"connectEnd":56,"secureConnectionStart":46,"requestStart":58,"responseStart":216,"responseEnd":223,"domLoading":222,"domInteractive":1217,"domContentLoadedEventStart":1218,"domContentLoadedEventEnd":1267,"domComplete":1646,"loadEventStart":1646,"loadEventEnd":1647,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1190.7999997138977},{"name":"bigPipe.sidebar-id.end","time":1191.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1191.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1193.9000000953674},{"name":"activityTabFullyLoaded","time":1287.6999998092651}],"measures":[],"correlationId":"57429b24a83ba6","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":80,"dbReadsTimeInMs":14,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Debug build of more recent 10.11 no longer crashes, but it still shows the
/test/10.11_dbg_san/strings/dtoa.c:1481:16: runtime error: signed integer overflow: 429496729 * 10 cannot be represented in type 'int'