It might be the same as MDEV-5415 and MDEV-5416, but the stack trace is different again. It needs to be re-checked after MDEV-5415 is fixed.
Preliminary test case:
SET optimizer_use_condition_selectivity=3;
|
EXPLAIN SELECT * FROM (INFORMATION_SCHEMA . `INNODB_SYS_FOREIGN` AS table1 RIGHT JOIN INFORMATION_SCHEMA . `CHARACTER_SETS` AS table2 ON ( table2 . `MAXLEN` = table1 . `ID` ) ) WHERE ( ( ( ( ( (NOT ( table2 . `MAXLEN` <= 0 OR table1 . `ID` >= table1 . `FOR_NAME`) AND table2 . `MAXLEN` > table1 . `ID`) AND table1 . `TYPE` = 'pd') AND table2 . `DEFAULT_COLLATE_NAME` <= '2005-03-16 18:54:07.006888') AND table1 . `TYPE` > '2004-02-10 22:26:51.061720') AND table2 . `MAXLEN` = table2 . `DESCRIPTION`) AND table2 . `DESCRIPTION` != table1 . `ID`) LIMIT 2;
|
If it's run via MTR, should be run as
perl ./mtr bug.t1 --mysqld=--plugin-innodb-sys-foreign
|
#3 <signal handler called>
|
#4 0x0000000000eeced9 in thr_multi_unlock (data=0x7fa6e4c132c8, count=1, unlock_flags=0) at 10.0/mysys/thr_lock.c:1300
|
#5 0x00000000009264a8 in mysql_unlock_tables (thd=0x7fa6e7b3d070, sql_lock=0x7fa6e4c132b0, free_lock=true) at 10.0/sql/lock.cc:384
|
#6 0x0000000000926520 in mysql_unlock_some_tables (thd=0x7fa6e7b3d070, table=0x7fa6e4dedc88, count=1) at 10.0/sql/lock.cc:400
|
#7 0x0000000000699268 in JOIN::optimize_inner (this=0x7fa6e4f3ba30) at 10.0/sql/sql_select.cc:1375
|
#8 0x0000000000697dcc in JOIN::optimize (this=0x7fa6e4f3ba30) at 10.0/sql/sql_select.cc:1012
|
#9 0x000000000069f9a5 in mysql_select (thd=0x7fa6e7b3d070, rref_pointer_array=0x7fa6e7b41688, tables=0x7fa6e4f55d58, wild_num=1, fields=..., conds=0x7fa6e4f37f68, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2684619524, result=0x7fa6e4f3b370, unit=0x7fa6e7b40d38, select_lex=0x7fa6e7b41418) at 10.0/sql/sql_select.cc:3278
|
#10 0x00000000006d1999 in mysql_explain_union (thd=0x7fa6e7b3d070, unit=0x7fa6e7b40d38, result=0x7fa6e4f3b370) at 10.0/sql/sql_select.cc:23545
|
#11 0x000000000066b402 in execute_sqlcom_select (thd=0x7fa6e7b3d070, all_tables=0x7fa6e4f55d58) at 10.0/sql/sql_parse.cc:5184
|
#12 0x0000000000663ab8 in mysql_execute_command (thd=0x7fa6e7b3d070) at 10.0/sql/sql_parse.cc:2552
|
#13 0x000000000066dd78 in mysql_parse (thd=0x7fa6e7b3d070, rawbuf=0x7fa6e4f55088 "EXPLAIN SELECT * FROM (INFORMATION_SCHEMA . `INNODB_SYS_FOREIGN` AS table1 RIGHT JOIN INFORMATION_SCHEMA . `CHARACTER_SETS` AS table2 ON ( table2 . `MAXLEN` = table1 . `ID` ) ) WHERE ( ( ( ( ( (NO"..., length=558, parser_state=0x7fa6ef39b630) at 10.0/sql/sql_parse.cc:6365
|
#14 0x0000000000660cba in dispatch_command (command=COM_QUERY, thd=0x7fa6e7b3d070, packet=0x7fa6e6fe2071 "", packet_length=559) at 10.0/sql/sql_parse.cc:1296
|
#15 0x000000000066005c in do_command (thd=0x7fa6e7b3d070) at 10.0/sql/sql_parse.cc:993
|
#16 0x0000000000777fb9 in do_handle_one_connection (thd_arg=0x7fa6e7b3d070) at 10.0/sql/sql_connect.cc:1379
|
#17 0x0000000000777d0c in handle_one_connection (arg=0x7fa6e7b3d070) at 10.0/sql/sql_connect.cc:1293
|
#18 0x0000000000a987cd in pfs_spawn_thread (arg=0x7fa6e6e3cdf0) at 10.0/storage/perfschema/pfs.cc:1853
|
#19 0x00007fa6ef0e8b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
|
#20 0x00007fa6edc37a7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
|
#21 0x0000000000000000 in ?? ()
|
revision-id: bar@mnogosearch.org-20131206150255-und2j89f85by7imn
|
revno: 3915
|
branch-nick: 10.0
|
- is blocked by
-
MDEV-5415
Server crashes in SEL_ARG::store_max on select from an I_S table with optimizer_use_condition_selectivity > 2
-
-
Closed
{"report":{"fcp":1547.6999998092651,"ttfb":347.69999980926514,"pageVisibility":"visible","entityId":27703,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"0c8b6ddb-4543-4551-acfb-966b973d27b8","navigationType":0,"readyForUser":1670.8000001907349,"redirectCount":0,"resourceLoadedEnd":1752.4000005722046,"resourceLoadedStart":354.69999980926514,"resourceTiming":[{"duration":616.4000005722046,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":354.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":354.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":971.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":616.6000003814697,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":355,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":355,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":971.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":669.2000007629395,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":355.19999980926514,"connectEnd":355.19999980926514,"connectStart":355.19999980926514,"domainLookupEnd":355.19999980926514,"domainLookupStart":355.19999980926514,"fetchStart":355.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":355.19999980926514,"responseEnd":1024.4000005722046,"responseStart":1024.4000005722046,"secureConnectionStart":355.19999980926514},{"duration":720.1999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":355.4000005722046,"connectEnd":355.4000005722046,"connectStart":355.4000005722046,"domainLookupEnd":355.4000005722046,"domainLookupStart":355.4000005722046,"fetchStart":355.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":355.4000005722046,"responseEnd":1075.6000003814697,"responseStart":1075.6000003814697,"secureConnectionStart":355.4000005722046},{"duration":724.1999998092651,"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":355.6000003814697,"connectEnd":355.6000003814697,"connectStart":355.6000003814697,"domainLookupEnd":355.6000003814697,"domainLookupStart":355.6000003814697,"fetchStart":355.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":355.6000003814697,"responseEnd":1079.8000001907349,"responseStart":1079.8000001907349,"secureConnectionStart":355.6000003814697},{"duration":724.5,"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":355.80000019073486,"connectEnd":355.80000019073486,"connectStart":355.80000019073486,"domainLookupEnd":355.80000019073486,"domainLookupStart":355.80000019073486,"fetchStart":355.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":355.80000019073486,"responseEnd":1080.3000001907349,"responseStart":1080.3000001907349,"secureConnectionStart":355.80000019073486},{"duration":724.6999998092651,"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":356,"connectEnd":356,"connectStart":356,"domainLookupEnd":356,"domainLookupStart":356,"fetchStart":356,"redirectEnd":0,"redirectStart":0,"requestStart":356,"responseEnd":1080.6999998092651,"responseStart":1080.6999998092651,"secureConnectionStart":356},{"duration":811.5999994277954,"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":356.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":356.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1167.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":725.6000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":356.30000019073486,"connectEnd":356.30000019073486,"connectStart":356.30000019073486,"domainLookupEnd":356.30000019073486,"domainLookupStart":356.30000019073486,"fetchStart":356.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":356.30000019073486,"responseEnd":1081.9000005722046,"responseStart":1081.9000005722046,"secureConnectionStart":356.30000019073486},{"duration":811.3000001907349,"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":356.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":356.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1167.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":725.8999996185303,"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":356.6000003814697,"connectEnd":356.6000003814697,"connectStart":356.6000003814697,"domainLookupEnd":356.6000003814697,"domainLookupStart":356.6000003814697,"fetchStart":356.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":356.6000003814697,"responseEnd":1082.5,"responseStart":1082.5,"secureConnectionStart":356.6000003814697},{"duration":1004.3000001907349,"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":364.80000019073486,"connectEnd":364.80000019073486,"connectStart":364.80000019073486,"domainLookupEnd":364.80000019073486,"domainLookupStart":364.80000019073486,"fetchStart":364.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":364.80000019073486,"responseEnd":1369.1000003814697,"responseStart":1369.1000003814697,"secureConnectionStart":364.80000019073486},{"duration":1370.5,"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":364.9000005722046,"connectEnd":364.9000005722046,"connectStart":364.9000005722046,"domainLookupEnd":364.9000005722046,"domainLookupStart":364.9000005722046,"fetchStart":364.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":364.9000005722046,"responseEnd":1735.4000005722046,"responseStart":1735.4000005722046,"secureConnectionStart":364.9000005722046},{"duration":190,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1181,"connectEnd":1181,"connectStart":1181,"domainLookupEnd":1181,"domainLookupStart":1181,"fetchStart":1181,"redirectEnd":0,"redirectStart":0,"requestStart":1181,"responseEnd":1371,"responseStart":1371,"secureConnectionStart":1181},{"duration":280.70000076293945,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/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":1471.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1471.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1752.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":332.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/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":1472.9000005722046,"connectEnd":1472.9000005722046,"connectStart":1472.9000005722046,"domainLookupEnd":1472.9000005722046,"domainLookupStart":1472.9000005722046,"fetchStart":1472.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":1472.9000005722046,"responseEnd":1805.6000003814697,"responseStart":1805.6000003814697,"secureConnectionStart":1472.9000005722046},{"duration":336.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/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":1473.3000001907349,"connectEnd":1473.3000001907349,"connectStart":1473.3000001907349,"domainLookupEnd":1473.3000001907349,"domainLookupStart":1473.3000001907349,"fetchStart":1473.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1473.3000001907349,"responseEnd":1810,"responseStart":1810,"secureConnectionStart":1473.3000001907349}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":182,"responseStart":347,"responseEnd":355,"domLoading":352,"domInteractive":1762,"domContentLoadedEventStart":1762,"domContentLoadedEventEnd":1808,"domComplete":2255,"loadEventStart":2256,"loadEventEnd":2256,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1737.8000001907349},{"name":"bigPipe.sidebar-id.end","time":1740.4000005722046},{"name":"bigPipe.activity-panel-pipe-id.start","time":1740.6000003814697},{"name":"bigPipe.activity-panel-pipe-id.end","time":1741.5},{"name":"activityTabFullyLoaded","time":1835.8000001907349}],"measures":[],"correlationId":"374662475fb3e9","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":100,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Can't reproduce, possibly the included preliminary test case was erroneous.