10.5 87a7968c
|
2020-04-14 10:14:49 0 [Note] /ten1/builds/10.5-87a7968c-deb/bin/mysqld (initiated by: root[root] @ localhost [127.0.0.1]): Normal shutdown
|
2020-04-14 10:14:49 0 [Note] Event Scheduler: Purging the queue. 14 events
|
safe_mutex: Trying to lock uninitialized mutex at /home/elenst/src/10.5/sql/rpl_parallel.cc, line 470
|
200414 10:14:49 [ERROR] mysqld got signal 6 ;
|
|
#3 <signal handler called>
|
#4 0x00007f73a1ad5207 in raise () from /lib64/libc.so.6
|
#5 0x00007f73a1ad68f8 in abort () from /lib64/libc.so.6
|
#6 0x0000560ad0f8b4cf in safe_mutex_lock (mp=0x560ad1f58d90 <global_rpl_thread_pool+16>, my_flags=0, file=0x560ad11aaf40 "/home/elenst/src/10.5/sql/rpl_parallel.cc", line=470) at /home/elenst/src/10.5/mysys/thr_mutex.c:244
|
#7 0x0000560ad05107d1 in inline_mysql_mutex_lock (that=0x560ad1f58d90 <global_rpl_thread_pool+16>, src_file=0x560ad11aaf40 "/home/elenst/src/10.5/sql/rpl_parallel.cc", src_line=470) at /home/elenst/src/10.5/include/mysql/psi/mysql_thread.h:763
|
#8 0x0000560ad051229d in pool_mark_busy (pool=0x560ad1f58d80 <global_rpl_thread_pool>, thd=0x7f7328000b18) at /home/elenst/src/10.5/sql/rpl_parallel.cc:470
|
#9 0x0000560ad05126f2 in rpl_pause_for_ftwrl (thd=0x7f7328000b18) at /home/elenst/src/10.5/sql/rpl_parallel.cc:563
|
#10 0x0000560ad02eb534 in mysql_execute_command (thd=0x7f7328000b18) at /home/elenst/src/10.5/sql/sql_parse.cc:5374
|
#11 0x0000560ad02f3912 in mysql_parse (thd=0x7f7328000b18, rawbuf=0x7f7328012460 "FLUSH /* QNO 1411 CON_ID 9 */ TABLES WITH READ LOCK", length=51, parser_state=0x7f7384acf520, is_com_multi=false, is_next_command=false) at /home/elenst/src/10.5/sql/sql_parse.cc:7953
|
#12 0x0000560ad02df2c0 in dispatch_command (command=COM_QUERY, thd=0x7f7328000b18, packet=0x7f7328008809 "FLUSH /* QNO 1411 CON_ID 9 */ TABLES WITH READ LOCK", packet_length=51, is_com_multi=false, is_next_command=false) at /home/elenst/src/10.5/sql/sql_parse.cc:1840
|
#13 0x0000560ad02dd93c in do_command (thd=0x7f7328000b18) at /home/elenst/src/10.5/sql/sql_parse.cc:1359
|
#14 0x0000560ad0483c6d in do_handle_one_connection (connect=0x560ad51db8f8, put_in_cache=true) at /home/elenst/src/10.5/sql/sql_connect.cc:1422
|
#15 0x0000560ad0483986 in handle_one_connection (arg=0x560ad51db8f8) at /home/elenst/src/10.5/sql/sql_connect.cc:1319
|
#16 0x0000560ad09c173e in pfs_spawn_thread (arg=0x560ad52f7448) at /home/elenst/src/10.5/storage/perfschema/pfs.cc:2201
|
#17 0x00007f73a310bdd5 in start_thread () from /lib64/libpthread.so.0
|
#18 0x00007f73a1b9cead in clone () from /lib64/libc.so.6
|
The stack trace above is from an original failure in concurrent tests.
The test case below will produce a failure with line numbers in rpl_parallel.cc shifted by 1, due to the suggested debug injection.
Theoretically it can fail without the injection, but chances are slim, while with it it fails for me every time.
injection
|
index 9344312fe62..e42e6b2ebb5 100644
|
--- a/sql/rpl_parallel.cc
|
+++ b/sql/rpl_parallel.cc
|
@@ -467,6 +467,7 @@ pool_mark_busy(rpl_parallel_thread_pool *pool, THD *thd)
|
So we protect the infrequent operations of FLUSH TABLES WITH READ LOCK and
|
pool size changes with this condition wait.
|
*/
|
+ DBUG_EXECUTE_IF("sleep_mark_busy",my_sleep(1000000););
|
mysql_mutex_lock(&pool->LOCK_rpl_thread_pool);
|
if (thd)
|
{
|
Test case
|
--connect (con1,localhost,root,,)
|
SET DEBUG_DBUG='+d,sleep_mark_busy';
|
--send
|
FLUSH TABLES WITH READ LOCK;
|
|
--connection default
|
--source include/restart_mysqld.inc
|
Reproducible on 10.4, 10.5.
Could not reproduce and didn't observe on 10.3.
I have no information if the problem has any effect on non-debug builds.
- relates to
-
MDEV-14656
safe_mutex: Trying to lock uninitialized mutex or Got error 22 when trying to lock mutex LOCK_event_queue at sql/event_queue.cc, line 716 upon DROP DATABASE / EVENT upon server shutdown
-
-
Open
{"report":{"fcp":870.1000000238419,"ttfb":176,"pageVisibility":"visible","entityId":86057,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"f8d928ce-33cb-4053-9dd7-7c3ce89f5d4d","navigationType":0,"readyForUser":960.7000000476837,"redirectCount":0,"resourceLoadedEnd":993.2000000476837,"resourceLoadedStart":181.20000004768372,"resourceTiming":[{"duration":162.39999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":181.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":181.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":343.60000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":162.4000000357628,"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":181.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":181.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":343.9000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":171.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":181.60000002384186,"connectEnd":181.60000002384186,"connectStart":181.60000002384186,"domainLookupEnd":181.60000002384186,"domainLookupStart":181.60000002384186,"fetchStart":181.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":181.60000002384186,"responseEnd":352.7000000476837,"responseStart":352.7000000476837,"secureConnectionStart":181.60000002384186},{"duration":280.9000000357628,"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":181.80000001192093,"connectEnd":181.80000001192093,"connectStart":181.80000001192093,"domainLookupEnd":181.80000001192093,"domainLookupStart":181.80000001192093,"fetchStart":181.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":181.80000001192093,"responseEnd":462.7000000476837,"responseStart":462.7000000476837,"secureConnectionStart":181.80000001192093},{"duration":284.30000001192093,"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":182,"connectEnd":182,"connectStart":182,"domainLookupEnd":182,"domainLookupStart":182,"fetchStart":182,"redirectEnd":0,"redirectStart":0,"requestStart":182,"responseEnd":466.30000001192093,"responseStart":466.30000001192093,"secureConnectionStart":182},{"duration":284.5999999642372,"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":182.20000004768372,"connectEnd":182.20000004768372,"connectStart":182.20000004768372,"domainLookupEnd":182.20000004768372,"domainLookupStart":182.20000004768372,"fetchStart":182.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":182.20000004768372,"responseEnd":466.80000001192093,"responseStart":466.80000001192093,"secureConnectionStart":182.20000004768372},{"duration":284.69999998807907,"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":182.4000000357628,"connectEnd":182.4000000357628,"connectStart":182.4000000357628,"domainLookupEnd":182.4000000357628,"domainLookupStart":182.4000000357628,"fetchStart":182.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":182.4000000357628,"responseEnd":467.10000002384186,"responseStart":467.10000002384186,"secureConnectionStart":182.4000000357628},{"duration":312.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":182.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":182.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":495,"responseStart":0,"secureConnectionStart":0},{"duration":285,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":182.70000004768372,"connectEnd":182.70000004768372,"connectStart":182.70000004768372,"domainLookupEnd":182.70000004768372,"domainLookupStart":182.70000004768372,"fetchStart":182.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":182.70000004768372,"responseEnd":467.7000000476837,"responseStart":467.7000000476837,"secureConnectionStart":182.70000004768372},{"duration":312.19999998807907,"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":182.9000000357628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":182.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":495.10000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":285.19999998807907,"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":183.10000002384186,"connectEnd":183.10000002384186,"connectStart":183.10000002384186,"domainLookupEnd":183.10000002384186,"domainLookupStart":183.10000002384186,"fetchStart":183.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":183.10000002384186,"responseEnd":468.30000001192093,"responseStart":468.30000001192093,"secureConnectionStart":183.10000002384186},{"duration":699.0999999642372,"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":188.4000000357628,"connectEnd":188.4000000357628,"connectStart":188.4000000357628,"domainLookupEnd":188.4000000357628,"domainLookupStart":188.4000000357628,"fetchStart":188.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":188.4000000357628,"responseEnd":887.5,"responseStart":887.5,"secureConnectionStart":188.4000000357628},{"duration":699.5,"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":188.4000000357628,"connectEnd":188.4000000357628,"connectStart":188.4000000357628,"domainLookupEnd":188.4000000357628,"domainLookupStart":188.4000000357628,"fetchStart":188.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":188.4000000357628,"responseEnd":887.9000000357628,"responseStart":887.9000000357628,"secureConnectionStart":188.4000000357628},{"duration":115.30000001192093,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":506.10000002384186,"connectEnd":506.10000002384186,"connectStart":506.10000002384186,"domainLookupEnd":506.10000002384186,"domainLookupStart":506.10000002384186,"fetchStart":506.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":506.10000002384186,"responseEnd":621.4000000357628,"responseStart":621.4000000357628,"secureConnectionStart":506.10000002384186},{"duration":208.79999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bv2/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":784.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":784.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":993,"responseStart":0,"secureConnectionStart":0},{"duration":208.60000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2bv2/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":784.6000000238419,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":784.6000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":993.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":277.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/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":785.5,"connectEnd":785.5,"connectStart":785.5,"domainLookupEnd":785.5,"domainLookupStart":785.5,"fetchStart":785.5,"redirectEnd":0,"redirectStart":0,"requestStart":785.5,"responseEnd":1062.6000000238419,"responseStart":1062.6000000238419,"secureConnectionStart":785.5},{"duration":281.5999999642372,"initiatorType":"script","name":"https://jira.mariadb.org/s/53a43b6764f587426c7bb9a150184c00-CDN/lu2bv2/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":785.9000000357628,"connectEnd":785.9000000357628,"connectStart":785.9000000357628,"domainLookupEnd":785.9000000357628,"domainLookupStart":785.9000000357628,"fetchStart":785.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":785.9000000357628,"responseEnd":1067.5,"responseStart":1067.5,"secureConnectionStart":785.9000000357628},{"duration":282.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/630dda803a823fdd5771c4338338e018-CDN/lu2bv2/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/js/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":786.3000000119209,"connectEnd":786.3000000119209,"connectStart":786.3000000119209,"domainLookupEnd":786.3000000119209,"domainLookupStart":786.3000000119209,"fetchStart":786.3000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":786.3000000119209,"responseEnd":1068.800000011921,"responseStart":1068.800000011921,"secureConnectionStart":786.3000000119209}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":8,"responseStart":176,"responseEnd":183,"domLoading":179,"domInteractive":1027,"domContentLoadedEventStart":1027,"domContentLoadedEventEnd":1075,"domComplete":1753,"loadEventStart":1753,"loadEventEnd":1754,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1009.2000000476837},{"name":"bigPipe.sidebar-id.end","time":1010.1000000238419},{"name":"bigPipe.activity-panel-pipe-id.start","time":1010.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":1012.7000000476837},{"name":"activityTabFullyLoaded","time":1084.6000000238419}],"measures":[],"correlationId":"511369c55431de","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":94,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}