Attention: the warning appears on a release build, e.g. the one that we provide in release bintar, or built with BUILD/compile-pentium-max; but not reproducible with a debug build or valgrind build (at least on my machine)!
To reproduce, it's enough to run a test from the standard MTR suite, e.g.
perl mysql-test-run.pl main.1st --valgrind-mysqld
|
==30728== Thread 4:
|
==30728== Conditional jump or move depends on uninitialised value(s)
|
==30728== at 0x6E2414: Item_equal::fix_fields(THD*, Item**) (item_cmpfunc.cc:5982)
|
==30728== by 0x5D7350: build_equal_items_for_cond(THD*, Item*, COND_EQUAL*, bool) (sql_select.cc:12199)
|
==30728== by 0x5D7A9B: build_equal_items(JOIN*, Item*, COND_EQUAL*, List<TABLE_LIST>*, bool, COND_EQUAL**, bool) (sql_select.cc:12331)
|
==30728== by 0x5D7C49: optimize_cond(JOIN*, Item*, List<TABLE_LIST>*, bool, Item::cond_result*, COND_EQUAL**, int) (sql_select.cc:13875)
|
==30728== by 0x5D8040: JOIN::optimize_inner() (sql_select.cc:1162)
|
==30728== by 0x5DB220: JOIN::optimize() (sql_select.cc:1003)
|
==30728== by 0x5DD9EA: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3207)
|
==30728== by 0x5DE6FC: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:371)
|
==30728== by 0x58C468: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5043)
|
==30728== by 0x5927AB: mysql_execute_command(THD*) (sql_parse.cc:2483)
|
==30728== by 0x7A58DD: sp_instr_stmt::exec_core(THD*, unsigned int*) (sp_head.cc:3189)
|
==30728== by 0x7AB4FD: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*) (sp_head.cc:2983)
|
==30728== by 0x7AB993: sp_instr_stmt::execute(THD*, unsigned int*) (sp_head.cc:3121)
|
==30728== by 0x7A856F: sp_head::execute(THD*, bool) (sp_head.cc:1427)
|
==30728== by 0x7A9A26: sp_head::execute_procedure(THD*, List<Item>*) (sp_head.cc:2184)
|
==30728== by 0x594DAC: mysql_execute_command(THD*) (sql_parse.cc:4480)
|
revision-id: sergii@pisem.net-20130610064025-makoe3xkewwwky8j
|
revno: 3761
|
branch-nick: 10.0-rel
|
BUILD/compile-pentium-max
|
5951:bool Item_equal::fix_fields(THD *thd, Item **ref)
|
5952:{
|
5953: DBUG_ASSERT(fixed == 0);
|
5954: Item_equal_fields_iterator it(*this);
|
5955: Item *item;
|
5956: Field *first_equal_field;
|
5957: Field *last_equal_field;
|
5958: Field *prev_equal_field= NULL;
|
5959: not_null_tables_cache= used_tables_cache= 0;
|
5960: const_item_cache= 0;
|
5961: while ((item= it++))
|
5962: {
|
5963: table_map tmp_table_map;
|
5964: used_tables_cache|= item->used_tables();
|
5965: tmp_table_map= item->not_null_tables();
|
5966: not_null_tables_cache|= tmp_table_map;
|
5967: DBUG_ASSERT(!item->with_sum_func && !item->with_subselect);
|
5968: if (item->maybe_null)
|
5969: maybe_null= 1;
|
5970: if (!item->get_item_equal())
|
5971: item->set_item_equal(this);
|
5972: if (link_equal_fields && item->real_item()->type() == FIELD_ITEM)
|
5973: {
|
5974: last_equal_field= ((Item_field *) (item->real_item()))->field;
|
5975: if (!prev_equal_field)
|
5976: first_equal_field= last_equal_field;
|
5977: else
|
5978: prev_equal_field->next_equal_field= last_equal_field;
|
5979: prev_equal_field= last_equal_field;
|
5980: }
|
5981: }
|
5982: if (prev_equal_field && last_equal_field != first_equal_field)
|
5983: last_equal_field->next_equal_field= first_equal_field;
|
5984: fix_length_and_dec();
|
5985: fixed= 1;
|
5986: return FALSE;
|
5987:}
|
Also reproducible on 10.0.2 release.
{"report":{"fcp":963.4000005722046,"ttfb":225,"pageVisibility":"visible","entityId":24375,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"4d4791ce-bf2c-4262-9f2b-727ccd0bc4fb","navigationType":0,"readyForUser":1047.6999998092651,"redirectCount":0,"resourceLoadedEnd":957.1999998092651,"resourceLoadedStart":230.80000019073486,"resourceTiming":[{"duration":163.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":230.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":230.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":394.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":163.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":231.10000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":231.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":394.9000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":173.10000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":231.30000019073486,"connectEnd":231.30000019073486,"connectStart":231.30000019073486,"domainLookupEnd":231.30000019073486,"domainLookupStart":231.30000019073486,"fetchStart":231.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":231.30000019073486,"responseEnd":404.4000005722046,"responseStart":404.4000005722046,"secureConnectionStart":231.30000019073486},{"duration":266.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":231.60000038146973,"connectEnd":231.60000038146973,"connectStart":231.60000038146973,"domainLookupEnd":231.60000038146973,"domainLookupStart":231.60000038146973,"fetchStart":231.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":231.60000038146973,"responseEnd":498.4000005722046,"responseStart":498.4000005722046,"secureConnectionStart":231.60000038146973},{"duration":272.8999996185303,"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":231.9000005722046,"connectEnd":231.9000005722046,"connectStart":231.9000005722046,"domainLookupEnd":231.9000005722046,"domainLookupStart":231.9000005722046,"fetchStart":231.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":231.9000005722046,"responseEnd":504.80000019073486,"responseStart":504.80000019073486,"secureConnectionStart":231.9000005722046},{"duration":273.19999980926514,"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":232.10000038146973,"connectEnd":232.10000038146973,"connectStart":232.10000038146973,"domainLookupEnd":232.10000038146973,"domainLookupStart":232.10000038146973,"fetchStart":232.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":232.10000038146973,"responseEnd":505.30000019073486,"responseStart":505.30000019073486,"secureConnectionStart":232.10000038146973},{"duration":273.19999980926514,"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":232.30000019073486,"connectEnd":232.30000019073486,"connectStart":232.30000019073486,"domainLookupEnd":232.30000019073486,"domainLookupStart":232.30000019073486,"fetchStart":232.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":232.30000019073486,"responseEnd":505.5,"responseStart":505.5,"secureConnectionStart":232.30000019073486},{"duration":321.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":232.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":232.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":554,"responseStart":0,"secureConnectionStart":0},{"duration":273.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":232.60000038146973,"connectEnd":232.60000038146973,"connectStart":232.60000038146973,"domainLookupEnd":232.60000038146973,"domainLookupStart":232.60000038146973,"fetchStart":232.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":232.60000038146973,"responseEnd":506.1000003814697,"responseStart":506.1000003814697,"secureConnectionStart":232.60000038146973},{"duration":321.5,"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":232.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":232.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":554.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":273.69999980926514,"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":232.9000005722046,"connectEnd":232.9000005722046,"connectStart":232.9000005722046,"domainLookupEnd":232.9000005722046,"domainLookupStart":232.9000005722046,"fetchStart":232.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":232.9000005722046,"responseEnd":506.6000003814697,"responseStart":506.6000003814697,"secureConnectionStart":232.9000005722046},{"duration":503.80000019073486,"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":233.69999980926514,"connectEnd":233.69999980926514,"connectStart":233.69999980926514,"domainLookupEnd":233.69999980926514,"domainLookupStart":233.69999980926514,"fetchStart":233.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":233.69999980926514,"responseEnd":737.5,"responseStart":737.5,"secureConnectionStart":233.69999980926514},{"duration":688.8999996185303,"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":233.80000019073486,"connectEnd":233.80000019073486,"connectStart":233.80000019073486,"domainLookupEnd":233.80000019073486,"domainLookupStart":233.80000019073486,"fetchStart":233.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":233.80000019073486,"responseEnd":922.6999998092651,"responseStart":922.6999998092651,"secureConnectionStart":233.80000019073486},{"duration":162.4000005722046,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":576.1999998092651,"connectEnd":576.1999998092651,"connectStart":576.1999998092651,"domainLookupEnd":576.1999998092651,"domainLookupStart":576.1999998092651,"fetchStart":576.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":576.1999998092651,"responseEnd":738.6000003814697,"responseStart":738.6000003814697,"secureConnectionStart":576.1999998092651},{"duration":113.5,"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&whisper-enabled=true","startTime":843.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":843.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":957.1999998092651,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":66,"responseStart":225,"responseEnd":227,"domLoading":229,"domInteractive":1116,"domContentLoadedEventStart":1116,"domContentLoadedEventEnd":1171,"domComplete":2039,"loadEventStart":2039,"loadEventEnd":2040,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1091.1000003814697},{"name":"bigPipe.sidebar-id.end","time":1092},{"name":"bigPipe.activity-panel-pipe-id.start","time":1092.1000003814697},{"name":"bigPipe.activity-panel-pipe-id.end","time":1095.5},{"name":"activityTabFullyLoaded","time":1177.6999998092651}],"measures":[],"correlationId":"ce03ae8faccf62","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":89,"dbReadsTimeInMs":10,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}