Occasionally, during a test that is restarting the server, a SIGABRT will be sent to the server even though there is no hang. I think that I have seen this happen on buildbot, but I do not know how to efficiently search for this in the cross-reference. The most recent occurrence was in a different CI environment:
mariadb-10.3.24 with some changes
binlog_encryption.encryption_combo 'mix' w8 [ fail ] Found warnings/errors in server log file!
Test ended at 2020-08-18 13:32:30
line
Attempting backtrace. You can use the following information to find out
^ Found warnings in /var/tmp/mtr/8/log/mysqld.1.err
According to the server error log file, the signal is triggered during the second shutdown that the test is initiating (by executing the statement shutdown_server 10):
Version: '10.3.24-8-MariaDB-enterprise-log' socket: '/var/tmp/mtr/tmp/8/mysqld.1.sock' port: 16120 MariaDB Enterprise Server
The manual page at https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mysqld/ contains
information that should help you find out what is causing the crash.
Writing a core file...
In the above output, we can see that the InnoDB shutdown almost completed within those 10 seconds. The last messages are interleaved with the stack trace output.
In the core dump, only two threads exist: the signal handler, and the main thread. The SIGABRT is delivered to the signal_hand() thread that is executing a syscall inside the following:
while ((error=my_sigwait(&set,&sig)) == EINTR) ;
The mysqld_main() is waiting for that thread to terminate:
I think that the 10-second timeout is unreasonably short for some CI environments. Many tests are using a 30-second timeout (which is on the border of being questionably short for debug builds), and the default timeout value is 60 seconds.
Since this change in MariaDB 10.3.1, shutdown timeouts will result in prominent failures, due to a SIGABRT being sent before a final SIGKILL.
Please fix all tests to use a more reasonable timeout than 10 seconds, and also consider replacing the 30-second timeouts with 60-second ones.
Thanks, it looks good. In 10.3, there were a few more non-zero arguments to shutdown_server, which I removed on the merge.
Marko Mäkelä
added a comment - Thanks, it looks good. In 10.3, there were a few more non-zero arguments to shutdown_server , which I removed on the merge.
People
Marko Mäkelä
Marko Mäkelä
Votes:
0Vote for this issue
Watchers:
2Start 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":889.7999999523163,"ttfb":226.5,"pageVisibility":"visible","entityId":90830,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"64f67cfc-849f-49b5-ae68-1f36e1ae7b85","navigationType":0,"readyForUser":980.0999999046326,"redirectCount":0,"resourceLoadedEnd":808.8999998569489,"resourceLoadedStart":232.09999990463257,"resourceTiming":[{"duration":151.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":232.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":232.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":383.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":151.20000004768372,"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":232.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":232.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":383.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":159.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":233,"connectEnd":233,"connectStart":233,"domainLookupEnd":233,"domainLookupStart":233,"fetchStart":233,"redirectEnd":0,"redirectStart":0,"requestStart":233,"responseEnd":392.39999985694885,"responseStart":392.39999985694885,"secureConnectionStart":233},{"duration":221,"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":233.19999980926514,"connectEnd":233.19999980926514,"connectStart":233.19999980926514,"domainLookupEnd":233.19999980926514,"domainLookupStart":233.19999980926514,"fetchStart":233.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":233.19999980926514,"responseEnd":454.19999980926514,"responseStart":454.19999980926514,"secureConnectionStart":233.19999980926514},{"duration":224.70000004768372,"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":233.39999985694885,"connectEnd":233.39999985694885,"connectStart":233.39999985694885,"domainLookupEnd":233.39999985694885,"domainLookupStart":233.39999985694885,"fetchStart":233.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":233.39999985694885,"responseEnd":458.09999990463257,"responseStart":458.09999990463257,"secureConnectionStart":233.39999985694885},{"duration":225,"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":233.59999990463257,"connectEnd":233.59999990463257,"connectStart":233.59999990463257,"domainLookupEnd":233.59999990463257,"domainLookupStart":233.59999990463257,"fetchStart":233.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":233.59999990463257,"responseEnd":458.59999990463257,"responseStart":458.59999990463257,"secureConnectionStart":233.59999990463257},{"duration":225.5,"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":233.79999995231628,"connectEnd":233.79999995231628,"connectStart":233.79999995231628,"domainLookupEnd":233.79999995231628,"domainLookupStart":233.79999995231628,"fetchStart":233.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":233.79999995231628,"responseEnd":459.2999999523163,"responseStart":459.2999999523163,"secureConnectionStart":233.79999995231628},{"duration":298.5,"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":234,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":234,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":532.5,"responseStart":0,"secureConnectionStart":0},{"duration":225.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":234.09999990463257,"connectEnd":234.09999990463257,"connectStart":234.09999990463257,"domainLookupEnd":234.09999990463257,"domainLookupStart":234.09999990463257,"fetchStart":234.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":234.09999990463257,"responseEnd":459.69999980926514,"responseStart":459.69999980926514,"secureConnectionStart":234.09999990463257},{"duration":298.2999999523163,"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":234.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":234.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":532.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":225.79999995231628,"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":234.5,"connectEnd":234.5,"connectStart":234.5,"domainLookupEnd":234.5,"domainLookupStart":234.5,"fetchStart":234.5,"redirectEnd":0,"redirectStart":0,"requestStart":234.5,"responseEnd":460.2999999523163,"responseStart":460.2999999523163,"secureConnectionStart":234.5},{"duration":348.80000019073486,"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":235.19999980926514,"connectEnd":235.19999980926514,"connectStart":235.19999980926514,"domainLookupEnd":235.19999980926514,"domainLookupStart":235.19999980926514,"fetchStart":235.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":235.19999980926514,"responseEnd":584,"responseStart":584,"secureConnectionStart":235.19999980926514},{"duration":400.2999999523163,"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":235.39999985694885,"connectEnd":235.39999985694885,"connectStart":235.39999985694885,"domainLookupEnd":235.39999985694885,"domainLookupStart":235.39999985694885,"fetchStart":235.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":235.39999985694885,"responseEnd":635.6999998092651,"responseStart":635.6999998092651,"secureConnectionStart":235.39999985694885},{"duration":40.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":543.8999998569489,"connectEnd":543.8999998569489,"connectStart":543.8999998569489,"domainLookupEnd":543.8999998569489,"domainLookupStart":543.8999998569489,"fetchStart":543.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":543.8999998569489,"responseEnd":584.3999998569489,"responseStart":584.3999998569489,"secureConnectionStart":543.8999998569489},{"duration":203,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/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&whisper-enabled=true","startTime":605.8999998569489,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":605.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":808.8999998569489,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":57,"responseStart":226,"responseEnd":229,"domLoading":230,"domInteractive":1038,"domContentLoadedEventStart":1038,"domContentLoadedEventEnd":1082,"domComplete":1560,"loadEventStart":1560,"loadEventEnd":1561,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1019.8999998569489},{"name":"bigPipe.sidebar-id.end","time":1020.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1020.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":1022},{"name":"activityTabFullyLoaded","time":1099.7999999523163}],"measures":[],"correlationId":"c2bbb43c8e9d36","effectiveType":"4g","downlink":9.3,"rtt":0,"serverDuration":100,"dbReadsTimeInMs":10,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Marko, could you please check out the commit. Thanks. Andrei.