Type:
Bug
Priority:
Blocker
Resolution:
Fixed
Affects Version/s:
None
Component/s:
None
The problem appeared on 5.3 tree with the following revision:
revno: 3721 [merge]
revision-id: igor@askmonty.org-20131113233112-nhm665c8kvmfmv0r
parent: bar@mnogosearch.org-20131113143412-nnf6q8io4mba06ym
parent: igor@askmonty.org-20131113224309-zu9s5acndpa8f1mf
committer: Igor Babaev <igor@askmonty.org>
branch nick: maria-5.3
timestamp: Wed 2013-11-13 15:31:12 -0800
message:
Merge
------------------------------------------------------------
revno: 3717.1.1
revision-id: igor@askmonty.org-20131113224309-zu9s5acndpa8f1mf
parent: sergii@pisem.net-20131112140225-77do23f20x8n45g3
committer: Igor Babaev <igor@askmonty.org>
branch nick: maria-5.3-mdev5091
timestamp: Wed 2013-11-13 14:43:09 -0800
message:
Fixed bug mdev-5091.
The function SELECT_LEX::update_used_tables should process all
ORDER BY lists in any subselect of a union.
mysqld: field.cc:3675: virtual String* Field_long::val_str(String*, String*): Assertion `!table || (!table->read_set || bitmap_is_set(table->read_set, field_index))' failed.
131114 13:51:09 [ERROR] mysqld got signal 6 ;
#6 0x00007f88641ac0ee in __assert_fail_base (fmt=<optimized out>, assertion=0xcb3c30 "!table || (!table->read_set || bitmap_is_set(table->read_set, field_index))", file=0xcb3b4f "field.cc", line=<optimized out>, function=<optimized out>) at assert.c:94
#7 0x00007f88641ac192 in __GI___assert_fail (assertion=0xcb3c30 "!table || (!table->read_set || bitmap_is_set(table->read_set, field_index))", file=0xcb3b4f "field.cc", line=3675, function=0xcb6940 "virtual String* Field_long::val_str(String*, String*)") at assert.c:103
#8 0x000000000063b68c in Field_long::val_str (this=0x7f884802e090, val_buffer=0x7f886302e320, val_ptr=0x7f88480364f8) at field.cc:3675
#9 0x00000000005825f5 in Item_field::val_str (this=0x7f88480364e0, str=0x7f886302e320) at item.cc:2363
#10 0x000000000057d596 in Item::print_value (this=0x7f88480364e0, str=0x7f886302e820) at item.cc:564
#11 0x000000000058c82c in Item_field::print (this=0x7f88480364e0, str=0x7f886302e820, query_type=QT_ORDINARY) at item.cc:6188
#12 0x000000000058dcfd in Item_ref::print (this=0x7f8848038268, str=0x7f886302e820, query_type=QT_ORDINARY) at item.cc:6695
#13 0x00000000005640c9 in st_select_lex::print_order (str=0x7f886302e820, order=0x7f88480199a8, query_type=QT_ORDINARY) at sql_lex.cc:2155
#14 0x0000000000742cae in st_select_lex::print (this=0x3ac6360, thd=0x3ac38c8, str=0x7f886302e820, query_type=QT_ORDINARY) at sql_select.cc:22714
#15 0x0000000000563e4e in st_select_lex_unit::print (this=0x3ac5e58, str=0x7f886302e820, query_type=QT_ORDINARY) at sql_lex.cc:2106
#16 0x0000000000693538 in execute_sqlcom_select (thd=0x3ac38c8, all_tables=0x7f8848019180) at sql_parse.cc:5157
#17 0x000000000068a446 in mysql_execute_command (thd=0x3ac38c8) at sql_parse.cc:2305
#18 0x0000000000696108 in mysql_parse (thd=0x3ac38c8, rawbuf=0x7f8848018f40 "EXPLAIN EXTENDED SELECT a FROM v1 WHERE a > 100 ORDER BY b", length=58, found_semicolon=0x7f886302f7e0) at sql_parse.cc:6173
#19 0x0000000000687b63 in dispatch_command (command=COM_QUERY, thd=0x3ac38c8, packet=0x3b3db29 "", packet_length=58) at sql_parse.cc:1243
#20 0x0000000000686dd4 in do_command (thd=0x3ac38c8) at sql_parse.cc:923
#21 0x0000000000683c6e in handle_one_connection (arg=0x3ac38c8) at sql_connect.cc:1231
#22 0x00007f8864d47e9a in start_thread (arg=0x7f8863030700) at pthread_create.c:308
#23 0x00007f8864270cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
Test case:
CREATE TABLE t1 (a INT , b INT ) ENGINE=MyISAM;
INSERT INTO t1 VALUES (4,1);
CREATE ALGORITHM=MERGE VIEW v1 AS SELECT * FROM t1;
EXPLAIN EXTENDED SELECT a FROM v1 WHERE a > 100 ORDER BY b;
Same happens with a subquery instead of the view.
Elena Stepanova
made changes -
2013-11-14 11:55
Field
Original Value
New Value
Link
This issue relates to TODO-60
[ TODO-60
]
Sergei Golubchik
made changes -
2013-11-14 22:34
Priority
Critical
[ 2
]
Blocker
[ 1
]
Sergei Golubchik
made changes -
2014-06-13 15:06
Workflow
defaullt
[ 29716
]
MariaDB v2
[ 44742
]
Sergei Golubchik
made changes -
2021-12-06 21:39
Workflow
MariaDB v3
[ 61918
]
MariaDB v4
[ 147228
]
{"report":{"fcp":966.1000000238419,"ttfb":318.5,"pageVisibility":"visible","entityId":26416,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"c082c2f2-3c4e-40b7-bc42-e32b50e00261","navigationType":0,"readyForUser":1042.6000000238419,"redirectCount":0,"resourceLoadedEnd":1115.5,"resourceLoadedStart":323.5,"resourceTiming":[{"duration":183,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":323.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":323.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":506.5,"responseStart":0,"secureConnectionStart":0},{"duration":183,"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":323.80000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":323.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":506.80000001192093,"responseStart":0,"secureConnectionStart":0},{"duration":192,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":323.9000000357628,"connectEnd":323.9000000357628,"connectStart":323.9000000357628,"domainLookupEnd":323.9000000357628,"domainLookupStart":323.9000000357628,"fetchStart":323.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":323.9000000357628,"responseEnd":515.9000000357628,"responseStart":515.9000000357628,"secureConnectionStart":323.9000000357628},{"duration":265.80000001192093,"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":324.10000002384186,"connectEnd":324.10000002384186,"connectStart":324.10000002384186,"domainLookupEnd":324.10000002384186,"domainLookupStart":324.10000002384186,"fetchStart":324.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":324.10000002384186,"responseEnd":589.9000000357628,"responseStart":589.9000000357628,"secureConnectionStart":324.10000002384186},{"duration":269.30000001192093,"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":324.30000001192093,"connectEnd":324.30000001192093,"connectStart":324.30000001192093,"domainLookupEnd":324.30000001192093,"domainLookupStart":324.30000001192093,"fetchStart":324.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":324.30000001192093,"responseEnd":593.6000000238419,"responseStart":593.6000000238419,"secureConnectionStart":324.30000001192093},{"duration":269.9000000357628,"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":324.5,"connectEnd":324.5,"connectStart":324.5,"domainLookupEnd":324.5,"domainLookupStart":324.5,"fetchStart":324.5,"redirectEnd":0,"redirectStart":0,"requestStart":324.5,"responseEnd":594.4000000357628,"responseStart":594.4000000357628,"secureConnectionStart":324.5},{"duration":270.2000000476837,"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":324.69999998807907,"connectEnd":324.69999998807907,"connectStart":324.69999998807907,"domainLookupEnd":324.69999998807907,"domainLookupStart":324.69999998807907,"fetchStart":324.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":324.69999998807907,"responseEnd":594.9000000357628,"responseStart":594.9000000357628,"secureConnectionStart":324.69999998807907},{"duration":332.10000002384186,"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":324.80000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":324.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":656.9000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":270.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":325,"connectEnd":325,"connectStart":325,"domainLookupEnd":325,"domainLookupStart":325,"fetchStart":325,"redirectEnd":0,"redirectStart":0,"requestStart":325,"responseEnd":595.6000000238419,"responseStart":595.6000000238419,"secureConnectionStart":325},{"duration":331.89999997615814,"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":325.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":325.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":657,"responseStart":0,"secureConnectionStart":0},{"duration":271.30000001192093,"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":325.19999998807907,"connectEnd":325.19999998807907,"connectStart":325.19999998807907,"domainLookupEnd":325.19999998807907,"domainLookupStart":325.19999998807907,"fetchStart":325.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":325.19999998807907,"responseEnd":596.5,"responseStart":596.5,"secureConnectionStart":325.19999998807907},{"duration":496.89999997615814,"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":330.60000002384186,"connectEnd":330.60000002384186,"connectStart":330.60000002384186,"domainLookupEnd":330.60000002384186,"domainLookupStart":330.60000002384186,"fetchStart":330.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":330.60000002384186,"responseEnd":827.5,"responseStart":827.5,"secureConnectionStart":330.60000002384186},{"duration":765.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":330.69999998807907,"connectEnd":330.69999998807907,"connectStart":330.69999998807907,"domainLookupEnd":330.69999998807907,"domainLookupStart":330.69999998807907,"fetchStart":330.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":330.69999998807907,"responseEnd":1095.9000000357628,"responseStart":1095.9000000357628,"secureConnectionStart":330.69999998807907},{"duration":143.89999997615814,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":684.3000000119209,"connectEnd":684.3000000119209,"connectStart":684.3000000119209,"domainLookupEnd":684.3000000119209,"domainLookupStart":684.3000000119209,"fetchStart":684.3000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":684.3000000119209,"responseEnd":828.1999999880791,"responseStart":828.1999999880791,"secureConnectionStart":684.3000000119209},{"duration":192.80000001192093,"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":922.6999999880791,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":922.6999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1115.5,"responseStart":0,"secureConnectionStart":0},{"duration":178.69999998807907,"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":923.5,"connectEnd":923.5,"connectStart":923.5,"domainLookupEnd":923.5,"domainLookupStart":923.5,"fetchStart":923.5,"redirectEnd":0,"redirectStart":0,"requestStart":923.5,"responseEnd":1102.199999988079,"responseStart":1102.199999988079,"secureConnectionStart":923.5},{"duration":184.69999998807907,"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":923.9000000357628,"connectEnd":923.9000000357628,"connectStart":923.9000000357628,"domainLookupEnd":923.9000000357628,"domainLookupStart":923.9000000357628,"fetchStart":923.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":923.9000000357628,"responseEnd":1108.6000000238419,"responseStart":1108.6000000238419,"secureConnectionStart":923.9000000357628},{"duration":164.89999997615814,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":959.9000000357628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":959.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1124.800000011921,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":144,"responseStart":319,"responseEnd":327,"domLoading":322,"domInteractive":1164,"domContentLoadedEventStart":1164,"domContentLoadedEventEnd":1207,"domComplete":1664,"loadEventStart":1664,"loadEventEnd":1665,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1128.6000000238419},{"name":"bigPipe.sidebar-id.end","time":1129.6000000238419},{"name":"bigPipe.activity-panel-pipe-id.start","time":1129.800000011921},{"name":"bigPipe.activity-panel-pipe-id.end","time":1132.1000000238419},{"name":"activityTabFullyLoaded","time":1223.5}],"measures":[],"correlationId":"24fe2b6e0de8ee","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":106,"dbReadsTimeInMs":17,"dbConnsTimeInMs":25,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
The fix for this bug was pushed into the 5.3 tree