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)
There are no comments yet on this issue.
{"report":{"fcp":1306.3000001907349,"ttfb":397.5,"pageVisibility":"visible","entityId":133237,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"f385778c-bd4e-4fbf-8ce4-c1f4bb2fd08e","navigationType":0,"readyForUser":1392.1999998092651,"redirectCount":0,"resourceLoadedEnd":1078.3000001907349,"resourceLoadedStart":403.09999990463257,"resourceTiming":[{"duration":239.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":403.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":403.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":642.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":240,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":403.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":403.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":643.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":431.2000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":403.59999990463257,"connectEnd":403.59999990463257,"connectStart":403.59999990463257,"domainLookupEnd":403.59999990463257,"domainLookupStart":403.59999990463257,"fetchStart":403.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":647.5,"responseEnd":834.8000001907349,"responseStart":670.0999999046326,"secureConnectionStart":403.59999990463257},{"duration":560.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":403.80000019073486,"connectEnd":403.80000019073486,"connectStart":403.80000019073486,"domainLookupEnd":403.80000019073486,"domainLookupStart":403.80000019073486,"fetchStart":403.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":646.4000000953674,"responseEnd":964.0999999046326,"responseStart":693,"secureConnectionStart":403.80000019073486},{"duration":269.90000009536743,"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":404,"connectEnd":404,"connectStart":404,"domainLookupEnd":404,"domainLookupStart":404,"fetchStart":404,"redirectEnd":0,"redirectStart":0,"requestStart":647.6999998092651,"responseEnd":673.9000000953674,"responseStart":672,"secureConnectionStart":404},{"duration":302.2000002861023,"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":404.09999990463257,"connectEnd":404.09999990463257,"connectStart":404.09999990463257,"domainLookupEnd":404.09999990463257,"domainLookupStart":404.09999990463257,"fetchStart":404.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":649.0999999046326,"responseEnd":706.3000001907349,"responseStart":703.1999998092651,"secureConnectionStart":404.09999990463257},{"duration":272.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":404.30000019073486,"connectEnd":404.30000019073486,"connectStart":404.30000019073486,"domainLookupEnd":404.30000019073486,"domainLookupStart":404.30000019073486,"fetchStart":404.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":650,"responseEnd":676.6999998092651,"responseStart":674.0999999046326,"secureConnectionStart":404.30000019073486},{"duration":244,"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":404.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":404.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":648.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":272.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":404.69999980926514,"connectEnd":404.69999980926514,"connectStart":404.69999980926514,"domainLookupEnd":404.69999980926514,"domainLookupStart":404.69999980926514,"fetchStart":404.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":651,"responseEnd":677.0999999046326,"responseStart":674.8000001907349,"secureConnectionStart":404.69999980926514},{"duration":245.30000019073486,"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":405,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":405,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":650.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":274.90000009536743,"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":405.09999990463257,"connectEnd":405.09999990463257,"connectStart":405.09999990463257,"domainLookupEnd":405.09999990463257,"domainLookupStart":405.09999990463257,"fetchStart":405.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":657.6999998092651,"responseEnd":680,"responseStart":678.9000000953674,"secureConnectionStart":405.09999990463257},{"duration":580.3999996185303,"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":410.30000019073486,"connectEnd":410.30000019073486,"connectStart":410.30000019073486,"domainLookupEnd":410.30000019073486,"domainLookupStart":410.30000019073486,"fetchStart":410.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":860.4000000953674,"responseEnd":990.6999998092651,"responseStart":983.9000000953674,"secureConnectionStart":410.30000019073486},{"duration":667.9000000953674,"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":410.40000009536743,"connectEnd":410.40000009536743,"connectStart":410.40000009536743,"domainLookupEnd":410.40000009536743,"domainLookupStart":410.40000009536743,"fetchStart":410.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":1060.8000001907349,"responseEnd":1078.3000001907349,"responseStart":1077.5999999046326,"secureConnectionStart":410.40000009536743},{"duration":122.7000002861023,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":986.0999999046326,"connectEnd":986.0999999046326,"connectStart":986.0999999046326,"domainLookupEnd":986.0999999046326,"domainLookupStart":986.0999999046326,"fetchStart":986.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1070.3000001907349,"responseEnd":1108.8000001907349,"responseStart":1106.9000000953674,"secureConnectionStart":986.0999999046326},{"duration":263.3999996185303,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1217.3000001907349,"connectEnd":1217.3000001907349,"connectStart":1217.3000001907349,"domainLookupEnd":1217.3000001907349,"domainLookupStart":1217.3000001907349,"fetchStart":1217.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1443.0999999046326,"responseEnd":1480.6999998092651,"responseStart":1480,"secureConnectionStart":1217.3000001907349}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":243,"responseStart":397,"responseEnd":402,"domLoading":401,"domInteractive":1446,"domContentLoadedEventStart":1446,"domContentLoadedEventEnd":1490,"domComplete":1895,"loadEventStart":1895,"loadEventEnd":1895,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1428.1999998092651},{"name":"bigPipe.sidebar-id.end","time":1429.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1429.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":1429.6999998092651},{"name":"activityTabFullyLoaded","time":1498}],"measures":[],"correlationId":"58210cfaf46475","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":87,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}