Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
10.3.17 , 10.3.23 , 10.2(EOL) , 10.3(EOL) , 10.4(EOL) , 10.5
This should be fixed in these version as per the MDEV-17024
But it is not. Latest MariaDB 10.3.23 version still crashing due it.
Here is the same test case.
CREATE TABLE t1 ( YEAR int(4), d1 date , d2 date) ;
INSERT INTO t1 VALUES (2018,'2018-01-01','2018-09-20');
CREATE TABLE t2 (id int, tm date);
INSERT INTO t2 VALUES (1,'2018-08-30'),(2,'2018-08-30'),(3,'2018-08-30');
CREATE TABLE t3 (id int, tm date);
INSERT INTO t3 VALUES (1,'2018-08-30'),(2,'2018-08-30');
WITH RECURSIVE
cte AS
(SELECT YEAR(t1.d1) AS YEAR, t1.d1 AS st, t1.d1 + INTERVAL 1 MONTH AS fn FROM t1
UNION ALL
SELECT YEAR(cte.st + INTERVAL 1 MONTH), cte.st + INTERVAL 1 MONTH, t1.d2 + INTERVAL 1 DAY
FROM cte JOIN t1
WHERE cte.st + INTERVAL 1 MONTH < t1.d2 ),
cte2 AS (SELECT YEAR, COUNT(*)
FROM cte JOIN t2 ON t2.tm BETWEEN cte.st AND cte.fn),
cte3 AS (SELECT YEAR, COUNT(*)
FROM cte JOIN t3 ON t3.tm BETWEEN cte.st AND cte.fn)
SELECT 1 FROM t1 JOIN cte2 USING (YEAR) JOIN cte3 USING (YEAR);
2020-05-29 12:02:06 0 [Note] /home/nilnandan/Downloads/10.3.23/bin/mysqld: ready for connections.
Version: '10.3.23-MariaDB' socket: '/tmp/mysql_sandbox10323.sock' port: 10323 MariaDB Server
pure virtual method called
terminate called without an active exception
200529 12:03:51 [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.3.23-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 = 467423 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x7fb7fc000c08
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 = 0x7fb864de7e90 thread_stack 0x49000
/home/nilnandan/Downloads/10.3.23/bin/mysqld(my_print_stacktrace+0x2e)[0x55c4e919bade]
mysys/stacktrace.c:270(my_print_stacktrace)[0x55c4e8bf4caf]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7fb869edb890]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7fb868ba9e97]
linux/raise.c:51(__GI_raise)[0x7fb868bab801]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x8c957)[0x7fb869386957]
/home/nilnandan/Downloads/10.3.23/bin/mysqld(_ZN10__cxxabiv111__terminateEPFvvE+0x6)[0x55c4e92532f6]
libsupc++/eh_terminate.cc:42(__cxxabiv1::__terminate(void (*)()))[0x55c4e9253323]
/home/nilnandan/Downloads/10.3.23/bin/mysqld(+0xe2015f)[0x55c4e921b15f]
/home/nilnandan/Downloads/10.3.23/bin/mysqld(_ZN7handler22ha_rnd_init_with_errorEb+0x17)[0x55c4e8bfb5a7]
sql/handler.h:3104(handler::ha_rnd_init_with_error(bool))[0x55c4e8acfaab]
sql/table.cc:8191(TABLE::insert_all_rows_into_tmp_table(THD*, TABLE*, TMP_TABLE_PARAM*, bool))[0x55c4e89e31bb]
sql/sql_derived.cc:1142(mysql_derived_fill(THD*, LEX*, TABLE_LIST*))[0x55c4e89e2cbc]
sql/sql_derived.cc:199(mysql_handle_single_derived(LEX*, TABLE_LIST*, unsigned int))[0x55c4e8a4e859]
sql/sql_select.cc:12825(st_join_table::preread_init())[0x55c4e8a4ec18]
sql/sql_select.cc:19649(sub_select(JOIN*, st_join_table*, bool))[0x55c4e8a7176b]
sql/sql_select.cc:19222(do_select)[0x55c4e8a71983]
sql/sql_select.cc:3897(JOIN::exec())[0x55c4e8a6fe9a]
sql/sql_select.cc:4303(mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x55c4e89e2fa9]
sql/sql_derived.cc:1113(mysql_derived_fill(THD*, LEX*, TABLE_LIST*))[0x55c4e89e2cbc]
sql/sql_derived.cc:199(mysql_handle_single_derived(LEX*, TABLE_LIST*, unsigned int))[0x55c4e8a4e859]
sql/sql_select.cc:12825(st_join_table::preread_init())[0x55c4e8a4ec18]
sql/sql_select.cc:19649(sub_select(JOIN*, st_join_table*, bool))[0x55c4e8a43dbc]
sql/sql_class.h:3884(evaluate_join_record(JOIN*, st_join_table*, int))[0x55c4e8a4ea9e]
sql/sql_select.cc:19689(sub_select(JOIN*, st_join_table*, bool))[0x55c4e8a43dbc]
sql/sql_class.h:3884(evaluate_join_record(JOIN*, st_join_table*, int))[0x55c4e8a4ea9e]
sql/sql_select.cc:19689(sub_select(JOIN*, st_join_table*, bool))[0x55c4e8a7176b]
sql/sql_select.cc:19222(do_select)[0x55c4e8a71983]
sql/sql_select.cc:3897(JOIN::exec())[0x55c4e8a6fe9a]
sql/sql_select.cc:4303(mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x55c4e8a7099c]
sql/sql_select.cc:382(handle_select(THD*, LEX*, select_result*, unsigned long))[0x55c4e892570f]
sql/sql_parse.cc:6294(execute_sqlcom_select(THD*, TABLE_LIST*))[0x55c4e8a1850b]
sql/sql_parse.cc:3820(mysql_execute_command(THD*))[0x55c4e8a1ed62]
sql/sql_parse.cc:7817(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x55c4e8a205cf]
sql/sql_parse.cc:1919(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x55c4e8a221ab]
sql/sql_parse.cc:1404(do_command(THD*))[0x55c4e8af6c56]
sql/sql_connect.cc:1403(do_handle_one_connection(CONNECT*))[0x55c4e8af6d6d]
nptl/pthread_create.c:463(start_thread)[0x7fb869ed06db]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x7fb868c8c88f]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x7fb7fc00f610): WITH RECURSIVE cte AS (SELECT YEAR(t1.d1) AS YEAR, t1.d1 AS st, t1.d1 + INTERVAL 1 MONTH AS fn FROM t1 UNION ALL SELECT YEAR(cte.st + INTERVAL 1 MONTH), cte.st + INTERVAL 1 MONTH, t1.d2 + INTERVAL 1 DAY FROM cte JOIN t1 WHERE cte.st + INTERVAL 1 MONTH < t1.d2 ), cte2 AS (SELECT YEAR, COUNT(*) FROM cte JOIN t2 ON t2.tm BETWEEN cte.st AND cte.fn), cte3 AS (SELECT YEAR, COUNT(*) FROM cte JOIN t3 ON t3.tm BETWEEN cte.st AND cte.fn) SELECT 1 FROM t1 JOIN cte2 USING (YEAR) JOIN cte3 USING (YEAR)
Connection ID (thread ID): 10
Status: NOT_KILLED
{"report":{"fcp":682.6999999284744,"ttfb":184.89999997615814,"pageVisibility":"visible","entityId":87588,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"b2a1e6d8-d1ae-461b-a203-b90483128fa4","navigationType":0,"readyForUser":774.2999999523163,"redirectCount":0,"resourceLoadedEnd":826.8999999761581,"resourceLoadedStart":190.89999997615814,"resourceTiming":[{"duration":32.60000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":190.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":190.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":223.5,"responseStart":0,"secureConnectionStart":0},{"duration":32.60000002384186,"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":191.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":191.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":223.89999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":89.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":191.5,"connectEnd":191.5,"connectStart":191.5,"domainLookupEnd":191.5,"domainLookupStart":191.5,"fetchStart":191.5,"redirectEnd":0,"redirectStart":0,"requestStart":191.5,"responseEnd":281.10000002384186,"responseStart":281.10000002384186,"secureConnectionStart":191.5},{"duration":178.19999992847443,"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":191.60000002384186,"connectEnd":191.60000002384186,"connectStart":191.60000002384186,"domainLookupEnd":191.60000002384186,"domainLookupStart":191.60000002384186,"fetchStart":191.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":191.60000002384186,"responseEnd":369.7999999523163,"responseStart":369.7999999523163,"secureConnectionStart":191.60000002384186},{"duration":182,"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":191.69999992847443,"connectEnd":191.69999992847443,"connectStart":191.69999992847443,"domainLookupEnd":191.69999992847443,"domainLookupStart":191.69999992847443,"fetchStart":191.69999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":191.69999992847443,"responseEnd":373.6999999284744,"responseStart":373.6999999284744,"secureConnectionStart":191.69999992847443},{"duration":182.5,"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":191.69999992847443,"connectEnd":191.69999992847443,"connectStart":191.69999992847443,"domainLookupEnd":191.69999992847443,"domainLookupStart":191.69999992847443,"fetchStart":191.69999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":191.69999992847443,"responseEnd":374.1999999284744,"responseStart":374.1999999284744,"secureConnectionStart":191.69999992847443},{"duration":182.80000007152557,"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":191.79999995231628,"connectEnd":191.79999995231628,"connectStart":191.79999995231628,"domainLookupEnd":191.79999995231628,"domainLookupStart":191.79999995231628,"fetchStart":191.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":191.79999995231628,"responseEnd":374.60000002384186,"responseStart":374.60000002384186,"secureConnectionStart":191.79999995231628},{"duration":183.29999995231628,"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":191.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":191.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":375.1999999284744,"responseStart":0,"secureConnectionStart":0},{"duration":183,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":192.10000002384186,"connectEnd":192.10000002384186,"connectStart":192.10000002384186,"domainLookupEnd":192.10000002384186,"domainLookupStart":192.10000002384186,"fetchStart":192.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":192.10000002384186,"responseEnd":375.10000002384186,"responseStart":375.10000002384186,"secureConnectionStart":192.10000002384186},{"duration":183.30000007152557,"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":192.19999992847443,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":192.19999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":375.5,"responseStart":0,"secureConnectionStart":0},{"duration":183.20000004768372,"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":192.39999997615814,"connectEnd":192.39999997615814,"connectStart":192.39999997615814,"domainLookupEnd":192.39999997615814,"domainLookupStart":192.39999997615814,"fetchStart":192.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":192.39999997615814,"responseEnd":375.60000002384186,"responseStart":375.60000002384186,"secureConnectionStart":192.39999997615814},{"duration":565.3999999761581,"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":192.89999997615814,"connectEnd":192.89999997615814,"connectStart":192.89999997615814,"domainLookupEnd":192.89999997615814,"domainLookupStart":192.89999997615814,"fetchStart":192.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":192.89999997615814,"responseEnd":758.2999999523163,"responseStart":758.2999999523163,"secureConnectionStart":192.89999997615814},{"duration":566.8999999761581,"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":193.10000002384186,"connectEnd":193.10000002384186,"connectStart":193.10000002384186,"domainLookupEnd":193.10000002384186,"domainLookupStart":193.10000002384186,"fetchStart":193.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":193.10000002384186,"responseEnd":760,"responseStart":760,"secureConnectionStart":193.10000002384186},{"duration":320.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":437.6999999284744,"connectEnd":437.6999999284744,"connectStart":437.6999999284744,"domainLookupEnd":437.6999999284744,"domainLookupStart":437.6999999284744,"fetchStart":437.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":437.6999999284744,"responseEnd":758.6000000238419,"responseStart":758.6000000238419,"secureConnectionStart":437.6999999284744},{"duration":97,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":675.6000000238419,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":675.6000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":772.6000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":4.600000023841858,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":822.2999999523163,"connectEnd":822.2999999523163,"connectStart":822.2999999523163,"domainLookupEnd":822.2999999523163,"domainLookupStart":822.2999999523163,"fetchStart":822.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":822.2999999523163,"responseEnd":826.8999999761581,"responseStart":826.8999999761581,"secureConnectionStart":822.2999999523163}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":31,"responseStart":185,"responseEnd":188,"domLoading":188,"domInteractive":900,"domContentLoadedEventStart":900,"domContentLoadedEventEnd":949,"domComplete":1882,"loadEventStart":1882,"loadEventEnd":1882,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":876.2999999523163},{"name":"bigPipe.sidebar-id.end","time":877},{"name":"bigPipe.activity-panel-pipe-id.start","time":877.1999999284744},{"name":"bigPipe.activity-panel-pipe-id.end","time":879.5},{"name":"activityTabFullyLoaded","time":961.8999999761581}],"measures":[],"correlationId":"1c526bf31ebddf","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":89,"dbReadsTimeInMs":18,"dbConnsTimeInMs":28,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}