CREATE TABLE t1 (a INT);
|
CREATE TABLE t2 (b INT);
|
CREATE VIEW v AS SELECT * FROM t1 JOIN t2;
|
--error ER_NO_SUCH_TABLE
|
INSERT INTO t1 SELECT * FROM x;
|
SELECT * FROM information_schema.tables;
|
|
# Cleanup
|
DROP VIEW v;
|
DROP TABLE t1, t2;
|
10.4 81f6a3b0
|
#3 <signal handler called>
|
#4 0x000056230487eecc in alloc_histograms_for_table_share (thd=0x7f1744000b00, table_share=0x7f174414c508, is_safe=false) at /data/src/10.4/sql/sql_statistics.cc:2446
|
#5 0x0000562304880a36 in read_histograms_for_table (thd=0x7f1744000b00, table=0x7f174414eae0, stat_tables=0x7f17540604e0) at /data/src/10.4/sql/sql_statistics.cc:3292
|
#6 0x0000562304880e8a in read_statistics_for_tables_if_needed (thd=0x7f1744000b00, tables=0x7f1744043c38) at /data/src/10.4/sql/sql_statistics.cc:3374
|
#7 0x0000562304865694 in fill_schema_table_by_open (thd=0x7f1744000b00, mem_root=0x7f1754063680, is_show_fields_or_keys=false, table=0x7f1744157e18, schema_table=0x562305e48080 <schema_tables+2048>, orig_db_name=0x7f1744133408, orig_table_name=0x7f1744133460, open_tables_state_backup=0x7f17540636d0, can_deadlock=false) at /data/src/10.4/sql/sql_show.cc:4645
|
#8 0x0000562304866fa9 in get_all_tables (thd=0x7f1744000b00, tables=0x7f1744015c60, cond=0x0) at /data/src/10.4/sql/sql_show.cc:5284
|
#9 0x000056230487803b in get_schema_tables_result (join=0x7f17440186c8, executed_place=PROCESSED_BY_JOIN_EXEC) at /data/src/10.4/sql/sql_show.cc:8878
|
#10 0x000056230480cf98 in JOIN::exec_inner (this=0x7f17440186c8) at /data/src/10.4/sql/sql_select.cc:4346
|
#11 0x000056230480c41e in JOIN::exec (this=0x7f17440186c8) at /data/src/10.4/sql/sql_select.cc:4171
|
#12 0x000056230480dad0 in mysql_select (thd=0x7f1744000b00, tables=0x7f1744015c60, wild_num=1, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2684619520, result=0x7f17440186a0, unit=0x7f1744004a28, select_lex=0x7f1744015688) at /data/src/10.4/sql/sql_select.cc:4603
|
#13 0x00005623047fe040 in handle_select (thd=0x7f1744000b00, lex=0x7f1744004960, result=0x7f17440186a0, setup_tables_done_option=0) at /data/src/10.4/sql/sql_select.cc:424
|
#14 0x00005623047c78d9 in execute_sqlcom_select (thd=0x7f1744000b00, all_tables=0x7f1744015c60) at /data/src/10.4/sql/sql_parse.cc:6597
|
#15 0x00005623047bceaf in mysql_execute_command (thd=0x7f1744000b00) at /data/src/10.4/sql/sql_parse.cc:3886
|
#16 0x00005623047cb65f in mysql_parse (thd=0x7f1744000b00, rawbuf=0x7f17440155d8 "SELECT * FROM information_schema.tables", length=39, parser_state=0x7f1754065180, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:8149
|
#17 0x00005623047b70b6 in dispatch_command (command=COM_QUERY, thd=0x7f1744000b00, packet=0x7f17441398f1 "SELECT * FROM information_schema.tables", packet_length=39, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1828
|
#18 0x00005623047b589c in do_command (thd=0x7f1744000b00) at /data/src/10.4/sql/sql_parse.cc:1361
|
#19 0x000056230492dcad in do_handle_one_connection (connect=0x562307a58530) at /data/src/10.4/sql/sql_connect.cc:1398
|
#20 0x000056230492da1e in handle_one_connection (arg=0x562307a58530) at /data/src/10.4/sql/sql_connect.cc:1301
|
#21 0x0000562304d52d9d in pfs_spawn_thread (arg=0x562307b5c060) at /data/src/10.4/storage/perfschema/pfs.cc:1862
|
#22 0x00007f175bf86494 in start_thread (arg=0x7f1754066700) at pthread_create.c:333
|
#23 0x00007f1759f4e93f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
All of debug, ASAN and non-debug builds are affected.
The problem appeared in 10.4 after this merge:
commit e6bdf77e4be48750c4808a09af197ed91fd69a61
|
Merge: 1599825 acf6f92
|
Author: Marko Mäkelä
|
Date: Thu Apr 25 16:05:20 2019 +0300
|
|
Merge 10.3 into 10.4
|
|
In is_eits_usable(), we disable an assertion that fails due to
|
MDEV-19334.
|
Note: Even though the problem appeared after the merge above, I can't reproduce it on 10.3 even with all 10.4-specific optimizer options I can think of:
perl ./mtr bug.2230 --mysqld=--optimizer-use-condition-selectivity=4 --mysqld=--use-stat-tables=PREFERABLY --mysqld=--histogram-size=254 --mysqld=--histogram-type=DOUBLE_PREC_HB
|
|
...
|
bug.2230 [ pass ] 114
|
--------------------------------------------------------------------------
|
The servers were restarted 0 times
|
Spent 0.114 of 9 seconds executing testcases
|
|
Completed: All 1 tests were successful.
|
{"report":{"fcp":765.2999999523163,"ttfb":151.70000004768372,"pageVisibility":"visible","entityId":75636,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"8ecccde7-98d3-4024-a184-a63fa50855fe","navigationType":0,"readyForUser":836.7000000476837,"redirectCount":0,"resourceLoadedEnd":890.7000000476837,"resourceLoadedStart":160.39999985694885,"resourceTiming":[{"duration":128,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":160.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":160.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":288.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":127.69999980926514,"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":160.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":160.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":288.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":137.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":160.89999985694885,"connectEnd":160.89999985694885,"connectStart":160.89999985694885,"domainLookupEnd":160.89999985694885,"domainLookupStart":160.89999985694885,"fetchStart":160.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":160.89999985694885,"responseEnd":298.7000000476837,"responseStart":298.7000000476837,"secureConnectionStart":160.89999985694885},{"duration":219.30000019073486,"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":161.39999985694885,"connectEnd":161.39999985694885,"connectStart":161.39999985694885,"domainLookupEnd":161.39999985694885,"domainLookupStart":161.39999985694885,"fetchStart":161.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":161.39999985694885,"responseEnd":380.7000000476837,"responseStart":380.7000000476837,"secureConnectionStart":161.39999985694885},{"duration":222.79999995231628,"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":161.5,"connectEnd":161.5,"connectStart":161.5,"domainLookupEnd":161.5,"domainLookupStart":161.5,"fetchStart":161.5,"redirectEnd":0,"redirectStart":0,"requestStart":161.5,"responseEnd":384.2999999523163,"responseStart":384.2999999523163,"secureConnectionStart":161.5},{"duration":223.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":161.59999990463257,"connectEnd":161.59999990463257,"connectStart":161.59999990463257,"domainLookupEnd":161.59999990463257,"domainLookupStart":161.59999990463257,"fetchStart":161.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":161.59999990463257,"responseEnd":385.09999990463257,"responseStart":385.09999990463257,"secureConnectionStart":161.59999990463257},{"duration":223.89999985694885,"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":161.70000004768372,"connectEnd":161.70000004768372,"connectStart":161.70000004768372,"domainLookupEnd":161.70000004768372,"domainLookupStart":161.70000004768372,"fetchStart":161.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":161.70000004768372,"responseEnd":385.59999990463257,"responseStart":385.59999990463257,"secureConnectionStart":161.70000004768372},{"duration":224.5,"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":161.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":161.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":386.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":224.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":161.79999995231628,"connectEnd":161.79999995231628,"connectStart":161.79999995231628,"domainLookupEnd":161.79999995231628,"domainLookupStart":161.79999995231628,"fetchStart":161.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":161.79999995231628,"responseEnd":386.2999999523163,"responseStart":386.2999999523163,"secureConnectionStart":161.79999995231628},{"duration":224.90000009536743,"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":161.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":161.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":386.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":224.90000009536743,"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":162.09999990463257,"connectEnd":162.09999990463257,"connectStart":162.09999990463257,"domainLookupEnd":162.09999990463257,"domainLookupStart":162.09999990463257,"fetchStart":162.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":162.09999990463257,"responseEnd":387,"responseStart":387,"secureConnectionStart":162.09999990463257},{"duration":402.90000009536743,"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":169.39999985694885,"connectEnd":169.39999985694885,"connectStart":169.39999985694885,"domainLookupEnd":169.39999985694885,"domainLookupStart":169.39999985694885,"fetchStart":169.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":169.39999985694885,"responseEnd":572.2999999523163,"responseStart":572.2999999523163,"secureConnectionStart":169.39999985694885},{"duration":543.5999999046326,"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":177,"connectEnd":177,"connectStart":177,"domainLookupEnd":177,"domainLookupStart":177,"fetchStart":177,"redirectEnd":0,"redirectStart":0,"requestStart":177,"responseEnd":720.5999999046326,"responseStart":720.5999999046326,"secureConnectionStart":177},{"duration":139.70000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":515.7999999523163,"connectEnd":515.7999999523163,"connectStart":515.7999999523163,"domainLookupEnd":515.7999999523163,"domainLookupStart":515.7999999523163,"fetchStart":515.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":515.7999999523163,"responseEnd":655.5,"responseStart":655.5,"secureConnectionStart":515.7999999523163},{"duration":145.59999990463257,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":741,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":741,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":886.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":140,"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":747.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":747.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":887.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":138.89999985694885,"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":748,"connectEnd":748,"connectStart":748,"domainLookupEnd":748,"domainLookupStart":748,"fetchStart":748,"redirectEnd":0,"redirectStart":0,"requestStart":748,"responseEnd":886.8999998569489,"responseStart":886.8999998569489,"secureConnectionStart":748},{"duration":142.30000019073486,"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":748.3999998569489,"connectEnd":748.3999998569489,"connectStart":748.3999998569489,"domainLookupEnd":748.3999998569489,"domainLookupStart":748.3999998569489,"fetchStart":748.3999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":748.3999998569489,"responseEnd":890.7000000476837,"responseStart":890.7000000476837,"secureConnectionStart":748.3999998569489}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":12,"responseStart":152,"responseEnd":177,"domLoading":155,"domInteractive":908,"domContentLoadedEventStart":908,"domContentLoadedEventEnd":954,"domComplete":1322,"loadEventStart":1322,"loadEventEnd":1322,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":875.7999999523163},{"name":"bigPipe.sidebar-id.end","time":876.3999998569489},{"name":"bigPipe.activity-panel-pipe-id.start","time":876.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":879.2999999523163},{"name":"activityTabFullyLoaded","time":975.7000000476837}],"measures":[],"correlationId":"315703b50142f3","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":75,"dbReadsTimeInMs":12,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
After Igor's fix for
MDEV-19351, this is reproducible on 10.3 even.This case should be reproducible on all versions starting from 10.1 . Looks like this would also solve the issue of
MDEV-19079