While running the below query MariaDB server is getting crash.
SELECT PCU.THREAD_ID, TH.processlist_id , PCU.EVENT_ID, PCU.SQL_TEXT , PCU.ROWS_AFFECTED FROM performance_schema.threads TH, performance_schema.events_statements_history PCU WHERE TH.THREAD_ID=PCU.THREAD_ID AND TH.processlist_id IN (SELECT DISTINCT(THREAD_ID) FROM INFORMATION_SCHEMA.metadata_lock_info)
|
Here is the error log details.
170417 7:30:01 [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 http://kb.askmonty.org/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.0.19-MariaDB-log
|
key_buffer_size=134217728
|
read_buffer_size=1048576
|
max_used_connections=2459
|
max_threads=4002
|
thread_count=253
|
It is possible that mysqld could use up to
|
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 8406281 K bytes of memory
|
Hope that's ok; if not, decrease some variables in the equation.
|
Thread pointer: 0x0x7f950f4ba008
|
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 = 0x7f9533e91de0 thread_stack 0x48000
|
mysys/stacktrace.c:247(my_print_stacktrace)[0xbca37e]
|
sql/signal_handler.cc:153(handle_fatal_signal)[0x71fe5c]
|
/lib64/libpthread.so.0[0x32cec0f710]
|
/MARIA/mariadb/lib/plugin/metadata_lock_info.so(_Z31i_s_metadata_lock_info_fill_rowP10MDL_ticketPv+0x126)[0x7f98f2d72e96]
|
sql/mdl.cc:713(mdl_iterate_lock)[0x677c5d]
|
/MARIA/mariadb/lib/plugin/metadata_lock_info.so(_Z33i_s_metadata_lock_info_fill_tableP3THDP10TABLE_LISTP4Item+0x27)[0x7f98f2d72d67]
|
sql/sql_show.cc:8159(get_schema_tables_result(JOIN*, enum_schema_table_state))[0x5f5121]
|
sql/sql_select.cc:2532(JOIN::exec_inner())[0x5ef045]
|
sql/sql_select.cc:2370(JOIN::exec())[0x5edd2a]
|
sql/sql_select.cc:373(handle_select(THD*, LEX*, select_result*, unsigned long))[0x5f195d]
|
sql/sql_parse.cc:5275(execute_sqlcom_select)[0x5957d0]
|
sql/sql_parse.cc:2562(mysql_execute_command(THD*))[0x598427]
|
sql/sql_parse.cc:6529(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x59f866]
|
sql/sql_parse.cc:1310(dispatch_command(enum_server_command, THD*, char*, unsigned int))[0x5a1797]
|
sql/sql_parse.cc:999(do_command(THD*))[0x5a1ed9]
|
sql/sql_connect.cc:1375(do_handle_one_connection(THD*))[0x66bfd4]
|
sql/sql_connect.cc:1291(handle_one_connection)[0x66c112]
|
perfschema/pfs.cc:1863(pfs_spawn_thread)[0xa83f49]
|
/lib64/libpthread.so.0[0x32cec079d1]
|
/lib64/libc.so.6(clone+0x6d)[0x32ce8e8b6d]
|
Trying to get some variables.
|
Some pointers may be invalid and cause the dump to abort.
|
Query (0x7f9398bec020): SELECT PCU.THREAD_ID, TH.processlist_id , PCU.EVENT_ID, PCU.SQL_TEXT , PCU.ROWS_AFFECTED FROM performance_schema.threads TH, performance_schema.events_statements_history PCU WHERE TH.THREAD_ID=PCU.THREAD_ID AND TH.processlist_id IN (SELECT DISTINCT(THREAD_ID) FROM INFORMATION_SCHEMA.metadata_lock_info)
|
Connection ID (thread ID): 6259347
|
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
|
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.
|
170417 07:30:03 mysqld_safe Number of processes running now: 0
|
170417 07:30:03 mysqld_safe mysqld restarted
|
I found one bug related to this https://jira.mariadb.org/browse/MDEV-9486 but not sure if both are same or different.
- relates to
-
MDEV-9728
Hard crash in metadata_lock_info
-
-
Closed
{"report":{"fcp":782.7000000476837,"ttfb":173.30000007152557,"pageVisibility":"visible","entityId":60942,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"9688193a-4963-40ad-8bea-fcfbda881134","navigationType":0,"readyForUser":864.3999999761581,"redirectCount":0,"resourceLoadedEnd":935,"resourceLoadedStart":206.60000002384186,"resourceTiming":[{"duration":17.100000023841858,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":206.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":206.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":223.70000004768372,"responseStart":0,"secureConnectionStart":0},{"duration":17.299999952316284,"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":206.80000007152557,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":206.80000007152557,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":224.10000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":69.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":206.89999997615814,"connectEnd":206.89999997615814,"connectStart":206.89999997615814,"domainLookupEnd":206.89999997615814,"domainLookupStart":206.89999997615814,"fetchStart":206.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":206.89999997615814,"responseEnd":276.10000002384186,"responseStart":276.10000002384186,"secureConnectionStart":206.89999997615814},{"duration":156.10000002384186,"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":207.20000004768372,"connectEnd":207.20000004768372,"connectStart":207.20000004768372,"domainLookupEnd":207.20000004768372,"domainLookupStart":207.20000004768372,"fetchStart":207.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":207.20000004768372,"responseEnd":363.3000000715256,"responseStart":363.3000000715256,"secureConnectionStart":207.20000004768372},{"duration":159.60000002384186,"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":207.39999997615814,"connectEnd":207.39999997615814,"connectStart":207.39999997615814,"domainLookupEnd":207.39999997615814,"domainLookupStart":207.39999997615814,"fetchStart":207.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":207.39999997615814,"responseEnd":367,"responseStart":367,"secureConnectionStart":207.39999997615814},{"duration":160,"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":207.5,"connectEnd":207.5,"connectStart":207.5,"domainLookupEnd":207.5,"domainLookupStart":207.5,"fetchStart":207.5,"redirectEnd":0,"redirectStart":0,"requestStart":207.5,"responseEnd":367.5,"responseStart":367.5,"secureConnectionStart":207.5},{"duration":160.19999992847443,"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":207.70000004768372,"connectEnd":207.70000004768372,"connectStart":207.70000004768372,"domainLookupEnd":207.70000004768372,"domainLookupStart":207.70000004768372,"fetchStart":207.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":207.70000004768372,"responseEnd":367.89999997615814,"responseStart":367.89999997615814,"secureConnectionStart":207.70000004768372},{"duration":208.90000009536743,"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":207.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":207.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":416.8000000715256,"responseStart":0,"secureConnectionStart":0},{"duration":160.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":208.10000002384186,"connectEnd":208.10000002384186,"connectStart":208.10000002384186,"domainLookupEnd":208.10000002384186,"domainLookupStart":208.10000002384186,"fetchStart":208.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":208.10000002384186,"responseEnd":368.2000000476837,"responseStart":368.2000000476837,"secureConnectionStart":208.10000002384186},{"duration":208.69999992847443,"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":208.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":208.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":416.89999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":160.39999997615814,"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":208.30000007152557,"connectEnd":208.30000007152557,"connectStart":208.30000007152557,"domainLookupEnd":208.30000007152557,"domainLookupStart":208.30000007152557,"fetchStart":208.30000007152557,"redirectEnd":0,"redirectStart":0,"requestStart":208.30000007152557,"responseEnd":368.7000000476837,"responseStart":368.7000000476837,"secureConnectionStart":208.30000007152557},{"duration":724.7999999523163,"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":209.10000002384186,"connectEnd":209.10000002384186,"connectStart":209.10000002384186,"domainLookupEnd":209.10000002384186,"domainLookupStart":209.10000002384186,"fetchStart":209.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":209.10000002384186,"responseEnd":933.8999999761581,"responseStart":933.8999999761581,"secureConnectionStart":209.10000002384186},{"duration":725.1000000238419,"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":209.20000004768372,"connectEnd":209.20000004768372,"connectStart":209.20000004768372,"domainLookupEnd":209.20000004768372,"domainLookupStart":209.20000004768372,"fetchStart":209.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":209.20000004768372,"responseEnd":934.3000000715256,"responseStart":934.3000000715256,"secureConnectionStart":209.20000004768372},{"duration":127.89999997615814,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":428.3000000715256,"connectEnd":428.3000000715256,"connectStart":428.3000000715256,"domainLookupEnd":428.3000000715256,"domainLookupStart":428.3000000715256,"fetchStart":428.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":428.3000000715256,"responseEnd":556.2000000476837,"responseStart":556.2000000476837,"secureConnectionStart":428.3000000715256},{"duration":234.30000007152557,"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":700.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":700.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":934.8000000715256,"responseStart":0,"secureConnectionStart":0},{"duration":233.89999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2bu7/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":701.1000000238419,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":701.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":935,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":6,"responseStart":174,"responseEnd":177,"domLoading":205,"domInteractive":955,"domContentLoadedEventStart":955,"domContentLoadedEventEnd":996,"domComplete":1292,"loadEventStart":1292,"loadEventEnd":1292,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":939.3000000715256},{"name":"bigPipe.sidebar-id.end","time":940},{"name":"bigPipe.activity-panel-pipe-id.start","time":940.1000000238419},{"name":"bigPipe.activity-panel-pipe-id.end","time":941},{"name":"activityTabFullyLoaded","time":1008.6000000238419}],"measures":[],"correlationId":"53f291e099ce9e","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":100,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
The problem is reproducible with 10.0.19 where it was encountered), and up to 10.0.25. It was fixed in 10.0.26 in the scope of
MDEV-9728.