--source include/have_innodb.inc
|
|
CREATE TABLE t1 (f1 VARCHAR(8), KEY(f1)) ENGINE=InnoDB;
|
INSERT INTO t1 VALUES ('foo');
|
CREATE TABLE t2 (f2 VARCHAR(8)) ENGINE=InnoDB;
|
INSERT INTO t2 VALUES ('bar'),('qux');
|
|
SELECT f1 FROM t1 WHERE f1 IN ( SELECT f2 FROM t2 WHERE f2 > 'bar' ) HAVING f1 != 'foo' ORDER BY f1;
|
5.5 7e9716310261bce124585cbffd85f3402390ec9d
|
#3 <signal handler called>
|
#4 0x00000000008b0586 in SQL_SELECT::test_quick_select (this=0x7fda569360f0, thd=0x7fda5caba060, keys_to_use=..., prev_tables=0, limit=18446744073709551615, force_quick_range=true, ordered_output=false) at /data/src/5.5/sql/opt_range.cc:2981
|
#5 0x000000000065e8b8 in test_if_skip_sort_order (tab=0x7fda569338f8, order=0x7fda5692f4e8, select_limit=1, no_changes=false, map=0x7fda569e54e8) at /data/src/5.5/sql/sql_select.cc:19584
|
#6 0x000000000065f38c in create_sort_index (thd=0x7fda5caba060, join=0x7fda5692f5f0, order=0x7fda5692f4e8, filesort_limit=18446744073709551615, select_limit=18446744073709551615, is_order_by=false) at /data/src/5.5/sql/sql_select.cc:19903
|
#7 0x0000000000636103 in JOIN::exec (this=0x7fda5692f5f0) at /data/src/5.5/sql/sql_select.cc:2848
|
#8 0x0000000000636afa in mysql_select (thd=0x7fda5caba060, rref_pointer_array=0x7fda5cabdcf0, tables=0x7fda56991310, wild_num=0, fields=..., conds=0x7fda56992ec8, og_num=1, order=0x7fda5692f4e8, group=0x0, having=0x7fda5692f268, proc_param=0x0, select_options=2147748608, result=0x7fda5692f5d0, unit=0x7fda5cabd388, select_lex=0x7fda5cabda68) at /data/src/5.5/sql/sql_select.cc:3099
|
#9 0x000000000062d352 in handle_select (thd=0x7fda5caba060, lex=0x7fda5cabd2d8, result=0x7fda5692f5d0, setup_tables_done_option=0) at /data/src/5.5/sql/sql_select.cc:319
|
#10 0x00000000006067b3 in execute_sqlcom_select (thd=0x7fda5caba060, all_tables=0x7fda56991310) at /data/src/5.5/sql/sql_parse.cc:4686
|
#11 0x00000000005ffb26 in mysql_execute_command (thd=0x7fda5caba060) at /data/src/5.5/sql/sql_parse.cc:2234
|
#12 0x000000000060937e in mysql_parse (thd=0x7fda5caba060, rawbuf=0x7fda56991078 "SELECT f1 FROM t1 WHERE f1 IN ( SELECT f2 FROM t2 WHERE f2 > 'bar' ) HAVING f1 != 'foo' ORDER BY f1", length=99, parser_state=0x7fda67bf0650) at /data/src/5.5/sql/sql_parse.cc:5931
|
#13 0x00000000005fd0b5 in dispatch_command (command=COM_QUERY, thd=0x7fda5caba060, packet=0x7fda603bf061 "SELECT f1 FROM t1 WHERE f1 IN ( SELECT f2 FROM t2 WHERE f2 > 'bar' ) HAVING f1 != 'foo' ORDER BY f1", packet_length=99) at /data/src/5.5/sql/sql_parse.cc:1079
|
#14 0x00000000005fc26f in do_command (thd=0x7fda5caba060) at /data/src/5.5/sql/sql_parse.cc:793
|
#15 0x00000000006fe99b in do_handle_one_connection (thd_arg=0x7fda5caba060) at /data/src/5.5/sql/sql_connect.cc:1268
|
#16 0x00000000006fe728 in handle_one_connection (arg=0x7fda5caba060) at /data/src/5.5/sql/sql_connect.cc:1184
|
#17 0x0000000000a0bb79 in pfs_spawn_thread (arg=0x7fda603ba980) at /data/src/5.5/storage/perfschema/pfs.cc:1015
|
#18 0x00007fda6782d494 in start_thread (arg=0x7fda67bf1700) at pthread_create.c:333
|
#19 0x00007fda6624393f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
10.1 13a350ac29eeb43153c7bca65b73b5dfa9f8ffb5
|
#3 <signal handler called>
|
#4 0x00007fa81b0ad782 in TABLE::stat_records (this=0xa5a5a5a5a5a5a5a5) at /data/src/10.1/sql/table.h:1449
|
#5 0x00007fa81b3887f6 in SQL_SELECT::test_quick_select (this=0x7fa8029b6818, thd=0x7fa80f788070, keys_to_use=..., prev_tables=0, limit=18446744073709551615, force_quick_range=true, ordered_output=false, remove_false_parts_of_where=false) at /data/src/10.1/sql/opt_range.cc:2412
|
#6 0x00007fa81b09f8ad in test_if_skip_sort_order (tab=0x7fa8029b4088, order=0x7fa802845468, select_limit=1, no_changes=false, map=0x7fa802881d08) at /data/src/10.1/sql/sql_select.cc:21104
|
#7 0x00007fa81b0a041f in create_sort_index (thd=0x7fa80f788070, join=0x7fa8028455b8, order=0x7fa802845468, filesort_limit=18446744073709551615, select_limit=18446744073709551615, is_order_by=true) at /data/src/10.1/sql/sql_select.cc:21434
|
#8 0x00007fa81b073255 in JOIN::exec_inner (this=0x7fa8028455b8) at /data/src/10.1/sql/sql_select.cc:3191
|
#9 0x00007fa81b070717 in JOIN::exec (this=0x7fa8028455b8) at /data/src/10.1/sql/sql_select.cc:2511
|
#10 0x00007fa81b073c95 in mysql_select (thd=0x7fa80f788070, rref_pointer_array=0x7fa80f78c430, tables=0x7fa802843308, wild_num=0, fields=..., conds=0x7fa802844e98, og_num=1, order=0x7fa802845468, group=0x0, having=0x7fa802845218, proc_param=0x0, select_options=2147748608, result=0x7fa802845598, unit=0x7fa80f78bab8, select_lex=0x7fa80f78c1b8) at /data/src/10.1/sql/sql_select.cc:3445
|
#11 0x00007fa81b0696ee in handle_select (thd=0x7fa80f788070, lex=0x7fa80f78b9f0, result=0x7fa802845598, setup_tables_done_option=0) at /data/src/10.1/sql/sql_select.cc:384
|
#12 0x00007fa81b0395f3 in execute_sqlcom_select (thd=0x7fa80f788070, all_tables=0x7fa802843308) at /data/src/10.1/sql/sql_parse.cc:5922
|
#13 0x00007fa81b02faef in mysql_execute_command (thd=0x7fa80f788070) at /data/src/10.1/sql/sql_parse.cc:2979
|
#14 0x00007fa81b03cd11 in mysql_parse (thd=0x7fa80f788070, rawbuf=0x7fa802843088 "SELECT f1 FROM t1 WHERE f1 IN ( SELECT f2 FROM t2 WHERE f2 > 'bar' ) HAVING f1 != 'foo' ORDER BY f1", length=99, parser_state=0x7fa81bf395e0) at /data/src/10.1/sql/sql_parse.cc:7339
|
#15 0x00007fa81b02bcfe in dispatch_command (command=COM_QUERY, thd=0x7fa80f788070, packet=0x7fa80f6b6071 "SELECT f1 FROM t1 WHERE f1 IN ( SELECT f2 FROM t2 WHERE f2 > 'bar' ) HAVING f1 != 'foo' ORDER BY f1", packet_length=99) at /data/src/10.1/sql/sql_parse.cc:1490
|
#16 0x00007fa81b02aa5d in do_command (thd=0x7fa80f788070) at /data/src/10.1/sql/sql_parse.cc:1109
|
#17 0x00007fa81b161c0f in do_handle_one_connection (thd_arg=0x7fa80f788070) at /data/src/10.1/sql/sql_connect.cc:1349
|
#18 0x00007fa81b161973 in handle_one_connection (arg=0x7fa80f788070) at /data/src/10.1/sql/sql_connect.cc:1261
|
#19 0x00007fa81b517e98 in pfs_spawn_thread (arg=0x7fa80f69ed70) at /data/src/10.1/storage/perfschema/pfs.cc:1860
|
#20 0x00007fa81a724494 in start_thread (arg=0x7fa81bf3ab00) at pthread_create.c:333
|
#21 0x00007fa81886f93f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
Also reproducible on older versions of 5.5, 10.0. 10.1, debug and release builds.
As of now, this particular test case does not cause a crash on 10.2.
{"report":{"fcp":1163.0999999046326,"ttfb":143.09999990463257,"pageVisibility":"visible","entityId":61448,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"20b9aeb3-427b-4707-b3af-81673222410f","navigationType":0,"readyForUser":1245.2999999523163,"redirectCount":0,"resourceLoadedEnd":1151.4000000953674,"resourceLoadedStart":149.20000004768372,"resourceTiming":[{"duration":145.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":149.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":149.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":294.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":145.29999995231628,"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":149.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":149.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":294.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":154,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":149.59999990463257,"connectEnd":149.59999990463257,"connectStart":149.59999990463257,"domainLookupEnd":149.59999990463257,"domainLookupStart":149.59999990463257,"fetchStart":149.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":149.59999990463257,"responseEnd":303.59999990463257,"responseStart":303.59999990463257,"secureConnectionStart":149.59999990463257},{"duration":651.0999999046326,"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":149.70000004768372,"connectEnd":149.70000004768372,"connectStart":149.70000004768372,"domainLookupEnd":149.70000004768372,"domainLookupStart":149.70000004768372,"fetchStart":149.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":149.70000004768372,"responseEnd":800.7999999523163,"responseStart":800.7999999523163,"secureConnectionStart":149.70000004768372},{"duration":654.4000000953674,"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":149.79999995231628,"connectEnd":149.79999995231628,"connectStart":149.79999995231628,"domainLookupEnd":149.79999995231628,"domainLookupStart":149.79999995231628,"fetchStart":149.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":149.79999995231628,"responseEnd":804.2000000476837,"responseStart":804.2000000476837,"secureConnectionStart":149.79999995231628},{"duration":655,"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":149.90000009536743,"connectEnd":149.90000009536743,"connectStart":149.90000009536743,"domainLookupEnd":149.90000009536743,"domainLookupStart":149.90000009536743,"fetchStart":149.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":149.90000009536743,"responseEnd":804.9000000953674,"responseStart":804.9000000953674,"secureConnectionStart":149.90000009536743},{"duration":655.3999998569489,"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":149.90000009536743,"connectEnd":149.90000009536743,"connectStart":149.90000009536743,"domainLookupEnd":149.90000009536743,"domainLookupStart":149.90000009536743,"fetchStart":149.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":149.90000009536743,"responseEnd":805.2999999523163,"responseStart":805.2999999523163,"secureConnectionStart":149.90000009536743},{"duration":655.8000001907349,"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":150.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":150.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":805.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":655.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":150.09999990463257,"connectEnd":150.09999990463257,"connectStart":150.09999990463257,"domainLookupEnd":150.09999990463257,"domainLookupStart":150.09999990463257,"fetchStart":150.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":150.09999990463257,"responseEnd":805.9000000953674,"responseStart":805.9000000953674,"secureConnectionStart":150.09999990463257},{"duration":656,"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":150.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":150.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":806.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":656,"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":150.40000009536743,"connectEnd":150.40000009536743,"connectStart":150.40000009536743,"domainLookupEnd":150.40000009536743,"domainLookupStart":150.40000009536743,"fetchStart":150.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":150.40000009536743,"responseEnd":806.4000000953674,"responseStart":806.4000000953674,"secureConnectionStart":150.40000009536743},{"duration":815.7000000476837,"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":151,"connectEnd":151,"connectStart":151,"domainLookupEnd":151,"domainLookupStart":151,"fetchStart":151,"redirectEnd":0,"redirectStart":0,"requestStart":151,"responseEnd":966.7000000476837,"responseStart":966.7000000476837,"secureConnectionStart":151},{"duration":966.2000000476837,"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":151,"connectEnd":151,"connectStart":151,"domainLookupEnd":151,"domainLookupStart":151,"fetchStart":151,"redirectEnd":0,"redirectStart":0,"requestStart":151,"responseEnd":1117.2000000476837,"responseStart":1117.2000000476837,"secureConnectionStart":151},{"duration":480,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":454.2000000476837,"connectEnd":454.2000000476837,"connectStart":454.2000000476837,"domainLookupEnd":454.2000000476837,"domainLookupStart":454.2000000476837,"fetchStart":454.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":454.2000000476837,"responseEnd":934.2000000476837,"responseStart":934.2000000476837,"secureConnectionStart":454.2000000476837},{"duration":84.20000004768372,"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":1067.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1067.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1151.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":256.7000000476837,"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":1068.0999999046326,"connectEnd":1068.0999999046326,"connectStart":1068.0999999046326,"domainLookupEnd":1068.0999999046326,"domainLookupStart":1068.0999999046326,"fetchStart":1068.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1068.0999999046326,"responseEnd":1324.7999999523163,"responseStart":1324.7999999523163,"secureConnectionStart":1068.0999999046326},{"duration":264.09999990463257,"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":1068.5,"connectEnd":1068.5,"connectStart":1068.5,"domainLookupEnd":1068.5,"domainLookupStart":1068.5,"fetchStart":1068.5,"redirectEnd":0,"redirectStart":0,"requestStart":1068.5,"responseEnd":1332.5999999046326,"responseStart":1332.5999999046326,"secureConnectionStart":1068.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":11,"responseStart":143,"responseEnd":146,"domLoading":147,"domInteractive":1305,"domContentLoadedEventStart":1305,"domContentLoadedEventEnd":1351,"domComplete":1542,"loadEventStart":1542,"loadEventEnd":1542,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1285.5},{"name":"bigPipe.sidebar-id.end","time":1286.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":1286.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1287.2999999523163},{"name":"activityTabFullyLoaded","time":1367.5999999046326}],"measures":[],"correlationId":"5f01726bc37043","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":71,"dbReadsTimeInMs":9,"dbConnsTimeInMs":15,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
The fix for this bug was pushed into the 5.5 tree.