This crash is similar to MDEV-35267, but here the crash only occurs when there are multiple tables in the lock statement.
CREATE OR REPLACE TABLE t (v VECTOR (1) NOT NULL,VECTOR(v)) ENGINE=ARIA;
|
CREATE OR REPLACE TABLE t2 (c INT) ENGINE=ARIA;
|
LOCK TABLES t WRITE,t2 WRITE;
|
INSERT INTO t VALUES (0x31313131);
|
DROP TABLE t;
|
Leads to:
CS 11.8.1 5217d8609b6eafc83e4f1c52b2b34c12dd41c3d7 (Optimized) Build 10/03/2025
|
Core was generated by `/test/MD100325-mariadb-11.8.1-linux-x86_64-opt/bin/mariadbd --no-defaults --max'.
|
Program terminated with signal SIGSEGV, Segmentation fault.
|
#0 0x000055d47f644f17 in _ma_reset_history (share=0x147d2c06cd78)at /test/11.8_opt/storage/maria/ma_state.c:835
|
|
[Current thread is 1 (Thread 0x147d809696c0 (LWP 2796635))]
|
(gdb) bt
|
#0 0x000055d47f644f17 in _ma_reset_history (share=0x147d2c06cd78)at /test/11.8_opt/storage/maria/ma_state.c:835
|
#1 _ma_trnman_end_trans_hook (trn=0x55d484e969e8, commit=<optimized out>, active_transactions=0 '\000')at /test/11.8_opt/storage/maria/ma_state.c:482
|
#2 0x000055d47f655caf in trnman_end_trn (trn=trn@entry=0x55d484e969e8, commit=commit@entry=1 '\001') at /test/11.8_opt/storage/maria/trnman.c:498
|
#3 0x000055d47f672e35 in ma_commit (trn=0x55d484e969e8)at /test/11.8_opt/storage/maria/ma_commit.c:73
|
#4 0x000055d47f652965 in ha_maria::external_lock (this=0x147d2c0312d8, thd=0x147d2c000c68, lock_type=2)at /test/11.8_opt/storage/maria/ha_maria.cc:3009
|
#5 0x000055d47f496b6e in handler::ha_external_lock (this=0x147d2c0312d8, thd=0x147d2c000c68, lock_type=2) at /test/11.8_opt/sql/handler.cc:7677
|
#6 0x000055d47f5b5a14 in handler::ha_external_unlock (this=0x147d2c06d628, thd=0x147d2c000c68) at /test/11.8_opt/sql/handler.h:3593
|
#7 unlock_external (thd=0x147d2c000c68, table=0x147d2c027a08, count=<optimized out>) at /test/11.8_opt/sql/lock.cc:745
|
#8 mysql_unlock_tables (thd=0x147d2c000c68, sql_lock=0x147d2c0279c8, free_lock=true) at /test/11.8_opt/sql/lock.cc:436
|
#9 0x000055d47f1b16fb in close_thread_tables (thd=thd@entry=0x147d2c000c68)at /test/11.8_opt/sql/sql_base.cc:991
|
#10 0x000055d47f1b3a67 in Locked_tables_list::unlock_locked_tables (this=0x147d2c004dd8, thd=0x147d2c000c68)at /test/11.8_opt/sql/sql_base.cc:2654
|
#11 0x000055d47f1c956a in THD::cleanup (this=0x147d2c000c68)at /test/11.8_opt/sql/sql_class.cc:1667
|
#12 0x000055d47f12621e in unlink_thd (thd=0x147d2c06d628, thd@entry=0x147d2c000c68) at /test/11.8_opt/sql/mysqld.cc:2865
|
#13 0x000055d47f34d32d in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55d485522bf8, put_in_cache=true)at /test/11.8_opt/sql/sql_connect.cc:1426
|
#14 0x000055d47f34d06f in handle_one_connection (arg=arg@entry=0x55d485522bf8)at /test/11.8_opt/sql/sql_connect.cc:1327
|
#15 0x000055d47f6d33e9 in pfs_spawn_thread (arg=0x55d4854cf4e8)at /test/11.8_opt/storage/perfschema/pfs.cc:2198
|
#16 0x0000147d8829caa4 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
|
#17 0x0000147d88329c3c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
|
Bug confirmed present in:
MariaDB: 11.7.2 (dbg), 11.7.2 (opt), 11.8.1 (dbg), 11.8.1 (opt), 12.0.0 (dbg), 12.0.0 (opt)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.11.12 (dbg), 10.11.12 (opt), 11.4.6 (dbg), 11.4.6 (opt)
{"report":{"fcp":1070.3999998569489,"ttfb":425,"pageVisibility":"visible","entityId":133237,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"05a7c241-32cc-46e2-98db-5698d137b1ff","navigationType":0,"readyForUser":1130,"redirectCount":0,"resourceLoadedEnd":1347.5,"resourceLoadedStart":430.89999985694885,"resourceTiming":[{"duration":210.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":430.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":430.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":641.3999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":210.30000019073486,"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":431.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":431.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":641.5,"responseStart":0,"secureConnectionStart":0},{"duration":220.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":431.2999999523163,"connectEnd":431.2999999523163,"connectStart":431.2999999523163,"domainLookupEnd":431.2999999523163,"domainLookupStart":431.2999999523163,"fetchStart":431.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":431.2999999523163,"responseEnd":652.0999999046326,"responseStart":652.0999999046326,"secureConnectionStart":431.2999999523163},{"duration":247.5,"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":431.2999999523163,"connectEnd":431.2999999523163,"connectStart":431.2999999523163,"domainLookupEnd":431.2999999523163,"domainLookupStart":431.2999999523163,"fetchStart":431.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":431.2999999523163,"responseEnd":678.7999999523163,"responseStart":678.7999999523163,"secureConnectionStart":431.2999999523163},{"duration":251.10000014305115,"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":431.39999985694885,"connectEnd":431.39999985694885,"connectStart":431.39999985694885,"domainLookupEnd":431.39999985694885,"domainLookupStart":431.39999985694885,"fetchStart":431.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":431.39999985694885,"responseEnd":682.5,"responseStart":682.5,"secureConnectionStart":431.39999985694885},{"duration":251.29999995231628,"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":431.59999990463257,"connectEnd":431.59999990463257,"connectStart":431.59999990463257,"domainLookupEnd":431.59999990463257,"domainLookupStart":431.59999990463257,"fetchStart":431.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":431.59999990463257,"responseEnd":682.8999998569489,"responseStart":682.8999998569489,"secureConnectionStart":431.59999990463257},{"duration":251.5,"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":431.69999980926514,"connectEnd":431.69999980926514,"connectStart":431.69999980926514,"domainLookupEnd":431.69999980926514,"domainLookupStart":431.69999980926514,"fetchStart":431.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":431.69999980926514,"responseEnd":683.1999998092651,"responseStart":683.1999998092651,"secureConnectionStart":431.69999980926514},{"duration":251.79999995231628,"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":431.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":431.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":683.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":251.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":431.7999999523163,"connectEnd":431.7999999523163,"connectStart":431.7999999523163,"domainLookupEnd":431.7999999523163,"domainLookupStart":431.7999999523163,"fetchStart":431.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":431.7999999523163,"responseEnd":683.6999998092651,"responseStart":683.5999999046326,"secureConnectionStart":431.7999999523163},{"duration":252.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":431.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":431.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":684.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":252.09999990463257,"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":432.09999990463257,"connectEnd":432.09999990463257,"connectStart":432.09999990463257,"domainLookupEnd":432.09999990463257,"domainLookupStart":432.09999990463257,"fetchStart":432.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":432.09999990463257,"responseEnd":684.1999998092651,"responseStart":684.1999998092651,"secureConnectionStart":432.09999990463257},{"duration":523.3000001907349,"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":432.69999980926514,"connectEnd":432.69999980926514,"connectStart":432.69999980926514,"domainLookupEnd":432.69999980926514,"domainLookupStart":432.69999980926514,"fetchStart":432.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":432.69999980926514,"responseEnd":956,"responseStart":956,"secureConnectionStart":432.69999980926514},{"duration":914.8000001907349,"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":432.69999980926514,"connectEnd":432.69999980926514,"connectStart":432.69999980926514,"domainLookupEnd":432.69999980926514,"domainLookupStart":432.69999980926514,"fetchStart":432.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":432.69999980926514,"responseEnd":1347.5,"responseStart":1347.5,"secureConnectionStart":432.69999980926514},{"duration":381.39999985694885,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":870.2999999523163,"connectEnd":870.2999999523163,"connectStart":870.2999999523163,"domainLookupEnd":870.2999999523163,"domainLookupStart":870.2999999523163,"fetchStart":870.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":870.2999999523163,"responseEnd":1251.6999998092651,"responseStart":1251.6999998092651,"secureConnectionStart":870.2999999523163},{"duration":299.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1049,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1049,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1348.5,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":3,"responseStart":425,"responseEnd":427,"domLoading":429,"domInteractive":1367,"domContentLoadedEventStart":1367,"domContentLoadedEventEnd":1403,"domComplete":1947,"loadEventStart":1947,"loadEventEnd":1948,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1349.1999998092651},{"name":"bigPipe.sidebar-id.end","time":1350},{"name":"bigPipe.activity-panel-pipe-id.start","time":1350.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1352.5},{"name":"activityTabFullyLoaded","time":1408.5}],"measures":[],"correlationId":"9959693c4f32f1","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":71,"dbReadsTimeInMs":10,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}