Server crashes with signal 6 every time when a specific set of queries is run:
use test;
|
|
DROP TABLE IF EXISTS SomeTable;
|
CREATE TABLE `SomeTable` (
|
`Id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
|
INDEX `Index 1` (`Id`)
|
)
|
ENGINE=InnoDB;
|
|
INSERT INTO `SomeTable` (`Id`) VALUES (1);
|
|
SET @id = 1;
|
SELECT S.Id FROM (
|
SELECT m.Id FROM SomeTable m
|
WHERE @id IN (0, m.Id)
|
GROUP BY m.Id -- CRASH !!!!
|
) AS M
|
INNER JOIN (
|
SELECT s.Id FROM SomeTable s
|
WHERE @id IN (0, s.Id) -- CRASH !!!!
|
) AS S
|
ON S.Id = M.Id;
|
Statement crashes every time regardless of the value of @id, so long as there is a static value and a data element included in the in clause, and the table is not empty.
Notes:
- happens only on CentOS and RedHat - not on Debian / Ubuntu
- happens with default and customized configurations
- does not happen in any tested 10.1 or 10.3 version of the server, or any other tested 10.2 release; only 10.2.15
- appens with InnoDB or Aria storage engines.
- only happens with data in the table.
- happens whether primary key is defined or not.
Version: '10.2.15-MariaDB' socket: '/var/lib/mysql/mysql.sock' port: 3306 MariaDB Server
|
pure virtual method called
|
terminate called without an active exception
|
180618 23:10:46 [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 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.2.15-MariaDB
|
key_buffer_size=134217728
|
read_buffer_size=131072
|
max_used_connections=1
|
max_threads=153
|
thread_count=7
|
It is possible that mysqld could use up to
|
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467238 K bytes of memory
|
Hope that's ok; if not, decrease some variables in the equation.
|
|
Thread pointer: 0x55b18989bb78
|
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 = 0x7ff7019c4d70 thread_stack 0x49000
|
mysys/stacktrace.c:268(my_print_stacktrace)[0x55b18691ff9e]
|
sql/signal_handler.cc:168(handle_fatal_signal)[0x55b1863aba05]
|
sigaction.c:0(__restore_rt)[0x7ff7194d05e0]
|
:0(__GI_raise)[0x7ff7179dd1f7]
|
:0(__GI_abort)[0x7ff7179de8e8]
|
/lib64/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x165)[0x7ff7180cdac5]
|
/lib64/libstdc++.so.6(+0x5ea36)[0x7ff7180cba36]
|
/lib64/libstdc++.so.6(+0x5ea63)[0x7ff7180cba63]
|
/lib64/libstdc++.so.6(+0x5f5cf)[0x7ff7180cc5cf]
|
sql/item_cmpfunc.cc:4405(Item_func_in::val_int())[0x55b1863eb587]
|
{"report":{"fcp":1462.1000003814697,"ttfb":305.6000003814697,"pageVisibility":"visible","entityId":68202,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"dd6fce75-9dac-45c2-8c49-e9a3ae90a832","navigationType":0,"readyForUser":1561.3000001907349,"redirectCount":0,"resourceLoadedEnd":1405.3000001907349,"resourceLoadedStart":322.6000003814697,"resourceTiming":[{"duration":484.3999996185303,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":322.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":322.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":807,"responseStart":0,"secureConnectionStart":0},{"duration":485.30000019073486,"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":322.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":322.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":808.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":494.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":323.1000003814697,"connectEnd":323.1000003814697,"connectStart":323.1000003814697,"domainLookupEnd":323.1000003814697,"domainLookupStart":323.1000003814697,"fetchStart":323.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":323.1000003814697,"responseEnd":817.8000001907349,"responseStart":817.8000001907349,"secureConnectionStart":323.1000003814697},{"duration":593.6999998092651,"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":323.30000019073486,"connectEnd":323.30000019073486,"connectStart":323.30000019073486,"domainLookupEnd":323.30000019073486,"domainLookupStart":323.30000019073486,"fetchStart":323.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":323.30000019073486,"responseEnd":917,"responseStart":917,"secureConnectionStart":323.30000019073486},{"duration":598.6999998092651,"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":323.6000003814697,"connectEnd":323.6000003814697,"connectStart":323.6000003814697,"domainLookupEnd":323.6000003814697,"domainLookupStart":323.6000003814697,"fetchStart":323.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":323.6000003814697,"responseEnd":922.3000001907349,"responseStart":922.3000001907349,"secureConnectionStart":323.6000003814697},{"duration":599.1000003814697,"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":323.69999980926514,"connectEnd":323.69999980926514,"connectStart":323.69999980926514,"domainLookupEnd":323.69999980926514,"domainLookupStart":323.69999980926514,"fetchStart":323.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":323.69999980926514,"responseEnd":922.8000001907349,"responseStart":922.8000001907349,"secureConnectionStart":323.69999980926514},{"duration":599.2000007629395,"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":323.8999996185303,"connectEnd":323.8999996185303,"connectStart":323.8999996185303,"domainLookupEnd":323.8999996185303,"domainLookupStart":323.8999996185303,"fetchStart":323.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":323.8999996185303,"responseEnd":923.1000003814697,"responseStart":923.1000003814697,"secureConnectionStart":323.8999996185303},{"duration":755.6000003814697,"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":324,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":324,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1079.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":755.6999998092651,"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":324.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":324.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1080,"responseStart":0,"secureConnectionStart":0},{"duration":599.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":324.30000019073486,"connectEnd":324.30000019073486,"connectStart":324.30000019073486,"domainLookupEnd":324.30000019073486,"domainLookupStart":324.30000019073486,"fetchStart":324.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":324.30000019073486,"responseEnd":923.6000003814697,"responseStart":923.6000003814697,"secureConnectionStart":324.30000019073486},{"duration":599.5999994277954,"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":324.6000003814697,"connectEnd":324.6000003814697,"connectStart":324.6000003814697,"domainLookupEnd":324.6000003814697,"domainLookupStart":324.6000003814697,"fetchStart":324.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":324.6000003814697,"responseEnd":924.1999998092651,"responseStart":924.1999998092651,"secureConnectionStart":324.6000003814697},{"duration":1078.5,"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":325.3999996185303,"connectEnd":325.3999996185303,"connectStart":325.3999996185303,"domainLookupEnd":325.3999996185303,"domainLookupStart":325.3999996185303,"fetchStart":325.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":325.3999996185303,"responseEnd":1403.8999996185303,"responseStart":1403.8999996185303,"secureConnectionStart":325.3999996185303},{"duration":1079.9000005722046,"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":325.3999996185303,"connectEnd":325.3999996185303,"connectStart":325.3999996185303,"domainLookupEnd":325.3999996185303,"domainLookupStart":325.3999996185303,"fetchStart":325.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":325.3999996185303,"responseEnd":1405.3000001907349,"responseStart":1405.3000001907349,"secureConnectionStart":325.3999996185303},{"duration":263.8999996185303,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1134.8000001907349,"connectEnd":1134.8000001907349,"connectStart":1134.8000001907349,"domainLookupEnd":1134.8000001907349,"domainLookupStart":1134.8000001907349,"fetchStart":1134.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1134.8000001907349,"responseEnd":1398.6999998092651,"responseStart":1398.6999998092651,"secureConnectionStart":1134.8000001907349}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":133,"responseStart":305,"responseEnd":311,"domLoading":320,"domInteractive":1644,"domContentLoadedEventStart":1644,"domContentLoadedEventEnd":1698,"domComplete":2656,"loadEventStart":2656,"loadEventEnd":2657,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1615.8000001907349},{"name":"bigPipe.sidebar-id.end","time":1616.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1616.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":1619.3000001907349},{"name":"activityTabFullyLoaded","time":1707}],"measures":[],"correlationId":"b7d50b60b74f18","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":90,"dbReadsTimeInMs":9,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}