If MariaDB receives SIGTERM after the call to start_signal_handler() but before the call to init_slave() then kill_server_thread() will call close_connections() (through kill_server() ) which will ask all threads to terminate and will start to wait on COND_thread_count. After that init_slave() will be called, it will call run_slave_init_thread(), which will launch handle_slave_init() and will start to wait on COND_thread_count too. At this point if handle_slave_init() calls mysql_cond_signal(&COND_thread_count) then it can wake up close_connections() which will do nothing and return back to sleep. But run_slave_init_thread() will remain sleeping and no one will ever wake it up, MariaDB will hang forever with "kill -9" as the only chance to exit.
So the call to mysql_cond_signal(&COND_thread_count) in the handle_slave_init() should be changed to mysql_cond_broadcast(&COND_thread_count).
Note that calling *_broadcast instead of *_signal matches all other usages of COND_thread_count throughout MariaDB code.
Elena Stepanova
made changes -
2014-04-10 00:47
Field
Original Value
New Value
Fix Version/s
10.0.11
[ 15200
]
Assignee
Kristian Nielsen
[ knielsen
]
Kristian Nielsen
made changes -
2014-04-10 10:40
Status
Open
[ 1
]
In Progress
[ 3
]
Kristian Nielsen
made changes -
2014-04-10 10:40
Resolution
Fixed
[ 1
]
Status
In Progress
[ 3
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2014-06-13 15:06
Workflow
defaullt
[ 38409
]
MariaDB v2
[ 43673
]
Sergei Golubchik
made changes -
2021-12-06 21:39
Workflow
MariaDB v3
[ 62824
]
MariaDB v4
[ 147756
]
{"report":{"fcp":750.5,"ttfb":196.5,"pageVisibility":"visible","entityId":34609,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"e51c7856-d432-458d-a3c1-6fe1ba466697","navigationType":0,"readyForUser":811.1999999880791,"redirectCount":0,"resourceLoadedEnd":783.5,"resourceLoadedStart":201.60000002384186,"resourceTiming":[{"duration":16.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":201.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":201.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":218.10000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":17.100000023841858,"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":201.80000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":201.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":218.9000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":70.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":202,"connectEnd":202,"connectStart":202,"domainLookupEnd":202,"domainLookupStart":202,"fetchStart":202,"redirectEnd":0,"redirectStart":0,"requestStart":202,"responseEnd":272.60000002384186,"responseStart":272.60000002384186,"secureConnectionStart":202},{"duration":147.30000001192093,"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":202.19999998807907,"connectEnd":202.19999998807907,"connectStart":202.19999998807907,"domainLookupEnd":202.19999998807907,"domainLookupStart":202.19999998807907,"fetchStart":202.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":202.19999998807907,"responseEnd":349.5,"responseStart":349.5,"secureConnectionStart":202.19999998807907},{"duration":150.5999999642372,"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":202.4000000357628,"connectEnd":202.4000000357628,"connectStart":202.4000000357628,"domainLookupEnd":202.4000000357628,"domainLookupStart":202.4000000357628,"fetchStart":202.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":202.4000000357628,"responseEnd":353,"responseStart":353,"secureConnectionStart":202.4000000357628},{"duration":150.80000001192093,"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":202.60000002384186,"connectEnd":202.60000002384186,"connectStart":202.60000002384186,"domainLookupEnd":202.60000002384186,"domainLookupStart":202.60000002384186,"fetchStart":202.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":202.60000002384186,"responseEnd":353.4000000357628,"responseStart":353.4000000357628,"secureConnectionStart":202.60000002384186},{"duration":151,"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":202.80000001192093,"connectEnd":202.80000001192093,"connectStart":202.80000001192093,"domainLookupEnd":202.80000001192093,"domainLookupStart":202.80000001192093,"fetchStart":202.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":202.80000001192093,"responseEnd":353.80000001192093,"responseStart":353.80000001192093,"secureConnectionStart":202.80000001192093},{"duration":207.39999997615814,"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":202.9000000357628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":202.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":410.30000001192093,"responseStart":0,"secureConnectionStart":0},{"duration":151,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":203.10000002384186,"connectEnd":203.10000002384186,"connectStart":203.10000002384186,"domainLookupEnd":203.10000002384186,"domainLookupStart":203.10000002384186,"fetchStart":203.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":203.10000002384186,"responseEnd":354.10000002384186,"responseStart":354.10000002384186,"secureConnectionStart":203.10000002384186},{"duration":207.30000001192093,"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":203.19999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":203.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":410.5,"responseStart":0,"secureConnectionStart":0},{"duration":151.29999995231628,"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":203.4000000357628,"connectEnd":203.4000000357628,"connectStart":203.4000000357628,"domainLookupEnd":203.4000000357628,"domainLookupStart":203.4000000357628,"fetchStart":203.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":203.4000000357628,"responseEnd":354.69999998807907,"responseStart":354.69999998807907,"secureConnectionStart":203.4000000357628},{"duration":285.89999997615814,"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":204.10000002384186,"connectEnd":204.10000002384186,"connectStart":204.10000002384186,"domainLookupEnd":204.10000002384186,"domainLookupStart":204.10000002384186,"fetchStart":204.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":204.10000002384186,"responseEnd":490,"responseStart":490,"secureConnectionStart":204.10000002384186},{"duration":301.30000001192093,"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":204.19999998807907,"connectEnd":204.19999998807907,"connectStart":204.19999998807907,"domainLookupEnd":204.19999998807907,"domainLookupStart":204.19999998807907,"fetchStart":204.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":204.19999998807907,"responseEnd":505.5,"responseStart":505.5,"secureConnectionStart":204.19999998807907},{"duration":68.80000001192093,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":421.60000002384186,"connectEnd":421.60000002384186,"connectStart":421.60000002384186,"domainLookupEnd":421.60000002384186,"domainLookupStart":421.60000002384186,"fetchStart":421.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":421.60000002384186,"responseEnd":490.4000000357628,"responseStart":490.4000000357628,"secureConnectionStart":421.60000002384186},{"duration":72.40000003576279,"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":672.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":672.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":744.9000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":104.89999997615814,"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":673.3000000119209,"connectEnd":673.3000000119209,"connectStart":673.3000000119209,"domainLookupEnd":673.3000000119209,"domainLookupStart":673.3000000119209,"fetchStart":673.3000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":673.3000000119209,"responseEnd":778.1999999880791,"responseStart":778.1999999880791,"secureConnectionStart":673.3000000119209},{"duration":109.80000001192093,"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":673.6999999880791,"connectEnd":673.6999999880791,"connectStart":673.6999999880791,"domainLookupEnd":673.6999999880791,"domainLookupStart":673.6999999880791,"fetchStart":673.6999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":673.6999999880791,"responseEnd":783.5,"responseStart":783.5,"secureConnectionStart":673.6999999880791},{"duration":93.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":744.4000000357628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":744.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":837.9000000357628,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":9,"responseStart":196,"responseEnd":198,"domLoading":199,"domInteractive":869,"domContentLoadedEventStart":869,"domContentLoadedEventEnd":911,"domComplete":1135,"loadEventStart":1135,"loadEventEnd":1135,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":840},{"name":"bigPipe.sidebar-id.end","time":840.9000000357628},{"name":"bigPipe.activity-panel-pipe-id.start","time":841},{"name":"bigPipe.activity-panel-pipe-id.end","time":843},{"name":"activityTabFullyLoaded","time":926.3000000119209}],"measures":[],"correlationId":"105e39b65300db","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":132,"dbReadsTimeInMs":22,"dbConnsTimeInMs":37,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}