Type:
Bug
Priority:
Trivial
Resolution:
Unresolved
Affects Version/s:
10.2(EOL) , 10.3(EOL) , 10.4(EOL) , 10.5 , 10.6 , 11.8
USE mysql;
SELECT 1 INTO OUTFILE 'a' FROM DUAL;
DROP DATABASE mysql;
CREATE TABLE func (c INT) ENGINE=InnoDB;
DROP FUNCTION f;
(Note line 3 outcome: can't rmdir './mysql', errno: 39 "Directory not empty")
Leads to:
10.6.0 03ff588d153f22f00ff00923e82498cbac63505f (Debug)
Core was generated by `/test/MD060321-mariadb-10.6.0-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=11)
at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
[Current thread is 1 (Thread 0x1457d404a700 (LWP 4515))]
(gdb) bt
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=11) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
#1 0x000055ac9932b3f3 in my_write_core (sig=sig@entry=11) at /test/10.6_dbg/mysys/stacktrace.c:424
#2 0x000055ac98ad0195 in handle_fatal_signal (sig=11) at /test/10.6_dbg/sql/signal_handler.cc:331
#3 <signal handler called>
#4 calculate_key_len (table=0x14578401ea18, key=0, buf=buf@entry=0x145784041ca9 "", keypart_map=18446744073709551615) at /test/10.6_dbg/sql/table.cc:4891
#5 0x000055ac98aeae32 in handler::index_read_map (this=0x145784020650, buf=0x145784041ca8 "\377", key=0x145784041ca9 "", keypart_map=<optimized out>, find_flag=HA_READ_KEY_EXACT) at /test/10.6_dbg/sql/handler.h:3847
#6 0x000055ac98ad25b4 in handler::index_read_idx_map (this=0x145784020650, buf=0x145784041ca8 "\377", index=<optimized out>, key=0x145784041ca9 "", keypart_map=18446744073709551615, find_flag=HA_READ_KEY_EXACT) at /test/10.6_dbg/sql/handler.cc:6410
#7 0x000055ac98ad94a2 in handler::ha_index_read_idx_map (this=0x145784020650, buf=0x145784041ca8 "\377", index=index@entry=0, key=0x145784041ca9 "", keypart_map=keypart_map@entry=18446744073709551615, find_flag=find_flag@entry=HA_READ_KEY_EXACT) at /test/10.6_dbg/sql/handler.cc:3152
#8 0x000055ac988f6a9e in find_udf_in_table (exact_name=@0x145784013c18: {str = 0x145784013bf8 "f", length = 1}, table=table@entry=0x14578401ea18) at /test/10.6_dbg/sql/sql_udf.cc:449
#9 0x000055ac988f6be8 in find_udf_everywhere (thd=thd@entry=0x145784000db8, name=@0x145784013c18: {str = 0x145784013bf8 "f", length = 1}, table=table@entry=0x14578401ea18) at /test/10.6_dbg/sql/sql_udf.cc:746
#10 0x000055ac988f849b in mysql_drop_function (thd=0x145784000db8, udf_name=0x145784013c18) at /test/10.6_dbg/sql/sql_udf.cc:675
#11 0x000055ac988080c9 in drop_routine (thd=thd@entry=0x145784000db8, lex=lex@entry=0x145784004ec0) at /test/10.6_dbg/sql/sql_parse.cc:6499
#12 0x000055ac98815aaa in mysql_execute_command (thd=thd@entry=0x145784000db8) at /test/10.6_dbg/sql/sql_parse.cc:5715
#13 0x000055ac987fd1d7 in mysql_parse (thd=thd@entry=0x145784000db8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x1457d4049410) at /test/10.6_dbg/sql/sql_parse.cc:7998
#14 0x000055ac9880bb03 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x145784000db8, packet=packet@entry=0x14578400b339 "DROP FUNCTION f", packet_length=packet_length@entry=15, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_class.h:1318
#15 0x000055ac9880eede in do_command (thd=0x145784000db8, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_parse.cc:1397
#16 0x000055ac98967c8e in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55ac9c8690a8, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1410
#17 0x000055ac98968293 in handle_one_connection (arg=arg@entry=0x55ac9c8690a8) at /test/10.6_dbg/sql/sql_connect.cc:1312
#18 0x000055ac98e11ce9 in pfs_spawn_thread (arg=0x55ac9c78dcb8) at /test/10.6_dbg/storage/perfschema/pfs.cc:2201
#19 0x00001457d49d8609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#20 0x00001457d45c7293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Bug confirmed present in:
MariaDB: 10.2.38 (dbg), 10.2.38 (opt), 10.3.29 (dbg), 10.3.29 (opt), 10.4.19 (dbg), 10.4.19 (opt), 10.5.10 (dbg), 10.5.10 (opt), 10.6.0 (dbg), 10.6.0 (opt)
Bug (or feature/syntax) confirmed not present in:
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.33 (dbg), 5.7.33 (opt), 8.0.23 (dbg), 8.0.23 (opt)
relates to
MDEV-36221
CREATE SERVER segfaults on wrong mysql.servers
Confirmed
{"report":{"fcp":736.2000000476837,"ttfb":163,"pageVisibility":"visible","entityId":97939,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"ee71c9c9-0d2a-44e5-b3e0-ee7273a8f2b5","navigationType":0,"readyForUser":815.4000000953674,"redirectCount":0,"resourceLoadedEnd":789.4000000953674,"resourceLoadedStart":168.20000004768372,"resourceTiming":[{"duration":16.799999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":168.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":168.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":185,"responseStart":0,"secureConnectionStart":0},{"duration":51,"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":168.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":168.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":219.5,"responseStart":0,"secureConnectionStart":0},{"duration":111.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":168.70000004768372,"connectEnd":168.70000004768372,"connectStart":168.70000004768372,"domainLookupEnd":168.70000004768372,"domainLookupStart":168.70000004768372,"fetchStart":168.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":168.70000004768372,"responseEnd":279.90000009536743,"responseStart":279.90000009536743,"secureConnectionStart":168.70000004768372},{"duration":201.20000004768372,"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":168.70000004768372,"connectEnd":168.70000004768372,"connectStart":168.70000004768372,"domainLookupEnd":168.70000004768372,"domainLookupStart":168.70000004768372,"fetchStart":168.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":168.70000004768372,"responseEnd":369.90000009536743,"responseStart":369.90000009536743,"secureConnectionStart":168.70000004768372},{"duration":204.59999990463257,"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":168.90000009536743,"connectEnd":168.90000009536743,"connectStart":168.90000009536743,"domainLookupEnd":168.90000009536743,"domainLookupStart":168.90000009536743,"fetchStart":168.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":168.90000009536743,"responseEnd":373.5,"responseStart":373.5,"secureConnectionStart":168.90000009536743},{"duration":205,"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":169,"connectEnd":169,"connectStart":169,"domainLookupEnd":169,"domainLookupStart":169,"fetchStart":169,"redirectEnd":0,"redirectStart":0,"requestStart":169,"responseEnd":374,"responseStart":374,"secureConnectionStart":169},{"duration":205.29999995231628,"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":169,"connectEnd":169,"connectStart":169,"domainLookupEnd":169,"domainLookupStart":169,"fetchStart":169,"redirectEnd":0,"redirectStart":0,"requestStart":169,"responseEnd":374.2999999523163,"responseStart":374.2999999523163,"secureConnectionStart":169},{"duration":205.59999990463257,"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":169.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":169.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":374.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":205.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":169.29999995231628,"connectEnd":169.29999995231628,"connectStart":169.29999995231628,"domainLookupEnd":169.29999995231628,"domainLookupStart":169.29999995231628,"fetchStart":169.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":169.29999995231628,"responseEnd":374.7999999523163,"responseStart":374.7999999523163,"secureConnectionStart":169.29999995231628},{"duration":205.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":169.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":169.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":375.10000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":205.79999995231628,"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":169.5,"connectEnd":169.5,"connectStart":169.5,"domainLookupEnd":169.5,"domainLookupStart":169.5,"fetchStart":169.5,"redirectEnd":0,"redirectStart":0,"requestStart":169.5,"responseEnd":375.2999999523163,"responseStart":375.2999999523163,"secureConnectionStart":169.5},{"duration":419.7999999523163,"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":170.20000004768372,"connectEnd":170.20000004768372,"connectStart":170.20000004768372,"domainLookupEnd":170.20000004768372,"domainLookupStart":170.20000004768372,"fetchStart":170.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":170.20000004768372,"responseEnd":590,"responseStart":590,"secureConnectionStart":170.20000004768372},{"duration":480.2999999523163,"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":170.20000004768372,"connectEnd":170.20000004768372,"connectStart":170.20000004768372,"domainLookupEnd":170.20000004768372,"domainLookupStart":170.20000004768372,"fetchStart":170.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":170.20000004768372,"responseEnd":650.5,"responseStart":650.5,"secureConnectionStart":170.20000004768372},{"duration":155.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":434.7999999523163,"connectEnd":434.7999999523163,"connectStart":434.7999999523163,"domainLookupEnd":434.7999999523163,"domainLookupStart":434.7999999523163,"fetchStart":434.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":434.7999999523163,"responseEnd":590.2999999523163,"responseStart":590.2999999523163,"secureConnectionStart":434.7999999523163},{"duration":81.89999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":691.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":691.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":773.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":81.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":692.2000000476837,"connectEnd":692.2000000476837,"connectStart":692.2000000476837,"domainLookupEnd":692.2000000476837,"domainLookupStart":692.2000000476837,"fetchStart":692.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":692.2000000476837,"responseEnd":773.7000000476837,"responseStart":773.7000000476837,"secureConnectionStart":692.2000000476837},{"duration":96.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/f51ef5507eea4c158f257c66c93b2a3f-CDN/lu2bu7/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":692.6000001430511,"connectEnd":692.6000001430511,"connectStart":692.6000001430511,"domainLookupEnd":692.6000001430511,"domainLookupStart":692.6000001430511,"fetchStart":692.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":692.6000001430511,"responseEnd":789.4000000953674,"responseStart":789.4000000953674,"secureConnectionStart":692.6000001430511}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":42,"responseStart":163,"responseEnd":164,"domLoading":166,"domInteractive":883,"domContentLoadedEventStart":883,"domContentLoadedEventEnd":935,"domComplete":1773,"loadEventStart":1773,"loadEventEnd":1774,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":851.7999999523163},{"name":"bigPipe.sidebar-id.end","time":852.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":852.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":855.4000000953674},{"name":"activityTabFullyLoaded","time":949.1000001430511}],"measures":[],"correlationId":"b21d43df6c343e","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":65,"dbReadsTimeInMs":9,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}