==2176== 216 bytes in 1 blocks are definitely lost in loss record 2 of 3
|
==2176== at 0x4C28F9F: malloc (vg_replace_malloc.c:236)
|
==2176== by 0xCDB465: my_malloc (my_malloc.c:41)
|
==2176== by 0x7CAD24: filesort(THD*, TABLE*, st_sort_field*, unsigned int, SQL_SELECT*, unsigned long long, bool, unsigned long long*) (filesort.cc:211)
|
==2176== by 0x66FAD1: create_sort_index(THD*, JOIN*, st_order*, unsigned long long, unsigned long long, bool) (sql_select.cc:19020)
|
==2176== by 0x6485B6: JOIN::exec() (sql_select.cc:2803)
|
==2176== by 0x86BD33: subselect_single_select_engine::exec() (item_subselect.cc:3205)
|
==2176== by 0x8648B5: Item_subselect::exec() (item_subselect.cc:644)
|
==2176== by 0x864DCF: Item_in_subselect::exec() (item_subselect.cc:817)
|
==2176== by 0x8671F6: Item_in_subselect::val_bool() (item_subselect.cc:1638)
|
==2176== by 0x575060: Item::val_bool_result() (item.h:963)
|
==2176== by 0x803D34: Item_in_optimizer::val_int() (item_cmpfunc.cc:1736)
|
==2176== by 0x829A70: eval_const_cond(Item*) (item_func.cc:80)
|
==2176== by 0x661A73: internal_remove_eq_conds(THD*, Item*, Item::cond_result*) (sql_select.cc:13442)
|
==2176== by 0x661DB7: remove_eq_conds(THD*, Item*, Item::cond_result*) (sql_select.cc:13534)
|
==2176== by 0x661440: optimize_cond(JOIN*, Item*, List<TABLE_LIST>*, Item::cond_result*, COND_EQUAL**) (sql_select.cc:13300)
|
==2176== by 0x641C8B: JOIN::optimize() (sql_select.cc:1067)
|
branch: maria/5.5
|
revision-id: sergii@pisem.net-20121127112615-l2mciflv2imoikhy
|
date: 2012-11-27 12:26:15 +0100
|
revno: 3587
|
Also reproducible on all maria/5.5 versions down to 5.5.21 at least.
Could not reproduce on maria/5.3, on current mysql/5.5 or mysql/5.6.
Reproducible with the default optimizer_switch as well as with all OFF values except for in_to_exists or materialization (one of which is required to execute the query).
Default optimizer_switch:
index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=off
|
EXPLAIN with the default optimizer_switch:
id select_type table type possible_keys key key_len ref rows filtered Extra
|
1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
|
2 SUBQUERY t2 system NULL NULL NULL NULL 1 100.00 Using filesort
|
2 SUBQUERY t1 ALL NULL NULL NULL NULL 2 100.00
|
Warnings:
|
Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where 1
|
Test case:
SET optimizer_switch = 'in_to_exists=on';
|
|
CREATE TABLE t1 (a INT) ENGINE=MyISAM;
|
INSERT INTO t1 VALUES (1),(9);
|
|
CREATE TABLE t2 (b INT) ENGINE=MyISAM;
|
INSERT INTO t2 VALUES (8);
|
|
SELECT * FROM t1
|
WHERE ( 1, 1 ) IN (
|
SELECT a, SUM( DISTINCT a )
|
FROM t1, t2
|
GROUP BY a
|
);
|
- relates to
-
MDEV-3902
Assertion `record_length == m_record_length' failed at Filesort_buffer::alloc_sort_buffer
-
-
Closed
{"report":{"fcp":694.9000000953674,"ttfb":164.20000004768372,"pageVisibility":"visible","entityId":22126,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"55d89a03-e22c-4de4-980d-b55a38d4c5fc","navigationType":0,"readyForUser":762,"redirectCount":0,"resourceLoadedEnd":781.2999999523163,"resourceLoadedStart":169.5,"resourceTiming":[{"duration":11.900000095367432,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":169.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":169.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":181.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":12,"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":169.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":169.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":181.79999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":70,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":169.90000009536743,"connectEnd":169.90000009536743,"connectStart":169.90000009536743,"domainLookupEnd":169.90000009536743,"domainLookupStart":169.90000009536743,"fetchStart":169.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":169.90000009536743,"responseEnd":239.90000009536743,"responseStart":239.90000009536743,"secureConnectionStart":169.90000009536743},{"duration":109.29999995231628,"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":170,"connectEnd":170,"connectStart":170,"domainLookupEnd":170,"domainLookupStart":170,"fetchStart":170,"redirectEnd":0,"redirectStart":0,"requestStart":170,"responseEnd":279.2999999523163,"responseStart":279.2999999523163,"secureConnectionStart":170},{"duration":112.5,"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":170.09999990463257,"connectEnd":170.09999990463257,"connectStart":170.09999990463257,"domainLookupEnd":170.09999990463257,"domainLookupStart":170.09999990463257,"fetchStart":170.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":170.09999990463257,"responseEnd":282.59999990463257,"responseStart":282.59999990463257,"secureConnectionStart":170.09999990463257},{"duration":113.10000014305115,"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":170.09999990463257,"connectEnd":170.09999990463257,"connectStart":170.09999990463257,"domainLookupEnd":170.09999990463257,"domainLookupStart":170.09999990463257,"fetchStart":170.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":170.09999990463257,"responseEnd":283.2000000476837,"responseStart":283.2000000476837,"secureConnectionStart":170.09999990463257},{"duration":113.10000014305115,"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":170.29999995231628,"connectEnd":170.29999995231628,"connectStart":170.29999995231628,"domainLookupEnd":170.29999995231628,"domainLookupStart":170.29999995231628,"fetchStart":170.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":170.29999995231628,"responseEnd":283.40000009536743,"responseStart":283.40000009536743,"secureConnectionStart":170.29999995231628},{"duration":113.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":170.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":170.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":283.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":113.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":170.5,"connectEnd":170.5,"connectStart":170.5,"domainLookupEnd":170.5,"domainLookupStart":170.5,"fetchStart":170.5,"redirectEnd":0,"redirectStart":0,"requestStart":170.5,"responseEnd":284,"responseStart":284,"secureConnectionStart":170.5},{"duration":113.80000019073486,"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":170.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":170.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":284.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":113.79999995231628,"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":170.79999995231628,"connectEnd":170.79999995231628,"connectStart":170.79999995231628,"domainLookupEnd":170.79999995231628,"domainLookupStart":170.79999995231628,"fetchStart":170.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":170.79999995231628,"responseEnd":284.59999990463257,"responseStart":284.59999990463257,"secureConnectionStart":170.79999995231628},{"duration":416.40000009536743,"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":171.29999995231628,"connectEnd":171.29999995231628,"connectStart":171.29999995231628,"domainLookupEnd":171.29999995231628,"domainLookupStart":171.29999995231628,"fetchStart":171.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":171.29999995231628,"responseEnd":587.7000000476837,"responseStart":587.7000000476837,"secureConnectionStart":171.29999995231628},{"duration":417,"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":171.5,"connectEnd":171.5,"connectStart":171.5,"domainLookupEnd":171.5,"domainLookupStart":171.5,"fetchStart":171.5,"redirectEnd":0,"redirectStart":0,"requestStart":171.5,"responseEnd":588.5,"responseStart":588.5,"secureConnectionStart":171.5},{"duration":115.20000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":451,"connectEnd":451,"connectStart":451,"domainLookupEnd":451,"domainLookupStart":451,"fetchStart":451,"redirectEnd":0,"redirectStart":0,"requestStart":451,"responseEnd":566.2000000476837,"responseStart":566.2000000476837,"secureConnectionStart":451},{"duration":135.59999990463257,"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":641,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":641,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":776.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":135.19999980926514,"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":641.9000000953674,"connectEnd":641.9000000953674,"connectStart":641.9000000953674,"domainLookupEnd":641.9000000953674,"domainLookupStart":641.9000000953674,"fetchStart":641.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":641.9000000953674,"responseEnd":777.0999999046326,"responseStart":777,"secureConnectionStart":641.9000000953674},{"duration":139,"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":642.2999999523163,"connectEnd":642.2999999523163,"connectStart":642.2999999523163,"domainLookupEnd":642.2999999523163,"domainLookupStart":642.2999999523163,"fetchStart":642.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":642.2999999523163,"responseEnd":781.2999999523163,"responseStart":781.2999999523163,"secureConnectionStart":642.2999999523163},{"duration":121.60000014305115,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":671.5999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":671.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":793.2000000476837,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":23,"responseStart":164,"responseEnd":168,"domLoading":167,"domInteractive":834,"domContentLoadedEventStart":834,"domContentLoadedEventEnd":877,"domComplete":1136,"loadEventStart":1136,"loadEventEnd":1136,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":802.9000000953674},{"name":"bigPipe.sidebar-id.end","time":803.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":803.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":804.7999999523163},{"name":"activityTabFullyLoaded","time":891.4000000953674}],"measures":[],"correlationId":"efe29a51b8858a","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":81,"dbReadsTimeInMs":12,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Assigned to Timour arbitrarily, because I could not detect a specific area or find the revision that introduced the problem. Please feel free to reassign.