Sprint:
10.1.8-3, 10.1.8-4
If I run this store procedure twice in a row in the same session, the server will crash with Signal 6.
CREATE DEFINER = 'leo'@'%'
PROCEDURE PlayGround.procedure2()
BEGIN
Select
(Select Sum(`TestCase`.Revenue) From PlayGround.Anything E
Where TestCase.TemplateID not in (Select 1 from PlayGround.Anything where 2=2)
) As `ControlRev`
From
(Select 3 as Revenue, 4 as TemplateID) As `TestCase`
Group By TestCase.Revenue, TestCase.TemplateID;
END
PlayGround.Anything table is an empty table with only one primary key field `ID`, and it doesn't really have to do anything, it could be any table even mysql.slow_log. The content of the SP may look strange, but I was try to simplify my product SP to create a test case.
Here is the log
pure virtual method called
terminate called without an active exception
150112 11:47:42 [ERROR] mysqld got signal 6 ;
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.15-MariaDB-wsrep-log
key_buffer_size=524288
read_buffer_size=131072
max_used_connections=1
max_threads=501
thread_count=11
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 525444581 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x0x7f30c3f7c008
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 = 0x7f316f0efcb0 thread_stack 0x40000
/usr/sbin/mysqld(my_print_stacktrace+0x2e)[0xbe922e]
/usr/sbin/mysqld(handle_fatal_signal+0x390)[0x751a10]
/lib64/libpthread.so.0(+0xf130)[0x7f3974025130]
/lib64/libc.so.6(gsignal+0x39)[0x7f39727dd5c9]
/lib64/libc.so.6(abort+0x148)[0x7f39727decd8]
/lib64/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x165)[0x7f3972ecb9d5]
/lib64/libstdc++.so.6(+0x5e946)[0x7f3972ec9946]
/lib64/libstdc++.so.6(+0x5e973)[0x7f3972ec9973]
/lib64/libstdc++.so.6(+0x5f4df)[0x7f3972eca4df]
/usr/sbin/mysqld(_ZN10Item_cache5setupEP4Item+0x48)[0x779408]
/usr/sbin/mysqld(_ZN17Item_in_optimizer8fix_leftEP3THD+0x3e)[0x78b87e]
/usr/sbin/mysqld(_ZN17Item_in_optimizer10fix_fieldsEP3THDPP4Item+0x18)[0x78bbe8]
/usr/sbin/mysqld(_ZN9Item_func10fix_fieldsEP3THDPP4Item+0x190)[0x7ace70]
/usr/sbin/mysqld(_ZN13Item_func_not10fix_fieldsEP3THDPP4Item+0x32e)[0x78681e]
/usr/sbin/mysqld(_Z11setup_condsP3THDP10TABLE_LISTR4ListIS1_EPP4Item+0x188)[0x590868]
/usr/sbin/mysqld[0x623087]
/usr/sbin/mysqld(_ZN30subselect_single_select_engine7prepareEv+0x6d6)[0x7e2b66]
/usr/sbin/mysqld(_ZN14Item_subselect10fix_fieldsEP3THDPP4Item+0xd5)[0x7e0945]
/usr/sbin/mysqld(_Z12setup_fieldsP3THDPP4ItemR4ListIS1_E17enum_mark_columnsPS5_b+0x17c)[0x58eaec]
/usr/sbin/mysqld[0x622fd2]
/usr/sbin/mysqld(_Z12mysql_selectP3THDPPP4ItemP10TABLE_LISTjR4ListIS1_ES2_jP8st_orderSB_S2_SB_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x8f6)[0x62e656]
/usr/sbin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x27d)[0x62e95d]
/usr/sbin/mysqld[0x5cdd1e]
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x569d)[0x5dc71d]
/usr/sbin/mysqld(_ZN13sp_instr_stmt9exec_coreEP3THDPj+0x34)[0x86ab44]
/usr/sbin/mysqld(_ZN13sp_lex_keeper23reset_lex_and_exec_coreEP3THDPjbP8sp_instr+0x80)[0x872000]
/usr/sbin/mysqld(_ZN13sp_instr_stmt7executeEP3THDPj+0x155)[0x872425]
/usr/sbin/mysqld(_ZN7sp_head7executeEP3THDb+0x6ac)[0x86f0dc]
/usr/sbin/mysqld(_ZN7sp_head17execute_procedureEP3THDP4ListI4ItemE+0x694)[0x870704]
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x5faf)[0x5dd02f]
/usr/sbin/mysqld[0x5e0c61]
/usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x1ac5)[0x5e2c95]
/usr/sbin/mysqld(_Z10do_commandP3THD+0x1ba)[0x5e398a]
/usr/sbin/mysqld(_Z26threadpool_process_requestP3THD+0xc7)[0x6e3d17]
/usr/sbin/mysqld[0x7246ed]
/lib64/libpthread.so.0(+0x7df3)[0x7f397401ddf3]
/lib64/libc.so.6(clone+0x6d)[0x7f397289e01d]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x7f30c2c56020): is an invalid pointer
Connection ID (thread ID): 13
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.
150112 11:47:42 mysqld_safe Number of processes running now: 0
150112 11:47:42 mysqld_safe WSREP: not restarting wsrep node automatically
150112 11:47:42 mysqld_safe mysqld from pid file /mysqlc/conf/mysql.pid ended
{"report":{"fcp":1458.9000000953674,"ttfb":588.2000002861023,"pageVisibility":"visible","entityId":49607,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"7fc088de-d215-4fed-8976-81610776399b","navigationType":0,"readyForUser":1555.5,"redirectCount":0,"resourceLoadedEnd":1731.9000000953674,"resourceLoadedStart":620.5,"resourceTiming":[{"duration":347.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":620.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":620.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":967.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":347.40000009536743,"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":620.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":620.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":968.2000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":356.7000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":621,"connectEnd":621,"connectStart":621,"domainLookupEnd":621,"domainLookupStart":621,"fetchStart":621,"redirectEnd":0,"redirectStart":0,"requestStart":621,"responseEnd":977.7000002861023,"responseStart":977.7000002861023,"secureConnectionStart":621},{"duration":413.19999980926514,"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":621.2000002861023,"connectEnd":621.2000002861023,"connectStart":621.2000002861023,"domainLookupEnd":621.2000002861023,"domainLookupStart":621.2000002861023,"fetchStart":621.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":621.2000002861023,"responseEnd":1034.4000000953674,"responseStart":1034.4000000953674,"secureConnectionStart":621.2000002861023},{"duration":416.5,"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":621.9000000953674,"connectEnd":621.9000000953674,"connectStart":621.9000000953674,"domainLookupEnd":621.9000000953674,"domainLookupStart":621.9000000953674,"fetchStart":621.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":621.9000000953674,"responseEnd":1038.4000000953674,"responseStart":1038.4000000953674,"secureConnectionStart":621.9000000953674},{"duration":416.80000019073486,"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":622.0999999046326,"connectEnd":622.0999999046326,"connectStart":622.0999999046326,"domainLookupEnd":622.0999999046326,"domainLookupStart":622.0999999046326,"fetchStart":622.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":622.0999999046326,"responseEnd":1038.9000000953674,"responseStart":1038.9000000953674,"secureConnectionStart":622.0999999046326},{"duration":417,"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":622.3000001907349,"connectEnd":622.3000001907349,"connectStart":622.3000001907349,"domainLookupEnd":622.3000001907349,"domainLookupStart":622.3000001907349,"fetchStart":622.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":622.3000001907349,"responseEnd":1039.3000001907349,"responseStart":1039.3000001907349,"secureConnectionStart":622.3000001907349},{"duration":513.5999999046326,"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":622.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":622.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1136.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":417,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":622.7000002861023,"connectEnd":622.7000002861023,"connectStart":622.7000002861023,"domainLookupEnd":622.7000002861023,"domainLookupStart":622.7000002861023,"fetchStart":622.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":622.7000002861023,"responseEnd":1039.7000002861023,"responseStart":1039.7000002861023,"secureConnectionStart":622.7000002861023},{"duration":513.4000000953674,"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":622.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":622.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1136.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":417.30000019073486,"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":623,"connectEnd":623,"connectStart":623,"domainLookupEnd":623,"domainLookupStart":623,"fetchStart":623,"redirectEnd":0,"redirectStart":0,"requestStart":623,"responseEnd":1040.3000001907349,"responseStart":1040.3000001907349,"secureConnectionStart":623},{"duration":921.3000001907349,"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":624,"connectEnd":624,"connectStart":624,"domainLookupEnd":624,"domainLookupStart":624,"fetchStart":624,"redirectEnd":0,"redirectStart":0,"requestStart":624,"responseEnd":1545.3000001907349,"responseStart":1545.3000001907349,"secureConnectionStart":624},{"duration":1107.8000001907349,"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":624.0999999046326,"connectEnd":624.0999999046326,"connectStart":624.0999999046326,"domainLookupEnd":624.0999999046326,"domainLookupStart":624.0999999046326,"fetchStart":624.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":624.0999999046326,"responseEnd":1731.9000000953674,"responseStart":1731.9000000953674,"secureConnectionStart":624.0999999046326},{"duration":409.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1149,"connectEnd":1149,"connectStart":1149,"domainLookupEnd":1149,"domainLookupStart":1149,"fetchStart":1149,"redirectEnd":0,"redirectStart":0,"requestStart":1149,"responseEnd":1558.4000000953674,"responseStart":1558.4000000953674,"secureConnectionStart":1149},{"duration":284.09999990463257,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1452.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1452.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1736.4000000953674,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":417,"responseStart":588,"responseEnd":601,"domLoading":618,"domInteractive":1759,"domContentLoadedEventStart":1759,"domContentLoadedEventEnd":1809,"domComplete":2922,"loadEventStart":2922,"loadEventEnd":2924,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1737.5},{"name":"bigPipe.sidebar-id.end","time":1739},{"name":"bigPipe.activity-panel-pipe-id.start","time":1739.2000002861023},{"name":"bigPipe.activity-panel-pipe-id.end","time":1742.3000001907349},{"name":"activityTabFullyLoaded","time":1816.7000002861023}],"measures":[],"correlationId":"ba338dfde42484","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":99,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}