With MariaDB 10.6 ( no matter of the subversion but tested mostly with 10.6.10 ) when particular query cache is present you are unable to drop database.
You will need the files all.sql and source_db_schema.sql which are attached to this task.
Then just execute from bash console:
mysql -e "create database source_db"
mysql source_db < source_db_schema.sql
mysql -e 'RESET QUERY CACHE';
mysql -e "create database destination_db" ; mysqldump source_db | mysql destination_db
mysql 'source_db' -e "select option_name from VbVoptions;" ;
In summary if specific query cache is present, you are unable to drop database and it just hangs (MariaDB uses 100% cpu) and no restart ( without "kill -9" ) can be performed .
Thanks for the report and the test case. Reproducible as described on 10.5+.
A reduced and MTR-ed version:
SET @qcache= @@global.query_cache_type;
SETGLOBAL query_cache_type= 1;
SET query_cache_type= 1;
CREATETABLE t1 (a VARCHAR(8)) ENGINE=MyISAM;
SELECT a FROM test.t1;
CREATEDATABASE db;
USE db;
CREATETABLE t2 (b INT) ENGINE=MyISAM;
CREATETABLE t3 (c INT) ENGINE=MyISAM;
SELECT't2' table_name FROM t2;
SELECT't2' table_name FROM t2
UNIONALL
SELECT't3' table_name FROM t3;
DROPDATABASE db;
# Cleanup
USE test;
DROPTABLE t1;
SETGLOBAL query_cache_type= @qcache;
DROP DATABASE db hangs (loops at high CPU), one of stack traces:
10.5 dca4fc24
#3 0x000055f04f7e908d in DbugMalloc (size=568) at /src/dbug/dbug.c:2071
#4 0x000055f04f7e7143 in PushState (cs=0x606000015fe0) at /src/dbug/dbug.c:1596
#5 0x000055f04f7e12f3 in _db_push_ (control=0x55f0508ff460 "") at /src/dbug/dbug.c:864
#6 0x000055f04f7884ca in safe_mutex_lock (mp=0x62b00006b030, my_flags=0, file=0x55f04f97cd60 "/src/sql/sql_class.h", line=4239) at /src/mysys/thr_mutex.c:236
#7 0x000055f04da0fe9b in inline_mysql_mutex_lock (that=0x62b00006b030, src_file=0x55f04f97cd60 "/src/sql/sql_class.h", src_line=4239) at /src/include/mysql/psi/mysql_thread.h:750
#8 0x000055f04da321a8 in THD::set_killed (this=0x62b000069218, killed_arg=KILL_CONNECTION, killed_errno_arg=0, killed_err_msg_arg=0x0) at /src/sql/sql_class.h:4239
#9 0x000055f04dba9a84 in Query_cache::wreck (this=0x55f051c29f40 <query_cache>, line=867, message=0x55f04fa1c840 "incorrect block type") at /src/sql/sql_cache.cc:4691
#10 0x000055f04db991bc in Query_cache_block::table (this=0x7f88d71f87f8) at /src/sql/sql_cache.cc:867
#11 0x000055f04db9f75e in Query_cache::invalidate (this=0x55f051c29f40 <query_cache>, thd=0x62b000069218, db=0x62b0000382c8 "db") at /src/sql/sql_cache.cc:2380
#12 0x000055f04dbf735b in mysql_rm_db_internal (thd=0x62b000069218, db=0x62b00006e0c8, if_exists=false, silent=false) at /src/sql/sql_db.cc:972
#13 0x000055f04dbf7eb3 in mysql_rm_db (thd=0x62b000069218, db=0x62b00006e0c8, if_exists=false) at /src/sql/sql_db.cc:1103
#14 0x000055f04dcd6ff0 in mysql_execute_command (thd=0x62b000069218) at /src/sql/sql_parse.cc:5241
#15 0x000055f04dce8c53 in mysql_parse (thd=0x62b000069218, rawbuf=0x62b000038238 "DROP DATABASE db", length=16, parser_state=0x7f88d767ec40, is_com_multi=false, is_next_command=false) at /src/sql/sql_parse.cc:8087
#16 0x000055f04dcc1449 in dispatch_command (command=COM_QUERY, thd=0x62b000069218, packet=0x62900024e219 "DROP DATABASE db", packet_length=16, is_com_multi=false, is_next_command=false) at /src/sql/sql_parse.cc:1891
#17 0x000055f04dcbe682 in do_command (thd=0x62b000069218) at /src/sql/sql_parse.cc:1375
#18 0x000055f04e09d7d0 in do_handle_one_connection (connect=0x608000002538, put_in_cache=true) at /src/sql/sql_connect.cc:1416
#19 0x000055f04e09d198 in handle_one_connection (arg=0x6080000024b8) at /src/sql/sql_connect.cc:1318
#20 0x000055f04ebb9b1c in pfs_spawn_thread (arg=0x615000005d18) at /src/storage/perfschema/pfs.cc:2201
#21 0x00007f88e1078ea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#22 0x00007f88e0c65aef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
The problem was introduced in 10.5.4 by this commit:
commit dfb41fddf69ccbca89fd322901f2809bc3bcc0e9
Author: Monty
Date: Fri Jun 5 18:55:11 2020 +0300
Make error messages from DROP TABLE and DROP TABLE IF EXISTS consistent
(despite the main line, there were "other things" in that commit).
Elena Stepanova
added a comment - Thanks for the report and the test case. Reproducible as described on 10.5+.
A reduced and MTR-ed version:
SET @qcache= @@ global .query_cache_type;
SET GLOBAL query_cache_type= 1;
SET query_cache_type= 1;
CREATE TABLE t1 (a VARCHAR (8)) ENGINE=MyISAM;
SELECT a FROM test.t1;
CREATE DATABASE db;
USE db;
CREATE TABLE t2 (b INT ) ENGINE=MyISAM;
CREATE TABLE t3 (c INT ) ENGINE=MyISAM;
SELECT 't2' table_name FROM t2;
SELECT 't2' table_name FROM t2
UNION ALL
SELECT 't3' table_name FROM t3;
DROP DATABASE db;
# Cleanup
USE test;
DROP TABLE t1;
SET GLOBAL query_cache_type= @qcache;
DROP DATABASE db hangs (loops at high CPU), one of stack traces:
10.5 dca4fc24
#3 0x000055f04f7e908d in DbugMalloc (size=568) at /src/dbug/dbug.c:2071
#4 0x000055f04f7e7143 in PushState (cs=0x606000015fe0) at /src/dbug/dbug.c:1596
#5 0x000055f04f7e12f3 in _db_push_ (control=0x55f0508ff460 "") at /src/dbug/dbug.c:864
#6 0x000055f04f7884ca in safe_mutex_lock (mp=0x62b00006b030, my_flags=0, file=0x55f04f97cd60 "/src/sql/sql_class.h", line=4239) at /src/mysys/thr_mutex.c:236
#7 0x000055f04da0fe9b in inline_mysql_mutex_lock (that=0x62b00006b030, src_file=0x55f04f97cd60 "/src/sql/sql_class.h", src_line=4239) at /src/include/mysql/psi/mysql_thread.h:750
#8 0x000055f04da321a8 in THD::set_killed (this=0x62b000069218, killed_arg=KILL_CONNECTION, killed_errno_arg=0, killed_err_msg_arg=0x0) at /src/sql/sql_class.h:4239
#9 0x000055f04dba9a84 in Query_cache::wreck (this=0x55f051c29f40 <query_cache>, line=867, message=0x55f04fa1c840 "incorrect block type") at /src/sql/sql_cache.cc:4691
#10 0x000055f04db991bc in Query_cache_block::table (this=0x7f88d71f87f8) at /src/sql/sql_cache.cc:867
#11 0x000055f04db9f75e in Query_cache::invalidate (this=0x55f051c29f40 <query_cache>, thd=0x62b000069218, db=0x62b0000382c8 "db") at /src/sql/sql_cache.cc:2380
#12 0x000055f04dbf735b in mysql_rm_db_internal (thd=0x62b000069218, db=0x62b00006e0c8, if_exists=false, silent=false) at /src/sql/sql_db.cc:972
#13 0x000055f04dbf7eb3 in mysql_rm_db (thd=0x62b000069218, db=0x62b00006e0c8, if_exists=false) at /src/sql/sql_db.cc:1103
#14 0x000055f04dcd6ff0 in mysql_execute_command (thd=0x62b000069218) at /src/sql/sql_parse.cc:5241
#15 0x000055f04dce8c53 in mysql_parse (thd=0x62b000069218, rawbuf=0x62b000038238 "DROP DATABASE db", length=16, parser_state=0x7f88d767ec40, is_com_multi=false, is_next_command=false) at /src/sql/sql_parse.cc:8087
#16 0x000055f04dcc1449 in dispatch_command (command=COM_QUERY, thd=0x62b000069218, packet=0x62900024e219 "DROP DATABASE db", packet_length=16, is_com_multi=false, is_next_command=false) at /src/sql/sql_parse.cc:1891
#17 0x000055f04dcbe682 in do_command (thd=0x62b000069218) at /src/sql/sql_parse.cc:1375
#18 0x000055f04e09d7d0 in do_handle_one_connection (connect=0x608000002538, put_in_cache=true) at /src/sql/sql_connect.cc:1416
#19 0x000055f04e09d198 in handle_one_connection (arg=0x6080000024b8) at /src/sql/sql_connect.cc:1318
#20 0x000055f04ebb9b1c in pfs_spawn_thread (arg=0x615000005d18) at /src/storage/perfschema/pfs.cc:2201
#21 0x00007f88e1078ea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#22 0x00007f88e0c65aef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
The problem was introduced in 10.5.4 by this commit:
commit dfb41fddf69ccbca89fd322901f2809bc3bcc0e9
Author: Monty
Date: Fri Jun 5 18:55:11 2020 +0300
Make error messages from DROP TABLE and DROP TABLE IF EXISTS consistent
(despite the main line, there were "other things" in that commit).
I can reproduce the deadlock with Nevens example everytime also with the latest MariaDB 10.6.10.
It is only working if the Query-cache-reset is immediately executed before the drop.
Alex
added a comment - I can reproduce the deadlock with Nevens example everytime also with the latest MariaDB 10.6.10.
It is only working if the Query-cache-reset is immediately executed before the drop.
Related to MDEV-23527 and MDEV-25023 .
Thanks NevenIvanov for the test case, and elenst for the reduction/bisect down to commit to blame. Both helped immensely.
Daniel Black
added a comment - Thanks NevenIvanov for the test case, and elenst for the reduction/bisect down to commit to blame. Both helped immensely.
People
Daniel Black
Neven Ivanov
Votes:
0Vote for this issue
Watchers:
8Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1120.5999999046326,"ttfb":346,"pageVisibility":"visible","entityId":115417,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"3412819a-71da-48bc-9834-6785a9591b3a","navigationType":0,"readyForUser":1253.5,"redirectCount":0,"resourceLoadedEnd":1003.6999998092651,"resourceLoadedStart":353.59999990463257,"resourceTiming":[{"duration":225.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":353.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":353.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":579.5,"responseStart":0,"secureConnectionStart":0},{"duration":226,"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":354,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":354,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":580,"responseStart":0,"secureConnectionStart":0},{"duration":296.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":354.19999980926514,"connectEnd":354.19999980926514,"connectStart":354.19999980926514,"domainLookupEnd":354.19999980926514,"domainLookupStart":354.19999980926514,"fetchStart":354.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":584.5999999046326,"responseEnd":651.0999999046326,"responseStart":598.4000000953674,"secureConnectionStart":354.19999980926514},{"duration":363.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":354.30000019073486,"connectEnd":354.30000019073486,"connectStart":354.30000019073486,"domainLookupEnd":354.30000019073486,"domainLookupStart":354.30000019073486,"fetchStart":354.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":584.6999998092651,"responseEnd":717.5999999046326,"responseStart":601.3000001907349,"secureConnectionStart":354.30000019073486},{"duration":243.7000002861023,"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":354.59999990463257,"connectEnd":354.59999990463257,"connectStart":354.59999990463257,"domainLookupEnd":354.59999990463257,"domainLookupStart":354.59999990463257,"fetchStart":354.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":585.5,"responseEnd":598.3000001907349,"responseStart":597.5,"secureConnectionStart":354.59999990463257},{"duration":246.5,"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":354.69999980926514,"connectEnd":354.69999980926514,"connectStart":354.69999980926514,"domainLookupEnd":354.69999980926514,"domainLookupStart":354.69999980926514,"fetchStart":354.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":587.8000001907349,"responseEnd":601.1999998092651,"responseStart":600.4000000953674,"secureConnectionStart":354.69999980926514},{"duration":256.2999997138977,"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":354.90000009536743,"connectEnd":354.90000009536743,"connectStart":354.90000009536743,"domainLookupEnd":354.90000009536743,"domainLookupStart":354.90000009536743,"fetchStart":354.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":589.0999999046326,"responseEnd":611.1999998092651,"responseStart":610.4000000953674,"secureConnectionStart":354.90000009536743},{"duration":233.59999990463257,"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":355.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":355.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":588.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":260.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":355.19999980926514,"connectEnd":355.19999980926514,"connectStart":355.19999980926514,"domainLookupEnd":355.19999980926514,"domainLookupStart":355.19999980926514,"fetchStart":355.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":592.0999999046326,"responseEnd":616,"responseStart":615.3000001907349,"secureConnectionStart":355.19999980926514},{"duration":236.2999997138977,"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":355.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":355.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":591.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":256.69999980926514,"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":355.5,"connectEnd":595.5,"connectStart":595.5,"domainLookupEnd":595.5,"domainLookupStart":595.5,"fetchStart":355.5,"redirectEnd":0,"redirectStart":0,"requestStart":595.9000000953674,"responseEnd":612.1999998092651,"responseStart":607.5,"secureConnectionStart":595.5},{"duration":640.1999998092651,"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":362.80000019073486,"connectEnd":362.80000019073486,"connectStart":362.80000019073486,"domainLookupEnd":362.80000019073486,"domainLookupStart":362.80000019073486,"fetchStart":362.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":846.1999998092651,"responseEnd":1003,"responseStart":997.5999999046326,"secureConnectionStart":362.80000019073486},{"duration":630.5,"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":373.19999980926514,"connectEnd":373.19999980926514,"connectStart":373.19999980926514,"domainLookupEnd":373.19999980926514,"domainLookupStart":373.19999980926514,"fetchStart":373.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":847.9000000953674,"responseEnd":1003.6999998092651,"responseStart":999.3000001907349,"secureConnectionStart":373.19999980926514},{"duration":234.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":851.0999999046326,"connectEnd":851.0999999046326,"connectStart":851.0999999046326,"domainLookupEnd":851.0999999046326,"domainLookupStart":851.0999999046326,"fetchStart":851.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1020.8000001907349,"responseEnd":1085.6999998092651,"responseStart":1085,"secureConnectionStart":851.0999999046326}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":166,"responseStart":346,"responseEnd":373,"domLoading":349,"domInteractive":1425,"domContentLoadedEventStart":1425,"domContentLoadedEventEnd":1477,"domComplete":2151,"loadEventStart":2151,"loadEventEnd":2151,"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},{"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":1353.4000000953674},{"name":"activityTabFullyLoaded","time":1497.5}],"measures":[],"correlationId":"30eaa9ee573e7f","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":102,"dbReadsTimeInMs":14,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Thanks for the report and the test case. Reproducible as described on 10.5+.
A reduced and MTR-ed version:
# Cleanup
DROP DATABASE db hangs (loops at high CPU), one of stack traces:
10.5 dca4fc24
#3 0x000055f04f7e908d in DbugMalloc (size=568) at /src/dbug/dbug.c:2071
#4 0x000055f04f7e7143 in PushState (cs=0x606000015fe0) at /src/dbug/dbug.c:1596
#5 0x000055f04f7e12f3 in _db_push_ (control=0x55f0508ff460 "") at /src/dbug/dbug.c:864
#6 0x000055f04f7884ca in safe_mutex_lock (mp=0x62b00006b030, my_flags=0, file=0x55f04f97cd60 "/src/sql/sql_class.h", line=4239) at /src/mysys/thr_mutex.c:236
#7 0x000055f04da0fe9b in inline_mysql_mutex_lock (that=0x62b00006b030, src_file=0x55f04f97cd60 "/src/sql/sql_class.h", src_line=4239) at /src/include/mysql/psi/mysql_thread.h:750
#8 0x000055f04da321a8 in THD::set_killed (this=0x62b000069218, killed_arg=KILL_CONNECTION, killed_errno_arg=0, killed_err_msg_arg=0x0) at /src/sql/sql_class.h:4239
#9 0x000055f04dba9a84 in Query_cache::wreck (this=0x55f051c29f40 <query_cache>, line=867, message=0x55f04fa1c840 "incorrect block type") at /src/sql/sql_cache.cc:4691
#10 0x000055f04db991bc in Query_cache_block::table (this=0x7f88d71f87f8) at /src/sql/sql_cache.cc:867
#11 0x000055f04db9f75e in Query_cache::invalidate (this=0x55f051c29f40 <query_cache>, thd=0x62b000069218, db=0x62b0000382c8 "db") at /src/sql/sql_cache.cc:2380
#12 0x000055f04dbf735b in mysql_rm_db_internal (thd=0x62b000069218, db=0x62b00006e0c8, if_exists=false, silent=false) at /src/sql/sql_db.cc:972
#13 0x000055f04dbf7eb3 in mysql_rm_db (thd=0x62b000069218, db=0x62b00006e0c8, if_exists=false) at /src/sql/sql_db.cc:1103
#14 0x000055f04dcd6ff0 in mysql_execute_command (thd=0x62b000069218) at /src/sql/sql_parse.cc:5241
#15 0x000055f04dce8c53 in mysql_parse (thd=0x62b000069218, rawbuf=0x62b000038238 "DROP DATABASE db", length=16, parser_state=0x7f88d767ec40, is_com_multi=false, is_next_command=false) at /src/sql/sql_parse.cc:8087
#16 0x000055f04dcc1449 in dispatch_command (command=COM_QUERY, thd=0x62b000069218, packet=0x62900024e219 "DROP DATABASE db", packet_length=16, is_com_multi=false, is_next_command=false) at /src/sql/sql_parse.cc:1891
#17 0x000055f04dcbe682 in do_command (thd=0x62b000069218) at /src/sql/sql_parse.cc:1375
#18 0x000055f04e09d7d0 in do_handle_one_connection (connect=0x608000002538, put_in_cache=true) at /src/sql/sql_connect.cc:1416
#19 0x000055f04e09d198 in handle_one_connection (arg=0x6080000024b8) at /src/sql/sql_connect.cc:1318
#20 0x000055f04ebb9b1c in pfs_spawn_thread (arg=0x615000005d18) at /src/storage/perfschema/pfs.cc:2201
#21 0x00007f88e1078ea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#22 0x00007f88e0c65aef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
The problem was introduced in 10.5.4 by this commit:
commit dfb41fddf69ccbca89fd322901f2809bc3bcc0e9
Author: Monty
Date: Fri Jun 5 18:55:11 2020 +0300
Make error messages from DROP TABLE and DROP TABLE IF EXISTS consistent
(despite the main line, there were "other things" in that commit).