After upgrading from 10.3.22 to 10.4.12 I have encountered a strange issue - if two or more ' show global status where ...' are issued in parallel mysql crashes
Something like:
#!/bin/bash
|
mysql -e 'show global status where Variable_name="Com_delete"' &
|
mysql -e 'show global status where Variable_name="Com_insert"' &
|
mysql -e 'show global status where Variable_name="Com_select"' &
|
crashes the server reliably:
200316 20:09:03 [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.4.12-MariaDB-log
|
key_buffer_size=209715200
|
read_buffer_size=4194304
|
max_used_connections=3
|
max_threads=10002
|
thread_count=20
|
It is possible that mysqld could use up to
|
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 82388318 K bytes of memory
|
Hope that's ok; if not, decrease some variables in the equation.
|
|
Thread pointer: 0x7f7dba213dc8
|
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 = 0x7f7dba69f528 thread_stack 0x49000
|
*** buffer overflow detected ***: /usr/sbin/mysqld terminated
|
Fatal signal 6 while backtracing
|
If you execute each query sequentially there are no problems.
The coredump looks like:
Core was generated by `/usr/sbin/mysqld'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 0x00007f8dbf36d160 in raise () from /lib64/libc.so.6
|
|
(gdb) bt
|
#0 0x00007f8dbf36d160 in raise () from /lib64/libc.so.6
|
#1 0x00007f8dbf36e81f in abort () from /lib64/libc.so.6
|
#2 0x00007f8dbf3b04a7 in __libc_message () from /lib64/libc.so.6
|
#3 0x00007f8dbf440f6e in __fortify_fail_abort () from /lib64/libc.so.6
|
#4 0x00007f8dbf440fa1 in __fortify_fail () from /lib64/libc.so.6
|
#5 0x00007f8dbf43ee50 in __chk_fail () from /lib64/libc.so.6
|
#6 0x00007f8dbf440eaa in __fdelt_warn () from /lib64/libc.so.6
|
#7 0x000055f6b4164475 in my_addr_resolve (ptr=<optimized out>, loc=loc@entry=0x7f7dba699900) at /usr/src/debug/MariaDB-10.4.12/src_0/mysys/my_addr_resolve.c:234
|
#8 0x000055f6b4149ba3 in print_with_addr_resolve (n=<optimized out>, addrs=0x7f7dba699920) at /usr/src/debug/MariaDB-10.4.12/src_0/mysys/stacktrace.c:254
|
#9 my_print_stacktrace (stack_bottom=<optimized out>, thread_stack=<optimized out>, silent=silent@entry=0 '\000') at /usr/src/debug/MariaDB-10.4.12/src_0/mysys/stacktrace.c:273
|
#10 0x000055f6b3bbd745 in handle_fatal_signal (sig=11) at /usr/src/debug/MariaDB-10.4.12/src_0/sql/signal_handler.cc:206
|
#11 <signal handler called>
|
#12 0x00007f8d9e89b55a in read_partitioned_counter () from /usr/lib64/mysql/plugin/ha_tokudb.so
|
#13 0x00007f8d9e83fc2d in ?? () from /usr/lib64/mysql/plugin/ha_tokudb.so
|
#14 0x000055f6b3a16752 in show_status_array (thd=thd@entry=0x7f7dba213dc8, wild=wild@entry=0x0, variables=0x7f8dbe0684d8, scope=scope@entry=SHOW_OPT_GLOBAL,
|
status_var=status_var@entry=0x7f7dba69b260, prefix=prefix@entry=0x55f6b43291b5 "", table=0x7f7dba25e020, ucase_names=false, cond=0x7f7dba247e00)
|
at /usr/src/debug/MariaDB-10.4.12/src_0/sql/sql_show.cc:3804
|
#15 0x000055f6b3a199b3 in fill_status (thd=0x7f7dba213dc8, tables=0x7f7dba2482f8, cond=<optimized out>) at /usr/src/debug/MariaDB-10.4.12/src_0/sql/sql_show.cc:7946
|
#16 0x000055f6b3a1f072 in get_schema_tables_result (join=join@entry=0x7f7dba248db0, executed_place=executed_place@entry=PROCESSED_BY_JOIN_EXEC)
|
at /usr/src/debug/MariaDB-10.4.12/src_0/sql/sql_show.cc:8914
|
#17 0x000055f6b3a052cd in JOIN::exec_inner (this=this@entry=0x7f7dba248db0) at /usr/src/debug/MariaDB-10.4.12/src_0/sql/sql_select.cc:4409
|
#18 0x000055f6b3a058a3 in JOIN::exec (this=this@entry=0x7f7dba248db0) at /usr/src/debug/MariaDB-10.4.12/src_0/sql/sql_select.cc:4234
|
#19 0x000055f6b3a03c61 in mysql_select (thd=0x7f7dba213dc8, tables=0x7f7dba2482f8, wild_num=0, fields=..., conds=<optimized out>, og_num=0, order=0x0, group=0x0, having=0x0,
|
proc_param=0x0, select_options=2684619520, result=0x7f7dba248d88, unit=0x7f7dba217b30, select_lex=0x7f7dba218328) at /usr/src/debug/MariaDB-10.4.12/src_0/sql/sql_select.cc:4666
|
#20 0x000055f6b3a04611 in handle_select (thd=0x7f7dba213dc8, lex=0x7f7dba217a70, result=0x7f7dba248d88, setup_tables_done_option=0)
|
at /usr/src/debug/MariaDB-10.4.12/src_0/sql/sql_select.cc:408
|
#21 0x000055f6b39a0c21 in execute_sqlcom_select (thd=0x7f7dba213dc8, all_tables=0x7f7dba2482f8) at /usr/src/debug/MariaDB-10.4.12/src_0/sql/sql_parse.cc:6360
|
#22 0x000055f6b39ae27c in mysql_execute_command (thd=0x7f7dba213dc8) at /usr/src/debug/MariaDB-10.4.12/src_0/sql/sql_parse.cc:6394
|
#23 0x000055f6b39b07da in mysql_parse (thd=0x7f7dba213dc8, rawbuf=<optimized out>, length=51, parser_state=0x7f7dba69e850, is_com_multi=<optimized out>, is_next_command=<optimized out>)
|
at /usr/src/debug/MariaDB-10.4.12/src_0/sql/sql_parse.cc:7901
|
#24 0x000055f6b39b2d71 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x7f7dba213dc8,
|
packet=packet@entry=0x7f7dba231f89 "show global status where Variable_name=\"Com_delete\"", packet_length=packet_length@entry=51, is_com_multi=is_com_multi@entry=false,
|
is_next_command=is_next_command@entry=false) at /usr/src/debug/MariaDB-10.4.12/src_0/sql/sql_parse.cc:1841
|
#25 0x000055f6b39b4648 in do_command (thd=0x7f7dba213dc8) at /usr/src/debug/MariaDB-10.4.12/src_0/sql/sql_parse.cc:1359
|
#26 0x000055f6b3a907fe in do_handle_one_connection (connect=connect@entry=0x7f8dbe044c68) at /usr/src/debug/MariaDB-10.4.12/src_0/sql/sql_connect.cc:1412
|
#27 0x000055f6b3a908bd in handle_one_connection (arg=0x7f8dbe044c68) at /usr/src/debug/MariaDB-10.4.12/src_0/sql/sql_connect.cc:1316
|
#28 0x00007f8dc18ab569 in start_thread () from /lib64/libpthread.so.0
|
#29 0x00007f8dbf42f9ef in clone () from /lib64/libc.so.6
|
(full backtrace in attachment)
{"report":{"fcp":649.5999999046326,"ttfb":133.19999980926514,"pageVisibility":"visible","entityId":84153,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"9b4a5d3f-fada-4e5b-9660-83711797c13d","navigationType":0,"readyForUser":734.5,"redirectCount":0,"resourceLoadedEnd":780.8999998569489,"resourceLoadedStart":148.69999980926514,"resourceTiming":[{"duration":58.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":148.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":148.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":207.5,"responseStart":0,"secureConnectionStart":0},{"duration":58.5,"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":149,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":149,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":207.5,"responseStart":0,"secureConnectionStart":0},{"duration":92.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":149.09999990463257,"connectEnd":149.09999990463257,"connectStart":149.09999990463257,"domainLookupEnd":149.09999990463257,"domainLookupStart":149.09999990463257,"fetchStart":149.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":149.09999990463257,"responseEnd":242,"responseStart":242,"secureConnectionStart":149.09999990463257},{"duration":175.5,"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":149.19999980926514,"connectEnd":149.19999980926514,"connectStart":149.19999980926514,"domainLookupEnd":149.19999980926514,"domainLookupStart":149.19999980926514,"fetchStart":149.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":149.19999980926514,"responseEnd":324.69999980926514,"responseStart":324.69999980926514,"secureConnectionStart":149.19999980926514},{"duration":179.20000004768372,"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":149.29999995231628,"connectEnd":149.29999995231628,"connectStart":149.29999995231628,"domainLookupEnd":149.29999995231628,"domainLookupStart":149.29999995231628,"fetchStart":149.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":149.29999995231628,"responseEnd":328.5,"responseStart":328.5,"secureConnectionStart":149.29999995231628},{"duration":181.10000014305115,"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":149.39999985694885,"connectEnd":149.39999985694885,"connectStart":149.39999985694885,"domainLookupEnd":149.39999985694885,"domainLookupStart":149.39999985694885,"fetchStart":149.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":149.39999985694885,"responseEnd":330.5,"responseStart":330.5,"secureConnectionStart":149.39999985694885},{"duration":182,"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":149.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":149.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":331.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":181.29999995231628,"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":149.59999990463257,"connectEnd":149.59999990463257,"connectStart":149.59999990463257,"domainLookupEnd":149.59999990463257,"domainLookupStart":149.59999990463257,"fetchStart":149.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":149.59999990463257,"responseEnd":330.89999985694885,"responseStart":330.89999985694885,"secureConnectionStart":149.59999990463257},{"duration":182.20000004768372,"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":149.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":149.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":332,"responseStart":0,"secureConnectionStart":0},{"duration":181.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":149.79999995231628,"connectEnd":149.79999995231628,"connectStart":149.79999995231628,"domainLookupEnd":149.79999995231628,"domainLookupStart":149.79999995231628,"fetchStart":149.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":149.79999995231628,"responseEnd":331.5,"responseStart":331.5,"secureConnectionStart":149.79999995231628},{"duration":182,"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":150.09999990463257,"connectEnd":150.09999990463257,"connectStart":150.09999990463257,"domainLookupEnd":150.09999990463257,"domainLookupStart":150.09999990463257,"fetchStart":150.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":150.09999990463257,"responseEnd":332.09999990463257,"responseStart":332.09999990463257,"secureConnectionStart":150.09999990463257},{"duration":578.5999999046326,"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":150.59999990463257,"connectEnd":150.59999990463257,"connectStart":150.59999990463257,"domainLookupEnd":150.59999990463257,"domainLookupStart":150.59999990463257,"fetchStart":150.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":150.59999990463257,"responseEnd":729.1999998092651,"responseStart":729.1999998092651,"secureConnectionStart":150.59999990463257},{"duration":630.2000000476837,"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":150.69999980926514,"connectEnd":150.69999980926514,"connectStart":150.69999980926514,"domainLookupEnd":150.69999980926514,"domainLookupStart":150.69999980926514,"fetchStart":150.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":150.69999980926514,"responseEnd":780.8999998569489,"responseStart":780.8999998569489,"secureConnectionStart":150.69999980926514},{"duration":336.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":394.39999985694885,"connectEnd":394.39999985694885,"connectStart":394.39999985694885,"domainLookupEnd":394.39999985694885,"domainLookupStart":394.39999985694885,"fetchStart":394.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":394.39999985694885,"responseEnd":730.7999999523163,"responseStart":730.7999999523163,"secureConnectionStart":394.39999985694885},{"duration":168.10000014305115,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":640.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":640.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":808.2999999523163,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":4,"responseStart":133,"responseEnd":137,"domLoading":145,"domInteractive":839,"domContentLoadedEventStart":839,"domContentLoadedEventEnd":884,"domComplete":1772,"loadEventStart":1772,"loadEventEnd":1774,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":822.1999998092651},{"name":"bigPipe.sidebar-id.end","time":822.8999998569489},{"name":"bigPipe.activity-panel-pipe-id.start","time":823.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":825.3999998569489},{"name":"activityTabFullyLoaded","time":895.2999999523163}],"measures":[],"correlationId":"3bd5fcf3d08240","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":65,"dbReadsTimeInMs":10,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}