Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
10.3.17 , 10.3.23 , 10.5.4 , 10.2(EOL) , 10.3(EOL) , 10.4(EOL) , 10.5
Environment:
CPanel on linux, Windows x64
I'm getting a server crash when I issue a very simple DELETE statement "DELETE FROM companies WHERE CompanyID=749".
I believe it might have something to do with an "ON DELETE SET NULL" foreign key relationship and some indexes of virtual columns in the child table... but unfortunately I was unable to reproduce the problem as a simple testcase; it seems to depend somehow on the data in my existing DB.
I can however reliably repeat the crash if I issue the exact same DELETE statement.
Since I was unable to determine the specific cause, I can't tell if this is related to an already-reported bug or not.
The tables are all InnoDB, and running mysql_upgrade did not affect the issue.
The log contained the following:
190821 4:08:56 [ERROR] mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
To report this bug, see https://mariadb.com/kb/en/reporting-bugs
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.
Server version: 10.3.17-MariaDB
key_buffer_size=134217728
read_buffer_size=131072
max_used_connections=2
max_threads=153
thread_count=8
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467422 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x55a1b0836658
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0x7f17c45a8d30 thread_stack 0x49000
/usr/sbin/mysqld(my_print_stacktrace+0x2e)[0x55a1adf3f93e]
/usr/sbin/mysqld(handle_fatal_signal+0x30f)[0x55a1ad9df2af]sigaction.c:0(__restore_rt)[0x7f17d4b355d0]
/usr/sbin/mysqld(+0xa174fd)[0x55a1adc6d4fd]
/usr/sbin/mysqld(+0xa17ddc)[0x55a1adc6dddc]
/usr/sbin/mysqld(+0xa18ff4)[0x55a1adc6eff4]
/usr/sbin/mysqld(+0x9ea141)[0x55a1adc40141]
/usr/sbin/mysqld(+0x9d35c2)[0x55a1adc295c2]
/usr/sbin/mysqld(+0xa12a78)[0x55a1adc68a78]
/usr/sbin/mysqld(+0xa18809)[0x55a1adc6e809]
/usr/sbin/mysqld(+0xa18ff4)[0x55a1adc6eff4]
/usr/sbin/mysqld(+0x9e9c0b)[0x55a1adc3fc0b]
/usr/sbin/mysqld(+0x926c1c)[0x55a1adb7cc1c]
/usr/sbin/mysqld(_ZN7handler13ha_delete_rowEPKh+0x19f)[0x55a1ad9eb01f]
/usr/sbin/mysqld(_Z12mysql_deleteP3THDP10TABLE_LISTP4ItemP10SQL_I_ListI8st_orderEyyP13select_result+0x14e8)[0x55a1adb1fa68]
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x25d1)[0x55a1ad803611]
/usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_statebb+0x22b)[0x55a1ad809c2b]
/usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcjbb+0x1c9f)[0x55a1ad80c80f]
/usr/sbin/mysqld(_Z10do_commandP3THD+0x13e)[0x55a1ad80d74e]
/usr/sbin/mysqld(_Z24do_handle_one_connectionP7CONNECT+0x221)[0x55a1ad8e0f61]
/usr/sbin/mysqld(handle_one_connection+0x3d)[0x55a1ad8e102d]
pthread_create.c:0(start_thread)[0x7f17d4b2ddd5]
/lib64/libc.so.6(clone+0x6d)[0x7f17d2ed002d]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x55a1b08440d0): DELETE FROM companies WHERE CompanyID=749
Connection ID (thread ID): 40
Status: NOT_KILLED
Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
Writing a core file...
Working directory at /var/lib/mysql
Resource Limits:Limit Soft Limit Hard Limit Units
Max cpu time unlimited unlimited seconds
Max file size unlimited unlimited bytes
Max data size unlimited unlimited bytes
Max stack size 8388608 unlimited bytes
Max core file size 0 unlimited bytes
Max resident set unlimited unlimited bytes
Max processes 7263 7263 processes
Max open files 50000 50000 files
Max locked memory 65536 65536 bytes
Max address space unlimited unlimited bytes
Max file locks unlimited unlimited locks
Max pending signals 7263 7263 signals
Max msgqueue size 819200 819200 bytes
Max nice priority 0 0
Max realtime priority 0 0
Max realtime timeout unlimited unlimited us
Core pattern: core
{"report":{"fcp":936.6000000238419,"ttfb":358.60000002384186,"pageVisibility":"visible","entityId":78354,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"4b612711-ffa4-4899-8e20-6d37861c2e5b","navigationType":0,"readyForUser":1016.6000000238419,"redirectCount":0,"resourceLoadedEnd":600.6000000238419,"resourceLoadedStart":368.40000000596046,"resourceTiming":[{"duration":48.70000001788139,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":368.40000000596046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":368.40000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":417.10000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":48.5,"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":368.80000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":368.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":417.30000001192093,"responseStart":0,"secureConnectionStart":0},{"duration":163.59999999403954,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":368.90000000596046,"connectEnd":368.90000000596046,"connectStart":368.90000000596046,"domainLookupEnd":368.90000000596046,"domainLookupStart":368.90000000596046,"fetchStart":368.90000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":419.2000000178814,"responseEnd":532.5,"responseStart":452.2000000178814,"secureConnectionStart":368.90000000596046},{"duration":231.5,"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":369.10000002384186,"connectEnd":369.10000002384186,"connectStart":369.10000002384186,"domainLookupEnd":369.10000002384186,"domainLookupStart":369.10000002384186,"fetchStart":369.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":422,"responseEnd":600.6000000238419,"responseStart":440.2000000178814,"secureConnectionStart":369.10000002384186},{"duration":75.60000002384186,"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":369.5,"connectEnd":369.5,"connectStart":369.5,"domainLookupEnd":369.5,"domainLookupStart":369.5,"fetchStart":369.5,"redirectEnd":0,"redirectStart":0,"requestStart":422.10000002384186,"responseEnd":445.10000002384186,"responseStart":443.2000000178814,"secureConnectionStart":369.5},{"duration":74.89999997615814,"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":369.60000002384186,"connectEnd":369.60000002384186,"connectStart":369.60000002384186,"domainLookupEnd":369.60000002384186,"domainLookupStart":369.60000002384186,"fetchStart":369.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":422.90000000596046,"responseEnd":444.5,"responseStart":442.7000000178814,"secureConnectionStart":369.60000002384186},{"duration":85.40000000596046,"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":369.80000001192093,"connectEnd":369.80000001192093,"connectStart":369.80000001192093,"domainLookupEnd":369.80000001192093,"domainLookupStart":369.80000001192093,"fetchStart":369.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":424.7000000178814,"responseEnd":455.2000000178814,"responseStart":453.10000002384186,"secureConnectionStart":369.80000001192093},{"duration":52.69999998807907,"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":370.2000000178814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":370.2000000178814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":422.90000000596046,"responseStart":0,"secureConnectionStart":0},{"duration":98.30000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":370.40000000596046,"connectEnd":370.40000000596046,"connectStart":370.40000000596046,"domainLookupEnd":370.40000000596046,"domainLookupStart":370.40000000596046,"fetchStart":370.40000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":425.7000000178814,"responseEnd":468.7000000178814,"responseStart":467.30000001192093,"secureConnectionStart":370.40000000596046},{"duration":54.20000001788139,"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":370.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":370.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":424.7000000178814,"responseStart":0,"secureConnectionStart":0},{"duration":84.89999997615814,"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":370.60000002384186,"connectEnd":370.60000002384186,"connectStart":370.60000002384186,"domainLookupEnd":370.60000002384186,"domainLookupStart":370.60000002384186,"fetchStart":370.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":428,"responseEnd":455.5,"responseStart":453.5,"secureConnectionStart":370.60000002384186},{"duration":208.59999999403954,"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":373.80000001192093,"connectEnd":373.80000001192093,"connectStart":373.80000001192093,"domainLookupEnd":373.80000001192093,"domainLookupStart":373.80000001192093,"fetchStart":373.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":478.80000001192093,"responseEnd":582.4000000059605,"responseStart":579.5,"secureConnectionStart":373.80000001192093},{"duration":208.59999999403954,"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":373.90000000596046,"connectEnd":373.90000000596046,"connectStart":373.90000000596046,"domainLookupEnd":373.90000000596046,"domainLookupStart":373.90000000596046,"fetchStart":373.90000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":479.80000001192093,"responseEnd":582.5,"responseStart":580.2000000178814,"secureConnectionStart":373.90000000596046},{"duration":340.80000001192093,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":742.9000000059605,"connectEnd":742.9000000059605,"connectStart":742.9000000059605,"domainLookupEnd":742.9000000059605,"domainLookupStart":742.9000000059605,"fetchStart":742.9000000059605,"redirectEnd":0,"redirectStart":0,"requestStart":1048.9000000059605,"responseEnd":1083.7000000178814,"responseStart":1082.5,"secureConnectionStart":742.9000000059605},{"duration":205.09999999403954,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":915.3000000119209,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":915.3000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1120.4000000059605,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":76,"responseStart":358,"responseEnd":368,"domLoading":362,"domInteractive":1121,"domContentLoadedEventStart":1121,"domContentLoadedEventEnd":1164,"domComplete":2023,"loadEventStart":2023,"loadEventEnd":2024,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1095.9000000059605},{"name":"bigPipe.sidebar-id.end","time":1096.6000000238419},{"name":"bigPipe.activity-panel-pipe-id.start","time":1096.800000011921},{"name":"bigPipe.activity-panel-pipe-id.end","time":1099.1000000238419},{"name":"activityTabFullyLoaded","time":1177.1000000238419}],"measures":[],"correlationId":"1148a496f3e1df","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":184,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}