Very similar to MDEV-25890 but different versions and different area. Almost definitely related. This testcase too causes mysqld hangs and likely (though not confirmed) cross-mysqld interaction (i.e. one mysqld affecting another, without anything shared). Testcase is sporadic, though usually only 1-2 executions are needed.
# mysqld options required for replay: --log-bin --performance-schema
|
INSTALL PLUGIN spider SONAME 'ha_spider.so';
|
SET GLOBAL expire_logs_days=11;
|
SET GLOBAL binlog_checksum=NONE;
|
Leads to:
10.8.0 bc57ff7cf79504a198d4752b4748340a4afd886c (Debug)
|
2021-11-13 14:21:40 0 [Note] /test/MD121121-mariadb-10.8.0-linux-x86_64-dbg/bin/mysqld: ready for connections.
|
Version: '10.8.0-MariaDB-debug-log' socket: '/test/MD121121-mariadb-10.8.0-linux-x86_64-dbg/socket.sock' port: 37855 MariaDB Server
|
safe_mutex: Trying to lock mutex at /test/10.8_dbg/sql/sql_plugin.cc, line 3093, when the mutex was already locked at /test/10.8_dbg/sql/sys_vars_shared.h, line 56 in thread T@47
|
10.8.0 bc57ff7cf79504a198d4752b4748340a4afd886c (Debug)
|
Core was generated by `/test/MD121121-mariadb-10.8.0-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 0x154df8bed700 (LWP 1629659))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x0000154e130d3859 in __GI_abort () at abort.c:79
|
#2 0x00005603c8c83268 in safe_mutex_lock (mp=mp@entry=0x5603c9795b00 <LOCK_global_system_variables>, my_flags=my_flags@entry=0, file=file@entry=0x5603c8e31318 "/test/10.8_dbg/sql/sql_plugin.cc", line=line@entry=3093) at /test/10.8_dbg/mysys/thr_mutex.c:262
|
#3 0x00005603c8c7d770 in psi_mutex_lock (that=0x5603c9795b00 <LOCK_global_system_variables>, file=file@entry=0x5603c8e31318 "/test/10.8_dbg/sql/sql_plugin.cc", line=line@entry=3093) at /test/10.8_dbg/mysys/my_thr_init.c:487
|
#4 0x00005603c817f81c in inline_mysql_mutex_lock (src_line=3093, src_file=0x5603c8e31318 "/test/10.8_dbg/sql/sql_plugin.cc", that=<optimized out>) at /test/10.8_dbg/include/mysql/psi/mysql_thread.h:746
|
#5 sync_dynamic_session_variables (thd=thd@entry=0x154dc0000db8, global_lock=global_lock@entry=true) at /test/10.8_dbg/sql/sql_plugin.cc:3093
|
#6 0x00005603c817fa9a in intern_sys_var_ptr (thd=0x154dc0000db8, offset=160, global_lock=global_lock@entry=true) at /test/10.8_dbg/sql/sql_plugin.cc:3160
|
#7 0x00005603c817fb8a in mysql_sys_var_int (thd=<optimized out>, offset=<optimized out>) at /test/10.8_dbg/sql/sql_plugin.cc:3182
|
#8 0x0000154de91d59bf in spider_param_init_sql_alloc_size (thd=0x154dc0000db8, init_sql_alloc_size=0) at /test/10.8_dbg/storage/spider/spd_param.cc:600
|
#9 0x0000154de92a0b01 in spider_mbase_handler::init (this=0x154dc005d950) at /test/10.8_dbg/storage/spider/spd_db_mysql.cc:8993
|
#10 0x0000154de91edf2e in spider_get_trx (thd=thd@entry=0x154dc0000db8, regist_allocated_thds=regist_allocated_thds@entry=true, error_num=error_num@entry=0x154df8bebb1c) at /test/10.8_dbg/storage/spider/spd_trx.cc:1518
|
#11 0x0000154de9248946 in spider_flush_logs (hton=<optimized out>) at /test/10.8_dbg/storage/spider/spd_table.cc:7040
|
#12 0x00005603c845bf88 in flush_handlerton (thd=thd@entry=0x0, plugin=<optimized out>, arg=arg@entry=0x0) at /test/10.8_dbg/sql/handler.cc:3011
|
#13 0x00005603c8180ab0 in plugin_foreach_with_mask (thd=thd@entry=0x0, func=func@entry=0x5603c845bf66 <flush_handlerton(THD*, plugin_ref, void*)>, type=type@entry=1, state_mask=state_mask@entry=8, arg=arg@entry=0x0) at /test/10.8_dbg/sql/sql_plugin.cc:2509
|
#14 0x00005603c8463419 in ha_flush_logs () at /test/10.8_dbg/sql/handler.cc:3017
|
#15 0x00005603c85ca5e8 in MYSQL_BIN_LOG::purge (this=this@entry=0x5603c97ca160 <mysql_bin_log>) at /test/10.8_dbg/sql/log.cc:7031
|
#16 0x00005603c85cf2f9 in MYSQL_BIN_LOG::checkpoint_and_purge (this=this@entry=0x5603c97ca160 <mysql_bin_log>, binlog_id=binlog_id@entry=1) at /test/10.8_dbg/sql/log.cc:7043
|
#17 0x00005603c85da247 in binlog_checksum_update (thd=<optimized out>, var=<optimized out>, var_ptr=<optimized out>, save=<optimized out>) at /test/10.8_dbg/sql/log.cc:11570
|
#18 0x00005603c8181bf1 in sys_var_pluginvar::global_update (this=0x5603cbead8b0, thd=0x154dc0000db8, var=0x154dc0014308) at /test/10.8_dbg/sql/sql_plugin.cc:3621
|
#19 0x00005603c805b6ae in sys_var::update (this=0x5603cbead8b0, thd=0x154dc0000db8, var=0x154dc0014308) at /test/10.8_dbg/sql/set_var.cc:207
|
#20 0x00005603c805bbdb in set_var::update (this=<optimized out>, thd=<optimized out>) at /test/10.8_dbg/sql/set_var.cc:863
|
#21 0x00005603c805cf21 in sql_set_variables (thd=thd@entry=0x154dc0000db8, var_list=var_list@entry=0x154dc00060d8, free=free@entry=true) at /test/10.8_dbg/sql/set_var.cc:745
|
#22 0x00005603c81638f4 in mysql_execute_command (thd=thd@entry=0x154dc0000db8, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.8_dbg/sql/sql_parse.cc:5034
|
#23 0x00005603c814ccad in mysql_parse (thd=thd@entry=0x154dc0000db8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x154df8bec400) at /test/10.8_dbg/sql/sql_parse.cc:8028
|
#24 0x00005603c815b949 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x154dc0000db8, packet=packet@entry=0x154dc001a239 "SET GLOBAL binlog_checksum=NONE", packet_length=packet_length@entry=31, blocking=blocking@entry=true) at /test/10.8_dbg/sql/sql_class.h:1360
|
#25 0x00005603c815ed83 in do_command (thd=0x154dc0000db8, blocking=blocking@entry=true) at /test/10.8_dbg/sql/sql_parse.cc:1402
|
#26 0x00005603c82d8e2a in do_handle_one_connection (connect=<optimized out>, connect@entry=0x5603cc5ccba8, put_in_cache=put_in_cache@entry=true) at /test/10.8_dbg/sql/sql_connect.cc:1418
|
#27 0x00005603c82d942f in handle_one_connection (arg=arg@entry=0x5603cc5ccba8) at /test/10.8_dbg/sql/sql_connect.cc:1312
|
#28 0x00005603c87594ce in pfs_spawn_thread (arg=0x5603cc4c3b88) at /test/10.8_dbg/storage/perfschema/pfs.cc:2201
|
#29 0x0000154e135e2609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#30 0x0000154e131d0293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.6.6 (dbg), 10.7.2 (dbg), 10.8.0 (dbg)
Bug (or feature/syntax) confirmed not present in (unless sporadicity caused it not to crash/fail):
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 (dbg), 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":2466.900000035763,"ttfb":878.8000000119209,"pageVisibility":"visible","entityId":105046,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"f3d0cb83-eadd-4062-ad72-3088f3baa7ba","navigationType":0,"readyForUser":2545.400000035763,"redirectCount":0,"resourceLoadedEnd":2109.300000011921,"resourceLoadedStart":889,"resourceTiming":[{"duration":199.4000000357628,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":889,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":889,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1088.4000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":199.70000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":889.1999999880791,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":889.1999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1088.9000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":720.3999999761581,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":889.4000000357628,"connectEnd":889.4000000357628,"connectStart":889.4000000357628,"domainLookupEnd":889.4000000357628,"domainLookupStart":889.4000000357628,"fetchStart":889.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":1090.9000000357628,"responseEnd":1609.800000011921,"responseStart":1147,"secureConnectionStart":889.4000000357628},{"duration":1219.800000011921,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":889.5,"connectEnd":889.5,"connectStart":889.5,"domainLookupEnd":889.5,"domainLookupStart":889.5,"fetchStart":889.5,"redirectEnd":0,"redirectStart":0,"requestStart":1090.699999988079,"responseEnd":2109.300000011921,"responseStart":1144.9000000357628,"secureConnectionStart":889.5},{"duration":261,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":889.6999999880791,"connectEnd":889.6999999880791,"connectStart":889.6999999880791,"domainLookupEnd":889.6999999880791,"domainLookupStart":889.6999999880791,"fetchStart":889.6999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":1092.5,"responseEnd":1150.699999988079,"responseStart":1147.699999988079,"secureConnectionStart":889.6999999880791},{"duration":275.69999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":889.8000000119209,"connectEnd":889.8000000119209,"connectStart":889.8000000119209,"domainLookupEnd":889.8000000119209,"domainLookupStart":889.8000000119209,"fetchStart":889.8000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":1095.300000011921,"responseEnd":1165.5,"responseStart":1164.300000011921,"secureConnectionStart":889.8000000119209},{"duration":269.9000000357628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":890,"connectEnd":890,"connectStart":890,"domainLookupEnd":890,"domainLookupStart":890,"fetchStart":890,"redirectEnd":0,"redirectStart":0,"requestStart":1103.300000011921,"responseEnd":1159.9000000357628,"responseStart":1156.6000000238419,"secureConnectionStart":890},{"duration":211.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":890.3000000119209,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":890.3000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1101.800000011921,"responseStart":0,"secureConnectionStart":0},{"duration":269.5999999642372,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":890.4000000357628,"connectEnd":890.4000000357628,"connectStart":890.4000000357628,"domainLookupEnd":890.4000000357628,"domainLookupStart":890.4000000357628,"fetchStart":890.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":1103.800000011921,"responseEnd":1160,"responseStart":1157.199999988079,"secureConnectionStart":890.4000000357628},{"duration":213.39999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":890.6000000238419,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":890.6000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1104,"responseStart":0,"secureConnectionStart":0},{"duration":270.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":890.6999999880791,"connectEnd":890.6999999880791,"connectStart":890.6999999880791,"domainLookupEnd":890.6999999880791,"domainLookupStart":890.6999999880791,"fetchStart":890.6999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":1125.9000000357628,"responseEnd":1161.300000011921,"responseStart":1158.6000000238419,"secureConnectionStart":890.6999999880791},{"duration":1081.4000000357628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":946.1999999880791,"connectEnd":946.1999999880791,"connectStart":946.1999999880791,"domainLookupEnd":946.1999999880791,"domainLookupStart":946.1999999880791,"fetchStart":946.1999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":1194.199999988079,"responseEnd":2027.6000000238419,"responseStart":1961.1000000238419,"secureConnectionStart":946.1999999880791},{"duration":1081.699999988079,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":946.3000000119209,"connectEnd":946.3000000119209,"connectStart":946.3000000119209,"domainLookupEnd":946.3000000119209,"domainLookupStart":946.3000000119209,"fetchStart":946.3000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":1286.4000000357628,"responseEnd":2028,"responseStart":1964,"secureConnectionStart":946.3000000119209},{"duration":703.3000000119209,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1757.1000000238419,"connectEnd":1757.1000000238419,"connectStart":1757.1000000238419,"domainLookupEnd":1757.1000000238419,"domainLookupStart":1757.1000000238419,"fetchStart":1757.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":2409.600000023842,"responseEnd":2460.400000035763,"responseStart":2439.300000011921,"secureConnectionStart":1757.1000000238419}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":286,"responseStart":879,"responseEnd":947,"domLoading":887,"domInteractive":2634,"domContentLoadedEventStart":2634,"domContentLoadedEventEnd":2688,"domComplete":3757,"loadEventStart":3757,"loadEventEnd":3758,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2596.100000023842},{"name":"bigPipe.sidebar-id.end","time":2597},{"name":"bigPipe.activity-panel-pipe-id.start","time":2597.100000023842},{"name":"bigPipe.activity-panel-pipe-id.end","time":2600.199999988079},{"name":"activityTabFullyLoaded","time":2696}],"measures":[],"correlationId":"e8e71799d21827","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":195,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}