SET sql_mode=STRICT_TRANS_TABLES;
|
|
CREATE TABLE t0 (i INT) ENGINE=MyISAM;
|
CREATE VIEW v1 AS SELECT * FROM t0;
|
CREATE VIEW v2 AS SELECT * FROM v1;
|
DROP VIEW IF EXISTS v1;
|
|
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
INSERT INTO t1 SELECT TABLE_ROWS FROM information_schema.tables ORDER BY TABLE_ROWS;
|
Stack trace from 5.5 revno 4433
|
5.5/sql/filesort.cc:335: ha_rows filesort(THD*, TABLE*, SORT_FIELD*, uint, SQL_SELECT*, ha_rows, bool, ha_rows*): Assertion `thd->is_error() || kill_errno || thd->killed == ABORT_QUERY' failed.
|
150214 0:42:17 [ERROR] mysqld got signal 6 ;
|
|
#6 0x00007f502895d311 in *__GI___assert_fail (assertion=0xe06a78 "thd->is_error() || kill_errno || thd->killed == ABORT_QUERY", file=<optimized out>, line=335, function=0xe075c0 "ha_rows filesort(THD*, TABLE*, SORT_FIELD*, uint, SQL_SELECT*, ha_rows, bool, ha_rows*)") at assert.c:81
|
#7 0x00000000007e3874 in filesort (thd=0x7f5024550060, table=0x7f5023569078, sortorder=0x7f502377ee68, s_length=1, select=0x7f502354e078, max_rows=18446744073709551615, sort_positions=false, examined_rows=0x7f5023fb49d8) at 5.5/sql/filesort.cc:335
|
#8 0x0000000000694ace in create_sort_index (thd=0x7f5024550060, join=0x7f5023534a58, order=0x7f5023688008, filesort_limit=18446744073709551615, select_limit=18446744073709551615, is_order_by=false) at 5.5/sql/sql_select.cc:19859
|
#9 0x000000000066ba7e in JOIN::exec (this=0x7f5023534a58) at 5.5/sql/sql_select.cc:2843
|
#10 0x000000000066c499 in mysql_select (thd=0x7f5024550060, rref_pointer_array=0x7f5024553cd0, tables=0x7f5023687918, wild_num=0, fields=..., conds=0x0, og_num=1, order=0x7f5023688008, group=0x0, having=0x0, proc_param=0x0, select_options=4026796800, result=0x7f5023688fa8, unit=0x7f5024553380, select_lex=0x7f5024553a60) at 5.5/sql/sql_select.cc:3094
|
#11 0x0000000000662f69 in handle_select (thd=0x7f5024550060, lex=0x7f50245532d0, result=0x7f5023688fa8, setup_tables_done_option=1073741824) at 5.5/sql/sql_select.cc:319
|
#12 0x000000000063735d in mysql_execute_command (thd=0x7f5024550060) at 5.5/sql/sql_parse.cc:3060
|
#13 0x000000000063ec8e in mysql_parse (thd=0x7f5024550060, rawbuf=0x7f5023687078 "INSERT INTO t1 SELECT TABLE_ROWS FROM information_schema.tables ORDER BY TABLE_ROWS", length=83, parser_state=0x7f5023fb5620) at 5.5/sql/sql_parse.cc:5909
|
#14 0x00000000006328d1 in dispatch_command (command=COM_QUERY, thd=0x7f5024550060, packet=0x7f5024607061 "INSERT INTO t1 SELECT TABLE_ROWS FROM information_schema.tables ORDER BY TABLE_ROWS", packet_length=83) at 5.5/sql/sql_parse.cc:1079
|
#15 0x0000000000631a5d in do_command (thd=0x7f5024550060) at 5.5/sql/sql_parse.cc:793
|
#16 0x00000000007340ea in do_handle_one_connection (thd_arg=0x7f5024550060) at 5.5/sql/sql_connect.cc:1266
|
#17 0x0000000000733ba9 in handle_one_connection (arg=0x7f5024550060) at 5.5/sql/sql_connect.cc:1181
|
#18 0x0000000000b6c2cd in pfs_spawn_thread (arg=0x7f5024571ca0) at 5.5/storage/perfschema/pfs.cc:1015
|
#19 0x00007f502a758b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
|
#20 0x00007f5028a0e70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
|
|
Query (0x7f5023687078): INSERT INTO t1 SELECT TABLE_ROWS FROM information_schema.tables ORDER BY TABLE_ROWS
|
Connection ID (thread ID): 2
|
Status: KILL_BAD_DATA
|
I'm marking it as upstream-fixed, because there was a similar assertion failure https://bugs.mysql.com/bug.php?id=74493 fixed in 5.7.5, and the test case above also crashes the server on 5.6 but not on 5.7.
- relates to
-
MDEV-18833
Assertion `thd->is_error() || kill_errno || thd->killed == ABORT_QUERY' failed in SORT_INFO* filesort
-
-
Confirmed
There are no comments yet on this issue.
{"report":{"fcp":1024,"ttfb":382.9000005722046,"pageVisibility":"visible","entityId":50041,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"931b5a4d-3d06-4692-9a26-73ed51d969cc","navigationType":0,"readyForUser":1107,"redirectCount":0,"resourceLoadedEnd":1014.8000001907349,"resourceLoadedStart":388.80000019073486,"resourceTiming":[{"duration":32.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":388.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":388.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":421,"responseStart":0,"secureConnectionStart":0},{"duration":32.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":389.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":389.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":421.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":97.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":389.30000019073486,"connectEnd":389.30000019073486,"connectStart":389.30000019073486,"domainLookupEnd":389.30000019073486,"domainLookupStart":389.30000019073486,"fetchStart":389.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":389.30000019073486,"responseEnd":487,"responseStart":487,"secureConnectionStart":389.30000019073486},{"duration":172.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":389.4000005722046,"connectEnd":389.4000005722046,"connectStart":389.4000005722046,"domainLookupEnd":389.4000005722046,"domainLookupStart":389.4000005722046,"fetchStart":389.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":389.4000005722046,"responseEnd":561.9000005722046,"responseStart":561.9000005722046,"secureConnectionStart":389.4000005722046},{"duration":176.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":389.70000076293945,"connectEnd":389.70000076293945,"connectStart":389.70000076293945,"domainLookupEnd":389.70000076293945,"domainLookupStart":389.70000076293945,"fetchStart":389.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":389.70000076293945,"responseEnd":566.2000007629395,"responseStart":566.2000007629395,"secureConnectionStart":389.70000076293945},{"duration":176.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":389.9000005722046,"connectEnd":389.9000005722046,"connectStart":389.9000005722046,"domainLookupEnd":389.9000005722046,"domainLookupStart":389.9000005722046,"fetchStart":389.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":389.9000005722046,"responseEnd":566.6000003814697,"responseStart":566.6000003814697,"secureConnectionStart":389.9000005722046},{"duration":177,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":390.1000003814697,"connectEnd":390.1000003814697,"connectStart":390.1000003814697,"domainLookupEnd":390.1000003814697,"domainLookupStart":390.1000003814697,"fetchStart":390.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":390.1000003814697,"responseEnd":567.1000003814697,"responseStart":567.1000003814697,"secureConnectionStart":390.1000003814697},{"duration":242.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":390.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":390.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":632.5,"responseStart":0,"secureConnectionStart":0},{"duration":177.39999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":390.4000005722046,"connectEnd":390.4000005722046,"connectStart":390.4000005722046,"domainLookupEnd":390.4000005722046,"domainLookupStart":390.4000005722046,"fetchStart":390.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":390.4000005722046,"responseEnd":567.8000001907349,"responseStart":567.8000001907349,"secureConnectionStart":390.4000005722046},{"duration":242.20000076293945,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":390.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":390.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":632.7000007629395,"responseStart":0,"secureConnectionStart":0},{"duration":177.79999923706055,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":390.70000076293945,"connectEnd":390.70000076293945,"connectStart":390.70000076293945,"domainLookupEnd":390.70000076293945,"domainLookupStart":390.70000076293945,"fetchStart":390.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":390.70000076293945,"responseEnd":568.5,"responseStart":568.5,"secureConnectionStart":390.70000076293945},{"duration":478.6000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":391.6000003814697,"connectEnd":391.6000003814697,"connectStart":391.6000003814697,"domainLookupEnd":391.6000003814697,"domainLookupStart":391.6000003814697,"fetchStart":391.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":391.6000003814697,"responseEnd":870.2000007629395,"responseStart":870.2000007629395,"secureConnectionStart":391.6000003814697},{"duration":558.7999992370605,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":391.70000076293945,"connectEnd":391.70000076293945,"connectStart":391.70000076293945,"domainLookupEnd":391.70000076293945,"domainLookupStart":391.70000076293945,"fetchStart":391.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":391.70000076293945,"responseEnd":950.5,"responseStart":950.5,"secureConnectionStart":391.70000076293945},{"duration":226.39999961853027,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":644.6000003814697,"connectEnd":644.6000003814697,"connectStart":644.6000003814697,"domainLookupEnd":644.6000003814697,"domainLookupStart":644.6000003814697,"fetchStart":644.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":644.6000003814697,"responseEnd":871,"responseStart":871,"secureConnectionStart":644.6000003814697},{"duration":105.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bv2/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":909,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":909,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1014.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":284.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/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":909.9000005722046,"connectEnd":909.9000005722046,"connectStart":909.9000005722046,"domainLookupEnd":909.9000005722046,"domainLookupStart":909.9000005722046,"fetchStart":909.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":909.9000005722046,"responseEnd":1194.8000001907349,"responseStart":1194.8000001907349,"secureConnectionStart":909.9000005722046},{"duration":292.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/53a43b6764f587426c7bb9a150184c00-CDN/lu2bv2/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":910.3000001907349,"connectEnd":910.3000001907349,"connectStart":910.3000001907349,"domainLookupEnd":910.3000001907349,"domainLookupStart":910.3000001907349,"fetchStart":910.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":910.3000001907349,"responseEnd":1202.8000001907349,"responseStart":1202.7000007629395,"secureConnectionStart":910.3000001907349}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":167,"responseStart":383,"responseEnd":385,"domLoading":386,"domInteractive":1172,"domContentLoadedEventStart":1172,"domContentLoadedEventEnd":1214,"domComplete":1795,"loadEventStart":1795,"loadEventEnd":1796,"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.2000007629395},{"name":"bigPipe.sidebar-id.end","time":1154.9000005722046},{"name":"bigPipe.activity-panel-pipe-id.start","time":1155.1000003814697},{"name":"bigPipe.activity-panel-pipe-id.end","time":1155.6000003814697},{"name":"activityTabFullyLoaded","time":1227.2000007629395}],"measures":[],"correlationId":"d49df51f0a153b","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":150,"dbReadsTimeInMs":65,"dbConnsTimeInMs":72,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}