Possibly connected with MDEV-27240 but versions are different, and issue does not reproduce with InnoDB.
INSTALL PLUGIN spider SONAME 'ha_spider.so';
|
CREATE TABLE t0 (s0 INT) ENGINE=SPIDER;
|
FLUSH TABLE t0 WITH READ LOCK;
|
BEGIN WORK;
|
Leads to:
10.7.2 979b23d5bfb11bb698ea65c9468b374978737ec0 (Debug)
|
mysqld: /test/10.7_dbg/sql/handler.cc:1635: int ha_commit_trans(THD*, bool): Assertion `thd->transaction->stmt.ha_list == __null || trans == &thd->transaction->stmt' failed.
|
10.7.2 979b23d5bfb11bb698ea65c9468b374978737ec0 (Debug)
|
Core was generated by `/test/MD121221-mariadb-10.7.2-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
[Current thread is 1 (Thread 0x14a93adc8700 (LWP 482208))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x000014a958a4f859 in __GI_abort () at abort.c:79
|
#2 0x000014a958a4f729 in __assert_fail_base (fmt=0x14a958be5588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x558d98e9f7c0 "thd->transaction->stmt.ha_list == __null || trans == &thd->transaction->stmt", file=0x558d98e9df93 "/test/10.7_dbg/sql/handler.cc", line=1635, function=<optimized out>) at assert.c:92
|
#3 0x000014a958a60f36 in __GI___assert_fail (assertion=assertion@entry=0x558d98e9f7c0 "thd->transaction->stmt.ha_list == __null || trans == &thd->transaction->stmt", file=file@entry=0x558d98e9df93 "/test/10.7_dbg/sql/handler.cc", line=line@entry=1635, function=function@entry=0x558d98ea1d30 "int ha_commit_trans(THD*, bool)") at assert.c:101
|
#4 0x0000558d98356652 in ha_commit_trans (thd=thd@entry=0x14a8c0000db8, all=all@entry=true) at /test/10.7_dbg/sql/handler.cc:1635
|
#5 0x0000558d981cf6d5 in trans_begin (thd=thd@entry=0x14a8c0000db8, flags=0) at /test/10.7_dbg/sql/transaction.cc:127
|
#6 0x0000558d980461e0 in mysql_execute_command (thd=thd@entry=0x14a8c0000db8, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.7_dbg/sql/sql_parse.cc:5597
|
#7 0x0000558d9802de0f in mysql_parse (thd=thd@entry=0x14a8c0000db8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14a93adc7400) at /test/10.7_dbg/sql/sql_parse.cc:8028
|
#8 0x0000558d9803caab in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14a8c0000db8, packet=packet@entry=0x14a8c000b879 "BEGIN WORK", packet_length=packet_length@entry=10, blocking=blocking@entry=true) at /test/10.7_dbg/sql/sql_class.h:1360
|
#9 0x0000558d9803feea in do_command (thd=0x14a8c0000db8, blocking=blocking@entry=true) at /test/10.7_dbg/sql/sql_parse.cc:1402
|
#10 0x0000558d981b9902 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x558d9b28bd78, put_in_cache=put_in_cache@entry=true) at /test/10.7_dbg/sql/sql_connect.cc:1418
|
#11 0x0000558d981b9f07 in handle_one_connection (arg=arg@entry=0x558d9b28bd78) at /test/10.7_dbg/sql/sql_connect.cc:1312
|
#12 0x0000558d9863a33e in pfs_spawn_thread (arg=0x558d9b19d608) at /test/10.7_dbg/storage/perfschema/pfs.cc:2201
|
#13 0x000014a958f5e609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#14 0x000014a958b4c293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.5.14 (dbg), 10.6.6 (dbg), 10.7.2 (dbg), 10.8.0 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.2.42 (dbg), 10.2.42 (opt), 10.3.33 (dbg), 10.3.33 (opt), 10.4.23 (dbg), 10.4.23 (opt), 10.5.14 (opt), 10.6.6 (opt), 10.7.2 (opt), 10.8.0 (opt)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.36 (dbg), 5.7.36 (opt), 8.0.27 (dbg), 8.0.27 (opt)
{"report":{"fcp":1899.8000001907349,"ttfb":919.5,"pageVisibility":"visible","entityId":105920,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"cf7fcf15-fb56-4451-873f-4f233f296d7e","navigationType":0,"readyForUser":1988.1000003814697,"redirectCount":0,"resourceLoadedEnd":1695.5,"resourceLoadedStart":925,"resourceTiming":[{"duration":421.6000003814697,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":925,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":925,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1346.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":421.69999980926514,"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":925.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":925.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1347,"responseStart":0,"secureConnectionStart":0},{"duration":560.1999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":925.4000005722046,"connectEnd":925.4000005722046,"connectStart":925.4000005722046,"domainLookupEnd":925.4000005722046,"domainLookupStart":925.4000005722046,"fetchStart":925.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":1350.1000003814697,"responseEnd":1485.6000003814697,"responseStart":1369.7000007629395,"secureConnectionStart":925.4000005722046},{"duration":685.5,"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":925.6000003814697,"connectEnd":925.6000003814697,"connectStart":925.6000003814697,"domainLookupEnd":925.6000003814697,"domainLookupStart":925.6000003814697,"fetchStart":925.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":1350.5,"responseEnd":1611.1000003814697,"responseStart":1392.4000005722046,"secureConnectionStart":925.6000003814697},{"duration":446.6000003814697,"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":925.8000001907349,"connectEnd":925.8000001907349,"connectStart":925.8000001907349,"domainLookupEnd":925.8000001907349,"domainLookupStart":925.8000001907349,"fetchStart":925.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1353,"responseEnd":1372.4000005722046,"responseStart":1371.4000005722046,"secureConnectionStart":925.8000001907349},{"duration":452.30000019073486,"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":925.9000005722046,"connectEnd":925.9000005722046,"connectStart":925.9000005722046,"domainLookupEnd":925.9000005722046,"domainLookupStart":925.9000005722046,"fetchStart":925.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":1354.6000003814697,"responseEnd":1378.2000007629395,"responseStart":1375.7000007629395,"secureConnectionStart":925.9000005722046},{"duration":452.3999996185303,"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":926.1000003814697,"connectEnd":926.1000003814697,"connectStart":926.1000003814697,"domainLookupEnd":926.1000003814697,"domainLookupStart":926.1000003814697,"fetchStart":926.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":1354.9000005722046,"responseEnd":1378.5,"responseStart":1376.2000007629395,"secureConnectionStart":926.1000003814697},{"duration":426.3999996185303,"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":926.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":926.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1352.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":452.20000076293945,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":926.5,"connectEnd":926.5,"connectStart":926.5,"domainLookupEnd":926.5,"domainLookupStart":926.5,"fetchStart":926.5,"redirectEnd":0,"redirectStart":0,"requestStart":1356.2000007629395,"responseEnd":1378.7000007629395,"responseStart":1376.9000005722046,"secureConnectionStart":926.5},{"duration":427.19999980926514,"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":926.7000007629395,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":926.7000007629395,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1353.9000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":456.4000005722046,"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":926.8000001907349,"connectEnd":926.8000001907349,"connectStart":926.8000001907349,"domainLookupEnd":926.8000001907349,"domainLookupStart":926.8000001907349,"fetchStart":926.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1366.6000003814697,"responseEnd":1383.2000007629395,"responseStart":1382.1000003814697,"secureConnectionStart":926.8000001907349},{"duration":658.8000001907349,"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":933.4000005722046,"connectEnd":933.4000005722046,"connectStart":933.4000005722046,"domainLookupEnd":933.4000005722046,"domainLookupStart":933.4000005722046,"fetchStart":933.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":1492.3000001907349,"responseEnd":1592.2000007629395,"responseStart":1588.2000007629395,"secureConnectionStart":933.4000005722046},{"duration":761.8999996185303,"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":933.6000003814697,"connectEnd":933.6000003814697,"connectStart":933.6000003814697,"domainLookupEnd":933.6000003814697,"domainLookupStart":933.6000003814697,"fetchStart":933.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":1684.1000003814697,"responseEnd":1695.5,"responseStart":1694.8000001907349,"secureConnectionStart":933.6000003814697},{"duration":145.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1632.1000003814697,"connectEnd":1632.1000003814697,"connectStart":1632.1000003814697,"domainLookupEnd":1632.1000003814697,"domainLookupStart":1632.1000003814697,"fetchStart":1632.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":1746,"responseEnd":1777.9000005722046,"responseStart":1777.2000007629395,"secureConnectionStart":1632.1000003814697},{"duration":331,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1837.9000005722046,"connectEnd":1837.9000005722046,"connectStart":1837.9000005722046,"domainLookupEnd":1837.9000005722046,"domainLookupStart":1837.9000005722046,"fetchStart":1837.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":2135.800000190735,"responseEnd":2168.9000005722046,"responseStart":2167.6000003814697,"secureConnectionStart":1837.9000005722046}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":296,"responseStart":920,"responseEnd":930,"domLoading":923,"domInteractive":2112,"domContentLoadedEventStart":2112,"domContentLoadedEventEnd":2178,"domComplete":2637,"loadEventStart":2637,"loadEventEnd":2637,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2074.9000005722046},{"name":"bigPipe.sidebar-id.end","time":2075.800000190735},{"name":"bigPipe.activity-panel-pipe-id.start","time":2075.800000190735},{"name":"bigPipe.activity-panel-pipe-id.end","time":2080.300000190735},{"name":"activityTabFullyLoaded","time":2198.9000005722046}],"measures":[],"correlationId":"ca624caf585ea","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":546,"dbReadsTimeInMs":19,"dbConnsTimeInMs":454,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
I disabled the test temporarily.
heap-use-after-free seems not to be due to my refactoring. The server too fails on 2ada51ccd0d4368eea7d173163c36e2792990a10.