May or may not be connected with both MDEV-23073 and MDEV-31060. Using the same testcase from MDEV-31060, we see:
--source include/have_innodb.inc
|
CREATE TABLE t (c TEXT) ENGINE=InnoDB;
|
XA BEGIN '0';
|
INSERT INTO t VALUES (b'');
|
SAVEPOINT sp0;
|
XA END '0';
|
XA PREPARE '0';
|
SHUTDOWN;
|
Leads to:
10.4.29 ed2adc8c6f986f7e9c81d7a99f85cad0e2d46d80 (Debug, UBASAN)
|
worker[1] mysql-test-run: WARNING: Check-testcase failed, this could also be caused by the previous test run by this worker thread
|
main.test 'innodb' [ fail ]
|
Test ended at 2023-04-17 06:34:10
|
|
CURRENT_TEST: main.test
|
|
|
Could not execute 'check-testcase' before testcase 'main.test' (res: 1):
|
mysqltest: Logging to '/test/UBASAN_MD070423-mariadb-10.4.29-linux-x86_64-dbg/mysql-test/var/tmp/check-mysqld_1.log'.
|
mysqltest: Results saved in '/test/UBASAN_MD070423-mariadb-10.4.29-linux-x86_64-dbg/mysql-test/var/tmp/check-mysqld_1.result'.
|
=================================================================
|
==3322893==ERROR: AddressSanitizer: global-buffer-overflow on address 0x5593a30c3178 at pc 0x5593a1cd8db7 bp 0x7ffe08a7c320 sp 0x7ffe08a7bac8
|
WRITE of size 64 at 0x5593a30c3178 thread T0
|
#0 0x5593a1cd8db6 in __interceptor_regcomp.part.0 (/test/UBASAN_MD070423-mariadb-10.4.29-linux-x86_64-dbg/bin/mysqltest+0x42fdb6)
|
#1 0x5593a1d9500c in init_re_comp(regex_t*, char const*) /test/10.4_dbg_san/client/mysqltest.cc:9230
|
#2 0x5593a1dba28d in init_re /test/10.4_dbg_san/client/mysqltest.cc:9312
|
#3 0x5593a1dba28d in main /test/10.4_dbg_san/client/mysqltest.cc:9694
|
#4 0x14998a962d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
|
#5 0x14998a962e3f in __libc_start_main_impl ../csu/libc-start.c:392
|
#6 0x5593a1cabc44 in _start (/test/UBASAN_MD070423-mariadb-10.4.29-linux-x86_64-dbg/bin/mysqltest+0x402c44)
|
|
0x5593a30c3178 is located 40 bytes to the left of global variable 'overlay_dir_len' defined in '/test/10.4_dbg_san/client/mysqltest.cc:262:30' (0x5593a30c31a0) of size 8
|
0x5593a30c3178 is located 0 bytes to the right of global variable 'ps_re' defined in '/test/10.4_dbg_san/client/mysqltest.cc:265:16' (0x5593a30c3160) of size 24
|
SUMMARY: AddressSanitizer: global-buffer-overflow (/test/UBASAN_MD070423-mariadb-10.4.29-linux-x86_64-dbg/bin/mysqltest+0x42fdb6) in __interceptor_regcomp.part.0
|
Shadow bytes around the buggy address:
|
0x0ab2f46105d0: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9
|
0x0ab2f46105e0: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9
|
0x0ab2f46105f0: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9
|
0x0ab2f4610600: f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00
|
0x0ab2f4610610: f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9 00 00 00 f9
|
=>0x0ab2f4610620: f9 f9 f9 f9 00 00 00 f9 f9 f9 f9 f9 00 00 00[f9]
|
0x0ab2f4610630: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9
|
0x0ab2f4610640: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9
|
0x0ab2f4610650: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9
|
0x0ab2f4610660: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 00 00 00 00
|
0x0ab2f4610670: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
Shadow byte legend (one shadow byte represents 8 application bytes):
|
Addressable: 00
|
Partially addressable: 01 02 03 04 05 06 07
|
Heap left redzone: fa
|
Freed heap region: fd
|
Stack left redzone: f1
|
Stack mid redzone: f2
|
Stack right redzone: f3
|
Stack after return: f5
|
Stack use after scope: f8
|
Global redzone: f9
|
Global init order: f6
|
Poisoned by user: f7
|
Container overflow: fc
|
Array cookie: ac
|
Intra object redzone: bb
|
ASan internal: fe
|
Left alloca redzone: ca
|
Right alloca redzone: cb
|
Shadow gap: cc
|
==3322893==ABORTING
|
mysqltest failed but provided no output
|
Transition |
Time In Source Status |
Execution Times |
Open |
|
Closed |
|
525d 19h 34m
|
1
|
{"report":{"fcp":839.2999999523163,"ttfb":254.20000004768372,"pageVisibility":"visible","entityId":121114,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"52d17306-7807-4a01-b588-dca274b47b75","navigationType":0,"readyForUser":911.0999999046326,"redirectCount":0,"resourceLoadedEnd":930.7000000476837,"resourceLoadedStart":259.59999990463257,"resourceTiming":[{"duration":164.79999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":259.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":259.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":424.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":164.60000014305115,"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":259.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":259.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":424.5,"responseStart":0,"secureConnectionStart":0},{"duration":173.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":260,"connectEnd":260,"connectStart":260,"domainLookupEnd":260,"domainLookupStart":260,"fetchStart":260,"redirectEnd":0,"redirectStart":0,"requestStart":260,"responseEnd":433.59999990463257,"responseStart":433.59999990463257,"secureConnectionStart":260},{"duration":242.89999985694885,"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":260.2000000476837,"connectEnd":260.2000000476837,"connectStart":260.2000000476837,"domainLookupEnd":260.2000000476837,"domainLookupStart":260.2000000476837,"fetchStart":260.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":260.2000000476837,"responseEnd":503.09999990463257,"responseStart":503.09999990463257,"secureConnectionStart":260.2000000476837},{"duration":246.20000004768372,"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":260.39999985694885,"connectEnd":260.39999985694885,"connectStart":260.39999985694885,"domainLookupEnd":260.39999985694885,"domainLookupStart":260.39999985694885,"fetchStart":260.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":260.39999985694885,"responseEnd":506.59999990463257,"responseStart":506.59999990463257,"secureConnectionStart":260.39999985694885},{"duration":246.80000019073486,"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":260.39999985694885,"connectEnd":260.39999985694885,"connectStart":260.39999985694885,"domainLookupEnd":260.39999985694885,"domainLookupStart":260.39999985694885,"fetchStart":260.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":260.39999985694885,"responseEnd":507.2000000476837,"responseStart":507.2000000476837,"secureConnectionStart":260.39999985694885},{"duration":247.09999990463257,"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":260.5,"connectEnd":260.5,"connectStart":260.5,"domainLookupEnd":260.5,"domainLookupStart":260.5,"fetchStart":260.5,"redirectEnd":0,"redirectStart":0,"requestStart":260.5,"responseEnd":507.59999990463257,"responseStart":507.59999990463257,"secureConnectionStart":260.5},{"duration":247.40000009536743,"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":260.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":260.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":508,"responseStart":0,"secureConnectionStart":0},{"duration":247.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":260.7000000476837,"connectEnd":260.7000000476837,"connectStart":260.7000000476837,"domainLookupEnd":260.7000000476837,"domainLookupStart":260.7000000476837,"fetchStart":260.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":260.7000000476837,"responseEnd":508,"responseStart":508,"secureConnectionStart":260.7000000476837},{"duration":247.70000004768372,"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":260.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":260.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":508.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":247.70000004768372,"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":261,"connectEnd":261,"connectStart":261,"domainLookupEnd":261,"domainLookupStart":261,"fetchStart":261,"redirectEnd":0,"redirectStart":0,"requestStart":261,"responseEnd":508.7000000476837,"responseStart":508.7000000476837,"secureConnectionStart":261},{"duration":666.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":261.89999985694885,"connectEnd":261.89999985694885,"connectStart":261.89999985694885,"domainLookupEnd":261.89999985694885,"domainLookupStart":261.89999985694885,"fetchStart":261.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":261.89999985694885,"responseEnd":928.5999999046326,"responseStart":928.5999999046326,"secureConnectionStart":261.89999985694885},{"duration":664.3000001907349,"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":266.39999985694885,"connectEnd":266.39999985694885,"connectStart":266.39999985694885,"domainLookupEnd":266.39999985694885,"domainLookupStart":266.39999985694885,"fetchStart":266.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":266.39999985694885,"responseEnd":930.7000000476837,"responseStart":930.7000000476837,"secureConnectionStart":266.39999985694885},{"duration":283,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":647.2000000476837,"connectEnd":647.2000000476837,"connectStart":647.2000000476837,"domainLookupEnd":647.2000000476837,"domainLookupStart":647.2000000476837,"fetchStart":647.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":647.2000000476837,"responseEnd":930.2000000476837,"responseStart":930.2000000476837,"secureConnectionStart":647.2000000476837},{"duration":113.20000004768372,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":818.3999998569489,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":818.3999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":931.5999999046326,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":95,"responseStart":254,"responseEnd":262,"domLoading":257,"domInteractive":1031,"domContentLoadedEventStart":1031,"domContentLoadedEventEnd":1074,"domComplete":1288,"loadEventStart":1288,"loadEventEnd":1288,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1012.0999999046326},{"name":"bigPipe.sidebar-id.end","time":1013},{"name":"bigPipe.activity-panel-pipe-id.start","time":1013.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1013.8999998569489},{"name":"activityTabFullyLoaded","time":1091.2000000476837}],"measures":[],"correlationId":"3033c53b05561b","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":90,"dbReadsTimeInMs":17,"dbConnsTimeInMs":34,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}