INSERTINTO v0 ( v1 ) VALUES ( ( SELECT 1 FROM ( SELECT v1 FROM v0 GROUPBY v1 ) AS v6 NATURAL JOIN v0 AS v2 NATURAL JOIN v0 AS v4 NATURAL JOIN v0 AS v3 NATURAL JOIN ( SELECT v1 FROM v0 ) AS v7 ) ) ;
Will trigger Segmentation fault.
GDB info:
#0 0x00005555572f3e53 in optimize_keyuse (join=0x62900012e928, keyuse_array=0x62900012ec90)
at /home/wx/mariadb-11.3.0/sql/sql_select.cc:7667
#1 0x000055555793d67c in JOIN::add_keyuses_for_splitting (this=0x62900012e928) at /home/wx/mariadb-11.3.0/sql/opt_split.cc:847
#2 0x000055555793daee in st_join_table::add_keyuses_for_splitting (this=0x62d00000a4a8) at /home/wx/mariadb-11.3.0/sql/opt_split.cc:874
#3 0x00005555572e509c in make_join_statistics (join=0x62900012e228, tables_list=..., keyuse_array=0x62900012e590)
at /home/wx/mariadb-11.3.0/sql/sql_select.cc:6020
#4 0x00005555572c2c36 in JOIN::optimize_inner (this=0x62900012e228) at /home/wx/mariadb-11.3.0/sql/sql_select.cc:2624
#5 0x00005555572bbba6 in JOIN::optimize (this=0x62900012e228) at /home/wx/mariadb-11.3.0/sql/sql_select.cc:1944
#6 0x0000555557143851 in st_select_lex::optimize_unflattened_subqueries (this=0x6290000f5d80, const_only=false)
at /home/wx/mariadb-11.3.0/sql/sql_lex.cc:4916
#7 0x00005555570f2cc5 in mysql_insert (thd=0x62c0001d0288, table_list=0x6290000f5508, fields=..., values_list=..., update_fields=...,
update_values=..., duplic=DUP_ERROR, ignore=false, result=0x0) at /home/wx/mariadb-11.3.0/sql/sql_insert.cc:875
#8 0x00005555571c1ecb in mysql_execute_command (thd=0x62c0001d0288, is_called_from_prepared_stmt=false)
at /home/wx/mariadb-11.3.0/sql/sql_parse.cc:4417
#9 0x00005555571d95e2 in mysql_parse (thd=0x62c0001d0288,
rawbuf=0x6290000f52a8 "INSERT INTO v0 ( v1 ) VALUES ( ( SELECT 1 FROM ( SELECT v1 FROM v0 GROUP BY v1 ) AS v6 NATURAL JOIN v0 AS v2 NATURAL JOIN v0 AS v4 NATURAL JOIN v0 AS v3 NATURAL JOIN ( SELECT v1 FROM v0 ) AS v7 ) )", length=197, parser_state=0x7fffe33c0870)
at /home/wx/mariadb-11.3.0/sql/sql_parse.cc:7734
#10 0x00005555571b1237 in dispatch_command (command=COM_QUERY, thd=0x62c0001d0288,
packet=0x6290000eb289 "INSERT INTO v0 ( v1 ) VALUES ( ( SELECT 1 FROM ( SELECT v1 FROM v0 GROUP BY v1 ) AS v6 NATURAL JOIN v0 AS v2 NATURAL JOIN v0 AS v4 NATURAL JOIN v0 AS v3 NATURAL JOIN ( SELECT v1 FROM v0 ) AS v7 ) )", packet_length=197, blocking=true)
at /home/wx/mariadb-11.3.0/sql/sql_parse.cc:1893
#11 0x00005555571adf7c in do_command (thd=0x62c0001d0288, blocking=true) at /home/wx/mariadb-11.3.0/sql/sql_parse.cc:1406
#12 0x000055555768e557 in do_handle_one_connection (connect=0x61100004df08, put_in_cache=true)
at /home/wx/mariadb-11.3.0/sql/sql_connect.cc:1445
#13 0x000055555768deb4 in handle_one_connection (arg=0x61100004df08) at /home/wx/mariadb-11.3.0/sql/sql_connect.cc:1347
#14 0x00005555582fa350 in pfs_spawn_thread (arg=0x618000005108) at /home/wx/mariadb-11.3.0/storage/perfschema/pfs.cc:2201
#15 0x00007ffff7115609 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#16 0x00007ffff6ce8133 in clone () from /lib/x86_64-linux-gnu/libc.so.6
If we use table t2 similar to table t1 and with the same contents in the grouping derived table
CREATETABLE t2 ( i int, KEY (i) ) engine=innodb;
INSERTINTO t2 VALUES (1), (2);
INSERTINTO t1
SELECT a.i FROM (SELECT i FROM t2 GROUPBY i) a, (SELECT i FROM t1) c WHERE c.i = a.i;
we observe the same kind of crash.
If we add more rows to table t2 in the following way:
INSERTINTO t2 SELECT i FROM t2;
INSERTINTO t2 SELECT i+2 FROM t2;
INSERTINTO t2 SELECT i+4 FROM t2;
ANALYZE TABLE t2 PERSISTENT FORALL;
we have the same crash for both InnoDB and MyISAM engines.
Igor Babaev (Inactive)
added a comment - If we use table t2 similar to table t1 and with the same contents in the grouping derived table
CREATE TABLE t2 ( i int , KEY (i) ) engine=innodb;
INSERT INTO t2 VALUES (1), (2);
INSERT INTO t1
SELECT a.i FROM ( SELECT i FROM t2 GROUP BY i) a, ( SELECT i FROM t1) c WHERE c.i = a.i;
we observe the same kind of crash.
If we add more rows to table t2 in the following way:
INSERT INTO t2 SELECT i FROM t2;
INSERT INTO t2 SELECT i+2 FROM t2;
INSERT INTO t2 SELECT i+4 FROM t2;
ANALYZE TABLE t2 PERSISTENT FOR ALL ;
we have the same crash for both InnoDB and MyISAM engines.
If we introduce a new flag TABLE_LIST::is_forced_to_be_materialized used for derived tables and views with is set to TRUE when a mergeable derived table / view is forced to be materialized and utilize this flag in Item_direct_view_ref::used_tables() in the the following way:
MariaDB [test]> INSERT INTO t1 SELECT a.i FROM (SELECT i FROM t2 GROUP BY i) a, (SELECT i FROM t1) c WHERE c.i = a.i;ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id: 3
Current database: test
Query OK, 2 rows affected (0.018 sec)
Records: 2 Duplicates: 0 Warnings: 0
MariaDB [test]> SELECT * FROM t1;
+------+
| i |
+------+
| 1 |
| 1 |
| 2 |
| 2 |
+------+
4 rows in set (0.001 sec)
It can be checked that after this patch is applied all mtr tests from the main suite pass (with --ps-protocol and --view-protocol as well)
Igor Babaev (Inactive)
added a comment - - edited If we introduce a new flag TABLE_LIST::is_forced_to_be_materialized used for derived tables and views with is set to TRUE when a mergeable derived table / view is forced to be materialized and utilize this flag in Item_direct_view_ref::used_tables() in the the following way:
diff --git a/sql/item.cc b/sql/item.cc
index 9ba0094..3dd7ffe 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -10939,6 +10939,9 @@ table_map Item_direct_view_ref::used_tables() const
if (get_depended_from())
return OUTER_REF_TABLE_BIT;
+ if (view->is_forced_to_be_materialized)
+ return (*ref)->used_tables();
+
if (view->is_merged_derived() || view->merged || !view->table)
{
table_map used= (*ref)->used_tables();
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index 8738f18..9eb100a 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -1179,6 +1179,7 @@ TABLE_LIST* find_dup_table(THD *thd, TABLE_LIST *table, TABLE_LIST *table_list,
("convert merged to materialization to resolve the conflict"));
derived->change_refs_to_fields();
derived->set_materialized_derived();
+ derived->is_forced_to_be_materialized= true;
goto retry;
}
}
diff --git a/sql/table.h b/sql/table.h
index 6910ff0..79e789c 100644
--- a/sql/table.h
+++ b/sql/table.h
@@ -2611,6 +2611,8 @@ struct TABLE_LIST
bool merged;
bool merged_for_insert;
bool sequence; /* Part of NEXTVAL/CURVAL/LASTVAL */
+ /* TRUE <=> materialization of derived tbale / view has been forced */
+ bool is_forced_to_be_materialized;
/*
Items created by create_view_field and collected to change them in case
then we have the following results for both InnoDB and MyISAM engines:
MariaDB [test]> EXPLAIN EXTENDED INSERT INTO t1 SELECT a.i FROM (SELECT i FROM t2 GROUP BY i) a, (SELECT i FROM t1) c WHERE c.i = a.i;
+------+-----------------+------------+-------+---------------+------+---------+------+------+----------+-------------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
+------+-----------------+------------+-------+---------------+------+---------+------+------+----------+-------------+
| 1 | PRIMARY | <derived3> | ALL | NULL | NULL | NULL | NULL | 2 | 100.00 | Using where |
| 1 | PRIMARY | <derived2> | ref | key0 | key0 | 5 | c.i | 2 | 100.00 | |
| 3 | DERIVED | t1 | index | NULL | i | 5 | NULL | 2 | 100.00 | Using index |
| 2 | LATERAL DERIVED | t2 | ref | i | i | 5 | c.i | 2 | 56.25 | Using index |
+------+-----------------+------------+-------+---------------+------+---------+------+------+----------+-------------+
4 rows in set, 1 warning (0.008 sec)
MariaDB [test]> INSERT INTO t1 SELECT a.i FROM (SELECT i FROM t2 GROUP BY i) a, (SELECT i FROM t1) c WHERE c.i = a.i;ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id: 3
Current database: test
Query OK, 2 rows affected (0.018 sec)
Records: 2 Duplicates: 0 Warnings: 0
MariaDB [test]> SELECT * FROM t1;
+------+
| i |
+------+
| 1 |
| 1 |
| 2 |
| 2 |
+------+
4 rows in set (0.001 sec)
It can be checked that after this patch is applied all mtr tests from the main suite pass (with --ps-protocol and --view-protocol as well)
It's easy to see that forced materialization is required not only in the function find_dup_table(), but in other functions too. To cover other cases it makes sense to set the flag TABLE_LIST::is_forced_to_be_materialized to TRUE in the function TABLE_LIST::change_refs_to_fields():
bool sequence; /* Part of NEXTVAL/CURVAL/LASTVAL */
+ /* TRUE <=> materialization of derived tbale / view is to be forced */
+ bool is_forced_to_be_materialized;
/*
Items created by create_view_field and collected to change them in case
This patch doesn't break any mtr test from the main suite either and it fixes the bug.
Igor Babaev (Inactive)
added a comment - - edited It's easy to see that forced materialization is required not only in the function find_dup_table(), but in other functions too. To cover other cases it makes sense to set the flag TABLE_LIST::is_forced_to_be_materialized to TRUE in the function TABLE_LIST::change_refs_to_fields():
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -10939,6 +10939,9 @@ table_map Item_direct_view_ref::used_tables() const
if (get_depended_from())
return OUTER_REF_TABLE_BIT;
+ if (view->is_forced_to_be_materialized)
+ return (*ref)->used_tables();
+
if (view->is_merged_derived() || view->merged || !view->table)
{
table_map used= (*ref)->used_tables();
diff --git a/sql/table.cc b/sql/table.cc
index 74b478c..7d8eca1 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -9627,6 +9627,8 @@ bool TABLE_LIST::change_refs_to_fields()
(Item*)(materialized_items + idx));
}
+ is_forced_to_be_materialized= true;
+
return FALSE;
}
diff --git a/sql/table.h b/sql/table.h
index 6910ff0..454d40d 100644
--- a/sql/table.h
+++ b/sql/table.h
@@ -2611,6 +2611,8 @@ struct TABLE_LIST
bool merged;
bool merged_for_insert;
bool sequence; /* Part of NEXTVAL/CURVAL/LASTVAL */
+ /* TRUE <=> materialization of derived tbale / view is to be forced */
+ bool is_forced_to_be_materialized;
/*
Items created by create_view_field and collected to change them in case
This patch doesn't break any mtr test from the main suite either and it fixes the bug.
oleg.smirnov if you agree with my analysis and suggestions please construct a test case when forced materialization is used for a mergeable derived table whose specification is a join with more than 62 tables.
Igor Babaev (Inactive)
added a comment - oleg.smirnov if you agree with my analysis and suggestions please construct a test case when forced materialization is used for a mergeable derived table whose specification is a join with more than 62 tables.
People
Oleksandr Byelkin
Xin Wen
Votes:
1Vote for this issue
Watchers:
11Start watching this issue
Dates
Created:
Updated:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":972.1000000238419,"ttfb":243.80000001192093,"pageVisibility":"visible","entityId":127099,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"8bf35bd7-a7bb-4bf7-b754-0dd9c35d5932","navigationType":0,"readyForUser":1055.5,"redirectCount":0,"resourceLoadedEnd":1186.2000000476837,"resourceLoadedStart":252.20000004768372,"resourceTiming":[{"duration":259.19999998807907,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":252.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":252.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":511.4000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":256.10000002384186,"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":255.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":255.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":511.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":269.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":255.9000000357628,"connectEnd":255.9000000357628,"connectStart":255.9000000357628,"domainLookupEnd":255.9000000357628,"domainLookupStart":255.9000000357628,"fetchStart":255.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":255.9000000357628,"responseEnd":525.4000000357628,"responseStart":525.4000000357628,"secureConnectionStart":255.9000000357628},{"duration":359,"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":256.4000000357628,"connectEnd":256.4000000357628,"connectStart":256.4000000357628,"domainLookupEnd":256.4000000357628,"domainLookupStart":256.4000000357628,"fetchStart":256.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":256.4000000357628,"responseEnd":615.4000000357628,"responseStart":615.4000000357628,"secureConnectionStart":256.4000000357628},{"duration":362.5,"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":256.60000002384186,"connectEnd":256.60000002384186,"connectStart":256.60000002384186,"domainLookupEnd":256.60000002384186,"domainLookupStart":256.60000002384186,"fetchStart":256.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":256.60000002384186,"responseEnd":619.1000000238419,"responseStart":619.1000000238419,"secureConnectionStart":256.60000002384186},{"duration":363,"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":256.7000000476837,"connectEnd":256.7000000476837,"connectStart":256.7000000476837,"domainLookupEnd":256.7000000476837,"domainLookupStart":256.7000000476837,"fetchStart":256.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":256.7000000476837,"responseEnd":619.7000000476837,"responseStart":619.7000000476837,"secureConnectionStart":256.7000000476837},{"duration":363.19999998807907,"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":256.9000000357628,"connectEnd":256.9000000357628,"connectStart":256.9000000357628,"domainLookupEnd":256.9000000357628,"domainLookupStart":256.9000000357628,"fetchStart":256.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":256.9000000357628,"responseEnd":620.1000000238419,"responseStart":620.1000000238419,"secureConnectionStart":256.9000000357628},{"duration":407.80000001192093,"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":257.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":257.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":664.9000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":363.30000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":257.30000001192093,"connectEnd":257.30000001192093,"connectStart":257.30000001192093,"domainLookupEnd":257.30000001192093,"domainLookupStart":257.30000001192093,"fetchStart":257.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":257.30000001192093,"responseEnd":620.6000000238419,"responseStart":620.6000000238419,"secureConnectionStart":257.30000001192093},{"duration":407.5999999642372,"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":257.4000000357628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":257.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":665,"responseStart":0,"secureConnectionStart":0},{"duration":363.80000001192093,"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":257.5,"connectEnd":257.5,"connectStart":257.5,"domainLookupEnd":257.5,"domainLookupStart":257.5,"fetchStart":257.5,"redirectEnd":0,"redirectStart":0,"requestStart":257.5,"responseEnd":621.3000000119209,"responseStart":621.3000000119209,"secureConnectionStart":257.5},{"duration":775.5,"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":284.2000000476837,"connectEnd":284.2000000476837,"connectStart":284.2000000476837,"domainLookupEnd":284.2000000476837,"domainLookupStart":284.2000000476837,"fetchStart":284.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":284.2000000476837,"responseEnd":1059.7000000476837,"responseStart":1059.7000000476837,"secureConnectionStart":284.2000000476837},{"duration":709.2999999523163,"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":351.2000000476837,"connectEnd":351.2000000476837,"connectStart":351.2000000476837,"domainLookupEnd":351.2000000476837,"domainLookupStart":351.2000000476837,"fetchStart":351.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":351.2000000476837,"responseEnd":1060.5,"responseStart":1060.5,"secureConnectionStart":351.2000000476837},{"duration":271,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":676.2000000476837,"connectEnd":676.2000000476837,"connectStart":676.2000000476837,"domainLookupEnd":676.2000000476837,"domainLookupStart":676.2000000476837,"fetchStart":676.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":676.2000000476837,"responseEnd":947.2000000476837,"responseStart":947.2000000476837,"secureConnectionStart":676.2000000476837},{"duration":183.4000000357628,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":965.3000000119209,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":965.3000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1148.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":199.30000001192093,"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":986.6000000238419,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":986.6000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1185.9000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":199,"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":987.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":987.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1186.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":176.89999997615814,"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":987.9000000357628,"connectEnd":987.9000000357628,"connectStart":987.9000000357628,"domainLookupEnd":987.9000000357628,"domainLookupStart":987.9000000357628,"fetchStart":987.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":987.9000000357628,"responseEnd":1164.800000011921,"responseStart":1164.800000011921,"secureConnectionStart":987.9000000357628},{"duration":213,"initiatorType":"script","name":"https://jira.mariadb.org/s/f51ef5507eea4c158f257c66c93b2a3f-CDN/lu2bu7/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/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.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":988.4000000357628,"connectEnd":988.4000000357628,"connectStart":988.4000000357628,"domainLookupEnd":988.4000000357628,"domainLookupStart":988.4000000357628,"fetchStart":988.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":988.4000000357628,"responseEnd":1201.4000000357628,"responseStart":1201.4000000357628,"secureConnectionStart":988.4000000357628},{"duration":232.19999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/86ee9bbc76cd1bcd8556fcdcf46241c9-CDN/lu2bu7/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/js/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.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":988.9000000357628,"connectEnd":988.9000000357628,"connectStart":988.9000000357628,"domainLookupEnd":988.9000000357628,"domainLookupStart":988.9000000357628,"fetchStart":988.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":1202.6000000238419,"responseEnd":1221.1000000238419,"responseStart":1214.6000000238419,"secureConnectionStart":988.9000000357628}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":45,"responseStart":244,"responseEnd":351,"domLoading":247,"domInteractive":1200,"domContentLoadedEventStart":1200,"domContentLoadedEventEnd":1251,"domComplete":1831,"loadEventStart":1831,"loadEventEnd":1832,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1154},{"name":"bigPipe.sidebar-id.end","time":1154.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1154.9000000357628},{"name":"bigPipe.activity-panel-pipe-id.end","time":1161.300000011921},{"name":"activityTabFullyLoaded","time":1269.2000000476837}],"measures":[],"correlationId":"49dc704a1a30cd","effectiveType":"4g","downlink":9.3,"rtt":0,"serverDuration":122,"dbReadsTimeInMs":14,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
If we use table t2 similar to table t1 and with the same contents in the grouping derived table
we observe the same kind of crash.
If we add more rows to table t2 in the following way:
we have the same crash for both InnoDB and MyISAM engines.