If put something like dbug_print_items in the beginning of JOIN::prepare it catches passing unusable conds.
One case was on second execution MDEV-14786 but there are other
Attachments
Issue Links
relates to
MDEV-14786Server crashes in Item_cond::transform on 2nd execution of SP querying from a view
create table t1 (i int, row_start timestamp(6) not null default now(),
row_end timestamp(6) not null default '2038-01-19 04:14:07.999999');
create view v1 as select i from t1 where i < 5 and (row_end =
TIMESTAMP'2030-01-01 0:0:0' or row_end is null);
create procedure pr(x int) select i from v1;
#set debug_dbug='d,where';
call pr(1);
call pr(2);
drop procedure pr;
drop view v1;
drop table t1;
Oleksandr Byelkin
added a comment -
create table t1 (i int, row_start timestamp(6) not null default now(),
row_end timestamp(6) not null default '2038-01-19 04:14:07.999999');
create view v1 as select i from t1 where i < 5 and (row_end =
TIMESTAMP'2030-01-01 0:0:0' or row_end is null);
create procedure pr(x int) select i from v1;
#set debug_dbug='d,where';
call pr(1);
call pr(2);
drop procedure pr;
drop view v1;
drop table t1;
MDEV-14786: Server crashes in Item_cond::transform on 2nd execution of SP querying from a view
MDEV-14957: JOIN::prepare gets unusable "conds" as argument
Do not touch merged derived (it is irreversible)
Fix first argument of in_optimizer for calls possible before fix_fields()
—
Oleksandr Byelkin
added a comment - github branch: bb-5.5- MDEV-14786
revision-id: 47bb2dcbcc8c3cdca43baf6259f2434a746c7b03 (mariadb-5.5.58-42-g47bb2dcbcc8)
parent(s): c0e964dcf1787a101f6e9c115751c0d02b0fac1b
author: Oleksandr Byelkin
committer: Oleksandr Byelkin
timestamp: 2018-01-21 23:48:32 +0100
message:
MDEV-14786 : Server crashes in Item_cond::transform on 2nd execution of SP querying from a view
MDEV-14957 : JOIN::prepare gets unusable "conds" as argument
Do not touch merged derived (it is irreversible)
Fix first argument of in_optimizer for calls possible before fix_fields()
—
People
Oleksandr Byelkin
Oleksandr Byelkin
Votes:
0Vote for this issue
Watchers:
3Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1684.9000000357628,"ttfb":761.8000000119209,"pageVisibility":"visible","entityId":65275,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"4568b695-58e5-4fd5-aa0c-09dce1adee73","navigationType":0,"readyForUser":1771.4000000357628,"redirectCount":0,"resourceLoadedEnd":1971.6000000238419,"resourceLoadedStart":767.1000000238419,"resourceTiming":[{"duration":453.10000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":767.1000000238419,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":767.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1220.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":453.0999999642372,"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":767.4000000357628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":767.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1220.5,"responseStart":0,"secureConnectionStart":0},{"duration":462.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":767.5,"connectEnd":767.5,"connectStart":767.5,"domainLookupEnd":767.5,"domainLookupStart":767.5,"fetchStart":767.5,"redirectEnd":0,"redirectStart":0,"requestStart":767.5,"responseEnd":1230,"responseStart":1230,"secureConnectionStart":767.5},{"duration":518.7999999523163,"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":767.7000000476837,"connectEnd":767.7000000476837,"connectStart":767.7000000476837,"domainLookupEnd":767.7000000476837,"domainLookupStart":767.7000000476837,"fetchStart":767.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":767.7000000476837,"responseEnd":1286.5,"responseStart":1286.4000000357628,"secureConnectionStart":767.7000000476837},{"duration":521.9000000357628,"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":768,"connectEnd":768,"connectStart":768,"domainLookupEnd":768,"domainLookupStart":768,"fetchStart":768,"redirectEnd":0,"redirectStart":0,"requestStart":768,"responseEnd":1289.9000000357628,"responseStart":1289.9000000357628,"secureConnectionStart":768},{"duration":522.3000000119209,"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":768.1000000238419,"connectEnd":768.1000000238419,"connectStart":768.1000000238419,"domainLookupEnd":768.1000000238419,"domainLookupStart":768.1000000238419,"fetchStart":768.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":768.1000000238419,"responseEnd":1290.4000000357628,"responseStart":1290.4000000357628,"secureConnectionStart":768.1000000238419},{"duration":522.8000000119209,"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":768.3000000119209,"connectEnd":768.3000000119209,"connectStart":768.3000000119209,"domainLookupEnd":768.3000000119209,"domainLookupStart":768.3000000119209,"fetchStart":768.3000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":768.3000000119209,"responseEnd":1291.1000000238419,"responseStart":1291.1000000238419,"secureConnectionStart":768.3000000119209},{"duration":604.5,"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":768.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":768.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1373,"responseStart":0,"secureConnectionStart":0},{"duration":523.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":768.7000000476837,"connectEnd":768.7000000476837,"connectStart":768.7000000476837,"domainLookupEnd":768.7000000476837,"domainLookupStart":768.7000000476837,"fetchStart":768.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":768.7000000476837,"responseEnd":1292,"responseStart":1292,"secureConnectionStart":768.7000000476837},{"duration":604.3000000119209,"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":768.8000000119209,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":768.8000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1373.1000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":523.8000000119209,"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":769,"connectEnd":769,"connectStart":769,"domainLookupEnd":769,"domainLookupStart":769,"fetchStart":769,"redirectEnd":0,"redirectStart":0,"requestStart":769,"responseEnd":1292.800000011921,"responseStart":1292.800000011921,"secureConnectionStart":769},{"duration":868.7999999523163,"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":774.7000000476837,"connectEnd":774.7000000476837,"connectStart":774.7000000476837,"domainLookupEnd":774.7000000476837,"domainLookupStart":774.7000000476837,"fetchStart":774.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":774.7000000476837,"responseEnd":1643.5,"responseStart":1643.5,"secureConnectionStart":774.7000000476837},{"duration":1196.199999988079,"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":775.4000000357628,"connectEnd":775.4000000357628,"connectStart":775.4000000357628,"domainLookupEnd":775.4000000357628,"domainLookupStart":775.4000000357628,"fetchStart":775.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":775.4000000357628,"responseEnd":1971.6000000238419,"responseStart":1971.6000000238419,"secureConnectionStart":775.4000000357628},{"duration":270.69999998807907,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1384.2000000476837,"connectEnd":1384.2000000476837,"connectStart":1384.2000000476837,"domainLookupEnd":1384.2000000476837,"domainLookupStart":1384.2000000476837,"fetchStart":1384.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1384.2000000476837,"responseEnd":1654.9000000357628,"responseStart":1654.9000000357628,"secureConnectionStart":1384.2000000476837}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":608,"responseStart":762,"responseEnd":775,"domLoading":766,"domInteractive":1995,"domContentLoadedEventStart":1995,"domContentLoadedEventEnd":2036,"domComplete":2609,"loadEventStart":2609,"loadEventEnd":2609,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1976.1000000238419},{"name":"bigPipe.sidebar-id.end","time":1976.9000000357628},{"name":"bigPipe.activity-panel-pipe-id.start","time":1977},{"name":"bigPipe.activity-panel-pipe-id.end","time":1978.5},{"name":"activityTabFullyLoaded","time":2048.900000035763}],"measures":[],"correlationId":"aaa70ce65444a8","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":95,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
create table t1 (i int, row_start timestamp(6) not null default now(),
row_end timestamp(6) not null default '2038-01-19 04:14:07.999999');
create view v1 as select i from t1 where i < 5 and (row_end =
TIMESTAMP'2030-01-01 0:0:0' or row_end is null);
create procedure pr(x int) select i from v1;
#set debug_dbug='d,where';
call pr(1);
call pr(2);
drop procedure pr;
drop view v1;
drop table t1;