This happens on the valgrind builder in buildbot:
http://buildbot.askmonty.org/buildbot/builders/work-amd64-valgrind/builds/10030/steps/test/logs/stdio
tokudb_mariadb.mdev6657 w2 [ fail ]
|
Test ended at 2017-05-02 16:47:21
|
|
CURRENT_TEST: tokudb_mariadb.mdev6657
|
--- /mnt/data/buildot/maria-slave/work-opensuse-amd64/build/storage/tokudb/mysql-test/tokudb_mariadb/r/mdev6657.result 2017-04-30 22:23:54.359096283 +0300
|
+++ /mnt/data/buildot/maria-slave/work-opensuse-amd64/build/storage/tokudb/mysql-test/tokudb_mariadb/r/mdev6657.reject 2017-05-02 16:47:21.529139117 +0300
|
@@ -34,7 +34,7 @@
|
where col1 <= 1410799999
|
order by col1 desc,col2 desc,col3 desc limit 1;
|
id select_type table type possible_keys key key_len ref rows Extra
|
-1 SIMPLE t3 range pk_ersatz,key1 pk_ersatz 4 NULL 2001 Using where; Using index
|
+1 SIMPLE t3 range pk_ersatz,key1 pk_ersatz 4 NULL 2797 Using where; Using index
|
# The same query but the constant is bigger.
|
# The query should use range(PRIMARY), not full index scan:
|
explain
|
@@ -43,5 +43,5 @@
|
where col1 <= 1412199999
|
order by col1 desc, col2 desc, col3 desc limit 1;
|
id select_type table type possible_keys key key_len ref rows Extra
|
-1 SIMPLE t3 range pk_ersatz,key1 pk_ersatz 4 NULL 15001 Using where; Using index
|
+1 SIMPLE t3 range pk_ersatz,key1 pk_ersatz 4 NULL 19777 Using where; Using index
|
drop table t1,t2,t3;
|
|
mysqltest: Result content mismatch
|
We had a similar problem with this test before, MDEV-6846, but it was fixed long time ago.
When I run this test with valgrind locally, I get valgrind warnings instead:
8773f14677f492bcde06647a111732baf226f5ba
|
==29663== Thread 22:
|
==29663== Conditional jump or move depends on uninitialised value(s)
|
==29663== at 0xBFACE0D: lz_encoder_prepare (lz_encoder.c:222)
|
==29663== by 0xBFAD4CA: lzma_lz_encoder_init (lz_encoder.c:516)
|
==29663== by 0xBFA420E: lzma_raw_coder_init (filter_common.c:212)
|
==29663== by 0xBFA16E4: block_encode_normal (block_buffer_encoder.c:192)
|
==29663== by 0xBFA16E4: lzma_block_buffer_encode (block_buffer_encoder.c:258)
|
==29663== by 0xBF86878: lzma_stream_buffer_encode (stream_buffer_encoder.c:93)
|
==29663== by 0xBF86523: lzma_easy_buffer_encode (easy_buffer_encoder.c:27)
|
==29663== by 0xBF68428: toku_compress(toku_compression_method, unsigned char*, unsigned long*, unsigned char const*, unsigned long) (compress.cc:141)
|
==29663== by 0xBF735E6: compress_nocrc_sub_block(sub_block*, void*, unsigned int, toku_compression_method) (sub_block.cc:204)
|
==29663== by 0xBEF617E: compress_ftnode_sub_block(sub_block*, toku_compression_method) (ft_node-serialize.cc:387)
|
==29663== by 0xBEF6528: serialize_and_compress_partition(ftnode*, int, toku_compression_method, sub_block*, serialize_times*) (ft_node-serialize.cc:494)
|
==29663== by 0xBEF66E2: serialize_and_compress_serially(ftnode*, int, toku_compression_method, sub_block*, serialize_times*) (ft_node-serialize.cc:542)
|
==29663== by 0xBEF719A: toku_serialize_ftnode_to_memory(ftnode*, ftnode_disk_data**, unsigned int, toku_compression_method, bool, bool, unsigned long*, unsigned long*, char**) (ft_node-serialize.cc:686)
|
==29663== by 0xBEF77D2: toku_serialize_ftnode_to(int, blocknum_s, ftnode*, ftnode_disk_data**, bool, ft*, bool) (ft_node-serialize.cc:807)
|
==29663== by 0xBF54443: toku_ftnode_flush_callback(cachefile*, int, blocknum_s, void*, void**, void*, pair_attr_s, pair_attr_s*, bool, bool, bool, bool) (ft-ops.cc:694)
|
==29663== by 0xBF2994C: cachetable_only_write_locked_data(evictor*, ctpair*, bool, pair_attr_s*, bool) (cachetable.cc:658)
|
==29663== by 0xBF2D03D: cachetable_flush_pair_for_close(void*) (cachetable.cc:2283)
|
==29663== Conditional jump or move depends on uninitialised value(s)
|
==29663== at 0xBFACF1D: lz_encoder_prepare (lz_encoder.c:344)
|
==29663== by 0xBFAD4CA: lzma_lz_encoder_init (lz_encoder.c:516)
|
==29663== by 0xBFA420E: lzma_raw_coder_init (filter_common.c:212)
|
==29663== by 0xBFA16E4: block_encode_normal (block_buffer_encoder.c:192)
|
==29663== by 0xBFA16E4: lzma_block_buffer_encode (block_buffer_encoder.c:258)
|
==29663== by 0xBF86878: lzma_stream_buffer_encode (stream_buffer_encoder.c:93)
|
==29663== by 0xBF86523: lzma_easy_buffer_encode (easy_buffer_encoder.c:27)
|
==29663== by 0xBF68428: toku_compress(toku_compression_method, unsigned char*, unsigned long*, unsigned char const*, unsigned long) (compress.cc:141)
|
==29663== by 0xBF735E6: compress_nocrc_sub_block(sub_block*, void*, unsigned int, toku_compression_method) (sub_block.cc:204)
|
==29663== by 0xBEF617E: compress_ftnode_sub_block(sub_block*, toku_compression_method) (ft_node-serialize.cc:387)
|
==29663== by 0xBEF6528: serialize_and_compress_partition(ftnode*, int, toku_compression_method, sub_block*, serialize_times*) (ft_node-serialize.cc:494)
|
==29663== by 0xBEF66E2: serialize_and_compress_serially(ftnode*, int, toku_compression_method, sub_block*, serialize_times*) (ft_node-serialize.cc:542)
|
==29663== by 0xBEF719A: toku_serialize_ftnode_to_memory(ftnode*, ftnode_disk_data**, unsigned int, toku_compression_method, bool, bool, unsigned long*, unsigned long*, char**) (ft_node-serialize.cc:686)
|
==29663== by 0xBEF77D2: toku_serialize_ftnode_to(int, blocknum_s, ftnode*, ftnode_disk_data**, bool, ft*, bool) (ft_node-serialize.cc:807)
|
==29663== by 0xBF54443: toku_ftnode_flush_callback(cachefile*, int, blocknum_s, void*, void**, void*, pair_attr_s, pair_attr_s*, bool, bool, bool, bool) (ft-ops.cc:694)
|
==29663== by 0xBF2994C: cachetable_only_write_locked_data(evictor*, ctpair*, bool, pair_attr_s*, bool) (cachetable.cc:658)
|
==29663== by 0xBF2D03D: cachetable_flush_pair_for_close(void*) (cachetable.cc:2283)
|
{"report":{"fcp":1055.7000000476837,"ttfb":323.5,"pageVisibility":"visible","entityId":61256,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"3b67adab-db7f-43d0-9f12-89871a1d1156","navigationType":0,"readyForUser":1141.7000000476837,"redirectCount":0,"resourceLoadedEnd":1308.6000001430511,"resourceLoadedStart":335.2000000476837,"resourceTiming":[{"duration":150.10000014305115,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":335.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":335.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":485.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":150.10000014305115,"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":335.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":335.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":485.60000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":219.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":335.80000019073486,"connectEnd":335.80000019073486,"connectStart":335.80000019073486,"domainLookupEnd":335.80000019073486,"domainLookupStart":335.80000019073486,"fetchStart":335.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":335.80000019073486,"responseEnd":555,"responseStart":555,"secureConnectionStart":335.80000019073486},{"duration":324.09999990463257,"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":336.60000014305115,"connectEnd":336.60000014305115,"connectStart":336.60000014305115,"domainLookupEnd":336.60000014305115,"domainLookupStart":336.60000014305115,"fetchStart":336.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":336.60000014305115,"responseEnd":660.7000000476837,"responseStart":660.7000000476837,"secureConnectionStart":336.60000014305115},{"duration":327.59999990463257,"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":336.80000019073486,"connectEnd":336.80000019073486,"connectStart":336.80000019073486,"domainLookupEnd":336.80000019073486,"domainLookupStart":336.80000019073486,"fetchStart":336.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":336.80000019073486,"responseEnd":664.4000000953674,"responseStart":664.4000000953674,"secureConnectionStart":336.80000019073486},{"duration":327.90000009536743,"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":337,"connectEnd":337,"connectStart":337,"domainLookupEnd":337,"domainLookupStart":337,"fetchStart":337,"redirectEnd":0,"redirectStart":0,"requestStart":337,"responseEnd":664.9000000953674,"responseStart":664.9000000953674,"secureConnectionStart":337},{"duration":328.2000000476837,"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":337.2000000476837,"connectEnd":337.2000000476837,"connectStart":337.2000000476837,"domainLookupEnd":337.2000000476837,"domainLookupStart":337.2000000476837,"fetchStart":337.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":337.2000000476837,"responseEnd":665.4000000953674,"responseStart":665.4000000953674,"secureConnectionStart":337.2000000476837},{"duration":376.2999999523163,"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":337.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":337.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":713.6000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":328.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":337.5,"connectEnd":337.5,"connectStart":337.5,"domainLookupEnd":337.5,"domainLookupStart":337.5,"fetchStart":337.5,"redirectEnd":0,"redirectStart":0,"requestStart":337.5,"responseEnd":665.9000000953674,"responseStart":665.9000000953674,"secureConnectionStart":337.5},{"duration":376.09999990463257,"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":337.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":337.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":713.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":328.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":337.80000019073486,"connectEnd":337.80000019073486,"connectStart":337.80000019073486,"domainLookupEnd":337.80000019073486,"domainLookupStart":337.80000019073486,"fetchStart":337.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":337.80000019073486,"responseEnd":666.5,"responseStart":666.5,"secureConnectionStart":337.80000019073486},{"duration":893.5,"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":348.40000009536743,"connectEnd":348.40000009536743,"connectStart":348.40000009536743,"domainLookupEnd":348.40000009536743,"domainLookupStart":348.40000009536743,"fetchStart":348.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":348.40000009536743,"responseEnd":1241.9000000953674,"responseStart":1241.9000000953674,"secureConnectionStart":348.40000009536743},{"duration":871.7000000476837,"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":372,"connectEnd":372,"connectStart":372,"domainLookupEnd":372,"domainLookupStart":372,"fetchStart":372,"redirectEnd":0,"redirectStart":0,"requestStart":372,"responseEnd":1243.7000000476837,"responseStart":1243.7000000476837,"secureConnectionStart":372},{"duration":516.8000001907349,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":725.5,"connectEnd":725.5,"connectStart":725.5,"domainLookupEnd":725.5,"domainLookupStart":725.5,"fetchStart":725.5,"redirectEnd":0,"redirectStart":0,"requestStart":725.5,"responseEnd":1242.3000001907349,"responseStart":1242.3000001907349,"secureConnectionStart":725.5},{"duration":261.39999985694885,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1047.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1047.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1309.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":55.90000009536743,"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":1252.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1252.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1308.6000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":51.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/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&whisper-enabled=true","startTime":1253.6000001430511,"connectEnd":1253.6000001430511,"connectStart":1253.6000001430511,"domainLookupEnd":1253.6000001430511,"domainLookupStart":1253.6000001430511,"fetchStart":1253.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":1253.6000001430511,"responseEnd":1305.1000001430511,"responseStart":1305.1000001430511,"secureConnectionStart":1253.6000001430511},{"duration":103.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/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&whisper-enabled=true","startTime":1254.4000000953674,"connectEnd":1254.4000000953674,"connectStart":1254.4000000953674,"domainLookupEnd":1254.4000000953674,"domainLookupStart":1254.4000000953674,"fetchStart":1254.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1254.4000000953674,"responseEnd":1358.1000001430511,"responseStart":1358.1000001430511,"secureConnectionStart":1254.4000000953674}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":146,"responseStart":323,"responseEnd":371,"domLoading":329,"domInteractive":1349,"domContentLoadedEventStart":1349,"domContentLoadedEventEnd":1403,"domComplete":1545,"loadEventStart":1545,"loadEventEnd":1546,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1315.7000000476837},{"name":"bigPipe.sidebar-id.end","time":1316.6000001430511},{"name":"bigPipe.activity-panel-pipe-id.start","time":1316.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":1320.2000000476837},{"name":"activityTabFullyLoaded","time":1417}],"measures":[],"correlationId":"a123f398fa5e14","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":102,"dbReadsTimeInMs":12,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Occurrence in 10.1:
http://buildbot.askmonty.org/buildbot/builders/work-amd64-valgrind/builds/10064/steps/test/logs/stdio
tokudb_mariadb.mdev6657 w4 [ fail ]
Test ended at 2017-05-23 07:23:00
CURRENT_TEST: tokudb_mariadb.mdev6657
--- /mnt/data/buildot/maria-slave/work-opensuse-amd64/build/storage/tokudb/mysql-test/tokudb_mariadb/r/mdev6657.result 2017-05-21 05:40:31.933504724 +0300
+++ /mnt/data/buildot/maria-slave/work-opensuse-amd64/build/storage/tokudb/mysql-test/tokudb_mariadb/r/mdev6657.reject 2017-05-23 07:22:59.988631453 +0300
@@ -34,7 +34,7 @@
where col1 <= 1410799999
order by col1 desc,col2 desc,col3 desc limit 1;
id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 range pk_ersatz,key1 pk_ersatz 4 NULL 2001 Using where; Using index
+1 SIMPLE t3 range pk_ersatz,key1 pk_ersatz 4 NULL 8512 Using where; Using index
# The same query but the constant is bigger.
# The query should use range(PRIMARY), not full index scan:
explain
@@ -43,5 +43,5 @@
where col1 <= 1412199999
order by col1 desc, col2 desc, col3 desc limit 1;
id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t3 range pk_ersatz,key1 pk_ersatz 4 NULL 15001 Using where; Using index
+1 SIMPLE t3 range pk_ersatz,key1 pk_ersatz 4 NULL 21512 Using where; Using index
drop table t1,t2,t3;
mysqltest: Result content mismatch