CREATE TABLE t (a INT) ENGINE=InnoDB;
|
INSERT INTO t (a) VALUES (0);
|
XA BEGIN 'a';
|
SELECT * FROM mysql.innodb_index_stats LOCK IN SHARE MODE;
|
INSERT INTO t (a) VALUES (0);
|
Leads to:
10.5.23 b06ac9a8cd2146e89270cc2150d306d8ed1b33fb (Optimized, UBASAN)
|
/test/10.5_opt_san/storage/innobase/dict/dict0stats.cc:2407:14: runtime error: load of value 190, which is not a valid value for type 'bool'
|
#0 0x561fbcf92411 in dict_stats_save_index_stat(dict_index_t*, long, char const*, unsigned long, unsigned long*, char const*, trx_t*) /test/10.5_opt_san/storage/innobase/dict/dict0stats.cc:2407
|
#1 0x561fc104d73c in dict_stats_save /test/10.5_opt_san/storage/innobase/dict/dict0stats.cc:2595
|
#2 0x561fc1056056 in dict_stats_update(dict_table_t*, dict_stats_upd_option_t) /test/10.5_opt_san/storage/innobase/dict/dict0stats.cc:3235
|
#3 0x561fc1065d14 in dict_stats_process_entry_from_recalc_pool /test/10.5_opt_san/storage/innobase/dict/dict0stats_bg.cc:399
|
#4 0x561fc1065d14 in dict_stats_func /test/10.5_opt_san/storage/innobase/dict/dict0stats_bg.cc:418
|
#5 0x561fc13e7e1c in tpool::thread_pool_generic::timer_generic::run() /test/10.5_opt_san/tpool/tpool_generic.cc:361
|
#6 0x561fc13e7e1c in tpool::thread_pool_generic::timer_generic::execute(void*) /test/10.5_opt_san/tpool/tpool_generic.cc:382
|
#7 0x561fc13f0295 in tpool::task::execute() /test/10.5_opt_san/tpool/task.cc:52
|
#8 0x561fc13db98b in tpool::thread_pool_generic::worker_main(tpool::worker_data*) /test/10.5_opt_san/tpool/tpool_generic.cc:599
|
#9 0x561fc13e701a in void std::__invoke_impl<void, void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*>(std::__invoke_memfun_deref, void (tpool::thread_pool_generic::*&&)(tpool::worker_data*), tpool::thread_pool_generic*&&, tpool::worker_data*&&) /usr/include/c++/9/bits/invoke.h:73
|
#10 0x561fc13e701a in std::__invoke_result<void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*>::type std::__invoke<void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*>(void (tpool::thread_pool_generic::*&&)(tpool::worker_data*), tpool::thread_pool_generic*&&, tpool::worker_data*&&) /usr/include/c++/9/bits/invoke.h:95
|
#11 0x561fc13e701a in void std::thread::_Invoker<std::tuple<void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*> >::_M_invoke<0ul, 1ul, 2ul>(std::_Index_tuple<0ul, 1ul, 2ul>) /usr/include/c++/9/thread:244
|
#12 0x561fc13e701a in std::thread::_Invoker<std::tuple<void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*> >::operator()() /usr/include/c++/9/thread:251
|
#13 0x561fc13e701a in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*> > >::_M_run() /usr/include/c++/9/thread:195
|
#14 0x148c08187de3 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xd6de3)
|
#15 0x148c082a1608 in start_thread /build/glibc-SzIz7B/glibc-2.31/nptl/pthread_create.c:477
|
#16 0x148c07516132 in __clone (/lib/x86_64-linux-gnu/libc.so.6+0x11f132)
|
|
2023-11-03 5:16:20 0 [ERROR] InnoDB: Cannot save index statistics for table `test`.`t`, index `GEN_CLUST_INDEX`, stat name "n_diff_pfx01": Lock wait timeout
|
|
Setup:
Compiled with GCC >=7.5.0 (I use GCC 11.4.0) and:
|
-DWITH_ASAN=ON -DWITH_ASAN_SCOPE=ON -DWITH_UBSAN=ON -DWSREP_LIB_WITH_ASAN=ON
|
Set before execution:
|
export UBSAN_OPTIONS=print_stacktrace=1
|
Bug confirmed present in:
MariaDB: 10.4.32 (dbg), 10.4.32 (opt), 10.5.23 (dbg), 10.5.23 (opt)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.6.16 (dbg), 10.6.16 (opt), 10.9.8 (dbg), 10.9.8 (opt), 10.10.7 (dbg), 10.10.7 (opt), 10.11.6 (dbg), 10.11.6 (opt), 11.0.4 (dbg), 11.0.4 (opt), 11.1.3 (dbg), 11.1.3 (opt), 11.2.2 (dbg), 11.2.2 (opt), 11.3.0 (dbg), 11.3.0 (opt)
{"report":{"fcp":1154.2000000476837,"ttfb":657,"pageVisibility":"visible","entityId":126162,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"9ee63b05-69a3-4855-a1c9-f15cde7691f3","navigationType":0,"readyForUser":1240,"redirectCount":0,"resourceLoadedEnd":1257.3000001907349,"resourceLoadedStart":665.3000001907349,"resourceTiming":[{"duration":20.799999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":665.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":665.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":686.1000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":21.399999856948853,"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":665.6000001430511,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":665.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":687,"responseStart":0,"secureConnectionStart":0},{"duration":58.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":665.8000001907349,"connectEnd":665.8000001907349,"connectStart":665.8000001907349,"domainLookupEnd":665.8000001907349,"domainLookupStart":665.8000001907349,"fetchStart":665.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":689.5,"responseEnd":724.4000000953674,"responseStart":701.6000001430511,"secureConnectionStart":665.8000001907349},{"duration":46.90000009536743,"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":666.2000000476837,"connectEnd":666.2000000476837,"connectStart":666.2000000476837,"domainLookupEnd":666.2000000476837,"domainLookupStart":666.2000000476837,"fetchStart":666.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":692.7000000476837,"responseEnd":713.1000001430511,"responseStart":712.5,"secureConnectionStart":666.2000000476837},{"duration":69.70000004768372,"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":666.2000000476837,"connectEnd":666.2000000476837,"connectStart":666.2000000476837,"domainLookupEnd":666.2000000476837,"domainLookupStart":666.2000000476837,"fetchStart":666.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":692.1000001430511,"responseEnd":735.9000000953674,"responseStart":714.7000000476837,"secureConnectionStart":666.2000000476837},{"duration":46.09999990463257,"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":666.4000000953674,"connectEnd":666.4000000953674,"connectStart":666.4000000953674,"domainLookupEnd":666.4000000953674,"domainLookupStart":666.4000000953674,"fetchStart":666.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":693.1000001430511,"responseEnd":712.5,"responseStart":711.9000000953674,"secureConnectionStart":666.4000000953674},{"duration":51.40000009536743,"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":666.4000000953674,"connectEnd":705,"connectStart":705,"domainLookupEnd":705,"domainLookupStart":705,"fetchStart":666.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":705.7000000476837,"responseEnd":717.8000001907349,"responseStart":716.3000001907349,"secureConnectionStart":705},{"duration":32.59999990463257,"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":666.6000001430511,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":666.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":699.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":51.700000047683716,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":666.6000001430511,"connectEnd":666.6000001430511,"connectStart":666.6000001430511,"domainLookupEnd":666.6000001430511,"domainLookupStart":666.6000001430511,"fetchStart":666.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":706.3000001907349,"responseEnd":718.3000001907349,"responseStart":717,"secureConnectionStart":666.6000001430511},{"duration":38.5,"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":666.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":666.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":705.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":212,"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":666.9000000953674,"connectEnd":666.9000000953674,"connectStart":666.9000000953674,"domainLookupEnd":666.9000000953674,"domainLookupStart":666.9000000953674,"fetchStart":666.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":865.4000000953674,"responseEnd":878.9000000953674,"responseStart":876.2000000476837,"secureConnectionStart":666.9000000953674},{"duration":573.7000000476837,"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":682.7000000476837,"connectEnd":682.7000000476837,"connectStart":682.7000000476837,"domainLookupEnd":682.7000000476837,"domainLookupStart":682.7000000476837,"fetchStart":682.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1245.8000001907349,"responseEnd":1256.4000000953674,"responseStart":1255.4000000953674,"secureConnectionStart":682.7000000476837},{"duration":574.2000000476837,"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":683.1000001430511,"connectEnd":683.1000001430511,"connectStart":683.1000001430511,"domainLookupEnd":683.1000001430511,"domainLookupStart":683.1000001430511,"fetchStart":683.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":1246.1000001430511,"responseEnd":1257.3000001907349,"responseStart":1256.6000001430511,"secureConnectionStart":683.1000001430511},{"duration":175.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":922.4000000953674,"connectEnd":922.4000000953674,"connectStart":922.4000000953674,"domainLookupEnd":922.4000000953674,"domainLookupStart":922.4000000953674,"fetchStart":922.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1060.4000000953674,"responseEnd":1097.8000001907349,"responseStart":1096.2000000476837,"secureConnectionStart":922.4000000953674},{"duration":167.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1147.6000001430511,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1147.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1315.1000001430511,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":216,"responseStart":657,"responseEnd":683,"domLoading":660,"domInteractive":1299,"domContentLoadedEventStart":1299,"domContentLoadedEventEnd":1342,"domComplete":2293,"loadEventStart":2293,"loadEventEnd":2294,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1279.8000001907349},{"name":"bigPipe.sidebar-id.end","time":1280.6000001430511},{"name":"bigPipe.activity-panel-pipe-id.start","time":1280.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":1283.2000000476837},{"name":"activityTabFullyLoaded","time":1349.4000000953674}],"measures":[],"correlationId":"a89ea765cc33e3","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":384,"dbReadsTimeInMs":14,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}