Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
10.5 , 10.6 , 10.11 , 11.0(EOL) , 11.1(EOL) , 11.2(EOL) , 11.3(EOL) , 11.4
main.query_cache_debug w11 [ fail ]
Test ended at 2024-04-08 19:57:23
CURRENT_TEST: main.query_cache_debug
mysqltest: At line 348: query 'reap' failed: 2013: Lost connection to MySQL server during query
The result from queries just before the failure was:
< snip >
`k` int(10) default '0',
PRIMARY KEY (`id`))
ENGINE=MyISAM;
INSERT IGNORE INTO t1 VALUES
(NULL,1),(NULL,8),(NULL,NULL),(NULL,NULL),(NULL,4),(NULL,9),(NULL,7),
(NULL,3),(NULL,NULL),(NULL,2),(NULL,3),(NULL,NULL),(NULL,2),(NULL,7),
(NULL,1),(NULL,2),(NULL,4),(NULL,NULL),(NULL,1),(NULL,1),(NULL,4);
SET GLOBAL query_cache_size= 1024*1024;
SET GLOBAL query_cache_type= 1;
connect con2,localhost,root,,test;
connect con1,localhost,root,,test;
set debug_sync="wait_in_query_cache_store_query SIGNAL parked WAIT_FOR go";
SELECT DISTINCT id FROM t1 WHERE id BETWEEN 5603 AND 16218 ORDER BY k;
connection default;
set debug_sync="now WAIT_FOR parked";
connection con2;
SET GLOBAL query_cache_type= 0;;
connection default;
set debug_sync="now SIGNAL go";
connection con1;
More results from queries before failure can be found in /home/buildbot/amd64-ubuntu-2204-clang14-asan/build/mysql-test/var/11/log/query_cache_debug.log
Server [mysqld.1 - pid: 325865, winpid: 325865, exit: 256] failed during test run
Server log from this test:
----------SERVER LOG START-----------
=================================================================
==325870==ERROR: AddressSanitizer: heap-use-after-free on address 0x7fcb30657e28 at pc 0x562ec4ac3714 bp 0x7fcb32552050 sp 0x7fcb32552048
WRITE of size 4 at 0x7fcb30657e28 thread T8
#0 0x562ec4ac3713 in Query_cache::write_result_data(Query_cache_block**, unsigned long, unsigned char*, Query_cache_block*, Query_cache_block::block_type) /home/buildbot/amd64-ubuntu-2204-clang14-asan/build/sql/sql_cache.cc:3164:19
#1 0x562ec4ac3713 in Query_cache::append_result_data(Query_cache_block**, unsigned long, unsigned char*, Query_cache_block*) /home/buildbot/amd64-ubuntu-2204-clang14-asan/build/sql/sql_cache.cc:3073:5
#2 0x562ec4ac2b82 in Query_cache::insert(THD*, Query_cache_tls*, char const*, unsigned long, unsigned int) /home/buildbot/amd64-ubuntu-2204-clang14-asan/build/sql/sql_cache.cc:1109:8
#3 0x562ec5739726 in net_real_write /home/buildbot/amd64-ubuntu-2204-clang14-asan/build/sql/net_serv.cc:658:3
#4 0x562ec57394e4 in net_flush /home/buildbot/amd64-ubuntu-2204-clang14-asan/build/sql/net_serv.cc:402:12
#5 0x562ec495f92c in Protocol::net_send_eof(THD*, unsigned int, unsigned int) /home/buildbot/amd64-ubuntu-2204-clang14-asan/build/sql/protocol.cc:350:14
#6 0x562ec4960385 in Protocol::end_statement() /home/buildbot/amd64-ubuntu-2204-clang14-asan/build/sql/protocol.cc:602:12
#7 0x562ec4bf9001 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /home/buildbot/amd64-ubuntu-2204-clang14-asan/build/sql/sql_parse.cc:2478:22
#8 0x562ec4bfe073 in do_command(THD*) /home/buildbot/amd64-ubuntu-2204-clang14-asan/build/sql/sql_parse.cc:1375:17
#9 0x562ec4fb2143 in do_handle_one_connection(CONNECT*, bool) /home/buildbot/amd64-ubuntu-2204-clang14-asan/build/sql/sql_connect.cc:1415:11
#10 0x562ec4fb1c37 in handle_one_connection /home/buildbot/amd64-ubuntu-2204-clang14-asan/build/sql/sql_connect.cc:1317:5
#11 0x562ec5b332ce in pfs_spawn_thread /home/buildbot/amd64-ubuntu-2204-clang14-asan/build/storage/perfschema/pfs.cc:2201:3
#12 0x7fcb42b85ac2 (/lib/x86_64-linux-gnu/libc.so.6+0x94ac2) (BuildId: c289da5071a3399de893d2af81d6a30c62646e1e)
#13 0x7fcb42c16a03 in __clone (/lib/x86_64-linux-gnu/libc.so.6+0x125a03) (BuildId: c289da5071a3399de893d2af81d6a30c62646e1e)
0x7fcb30657e28 is located 1576 bytes inside of 1031552-byte region [0x7fcb30657800,0x7fcb30753580)
freed by thread T8 here:
#0 0x562ec48f8a82 in free (/home/buildbot/amd64-ubuntu-2204-clang14-asan/build/sql/mariadbd+0x1239a82) (BuildId: 766fca634c936cf8496611775a7d6fd50f984d66)
#1 0x562ec4ac1d99 in Query_cache::free_cache() /home/buildbot/amd64-ubuntu-2204-clang14-asan/build/sql/sql_cache.cc:2840:3
#2 0x562ec4ac15ce in Query_cache::unlock() /home/buildbot/amd64-ubuntu-2204-clang14-asan/build/sql/sql_cache.cc:764:5
#3 0x562ec4ac32c8 in Query_cache::write_result_data(Query_cache_block**, unsigned long, unsigned char*, Query_cache_block*, Query_cache_block::block_type) /home/buildbot/amd64-ubuntu-2204-clang14-asan/build/sql/sql_cache.cc:3155:5
#4 0x562ec4ac32c8 in Query_cache::append_result_data(Query_cache_block**, unsigned long, unsigned char*, Query_cache_block*) /home/buildbot/amd64-ubuntu-2204-clang14-asan/build/sql/sql_cache.cc:3073:5
e.g. https://buildbot.mariadb.org/#/builders/587/builds/6856
is part of
MDEV-33073
always green buildbot
Stalled
{"report":{"fcp":973.3999996185303,"ttfb":276.30000019073486,"pageVisibility":"visible","entityId":128664,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"05989558-6cde-4905-b207-73f1cdd85890","navigationType":0,"readyForUser":1068.5,"redirectCount":0,"resourceLoadedEnd":689,"resourceLoadedStart":282.8999996185303,"resourceTiming":[{"duration":35.40000057220459,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":282.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":282.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":318.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":37.59999942779541,"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":283.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":283.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":320.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":246.89999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":283.30000019073486,"connectEnd":283.30000019073486,"connectStart":283.30000019073486,"domainLookupEnd":283.30000019073486,"domainLookupStart":283.30000019073486,"fetchStart":283.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":326.8999996185303,"responseEnd":530.1999998092651,"responseStart":344.6000003814697,"secureConnectionStart":283.30000019073486},{"duration":405.5,"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":283.5,"connectEnd":283.5,"connectStart":283.5,"domainLookupEnd":283.5,"domainLookupStart":283.5,"fetchStart":283.5,"redirectEnd":0,"redirectStart":0,"requestStart":326.19999980926514,"responseEnd":689,"responseStart":339.5,"secureConnectionStart":283.5},{"duration":55.79999923706055,"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":283.6000003814697,"connectEnd":283.6000003814697,"connectStart":283.6000003814697,"domainLookupEnd":283.6000003814697,"domainLookupStart":283.6000003814697,"fetchStart":283.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":327.5,"responseEnd":339.3999996185303,"responseStart":337.3999996185303,"secureConnectionStart":283.6000003814697},{"duration":73.40000057220459,"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":283.69999980926514,"connectEnd":283.69999980926514,"connectStart":283.69999980926514,"domainLookupEnd":283.69999980926514,"domainLookupStart":283.69999980926514,"fetchStart":283.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":340.30000019073486,"responseEnd":357.1000003814697,"responseStart":355.3999996185303,"secureConnectionStart":283.69999980926514},{"duration":75.5,"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":283.8999996185303,"connectEnd":283.8999996185303,"connectStart":283.8999996185303,"domainLookupEnd":283.8999996185303,"domainLookupStart":283.8999996185303,"fetchStart":283.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":341.19999980926514,"responseEnd":359.3999996185303,"responseStart":357.6000003814697,"secureConnectionStart":283.8999996185303},{"duration":55.09999942779541,"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":284.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":284.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":339.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":95,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":288.6000003814697,"connectEnd":288.6000003814697,"connectStart":288.6000003814697,"domainLookupEnd":288.6000003814697,"domainLookupStart":288.6000003814697,"fetchStart":288.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":341.6000003814697,"responseEnd":383.6000003814697,"responseStart":380.80000019073486,"secureConnectionStart":288.6000003814697},{"duration":51.69999980926514,"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":288.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":288.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":340.5,"responseStart":0,"secureConnectionStart":0},{"duration":74.30000019073486,"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":288.8999996185303,"connectEnd":288.8999996185303,"connectStart":288.8999996185303,"domainLookupEnd":288.8999996185303,"domainLookupStart":288.8999996185303,"fetchStart":288.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":344.3999996185303,"responseEnd":363.19999980926514,"responseStart":358.5,"secureConnectionStart":288.8999996185303},{"duration":366.8999996185303,"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":296.6000003814697,"connectEnd":296.6000003814697,"connectStart":296.6000003814697,"domainLookupEnd":296.6000003814697,"domainLookupStart":296.6000003814697,"fetchStart":296.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":428,"responseEnd":663.5,"responseStart":656.8999996185303,"secureConnectionStart":296.6000003814697},{"duration":367.9000005722046,"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":296.69999980926514,"connectEnd":296.69999980926514,"connectStart":296.69999980926514,"domainLookupEnd":296.69999980926514,"domainLookupStart":296.69999980926514,"fetchStart":296.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":488.5,"responseEnd":664.6000003814697,"responseStart":661.1000003814697,"secureConnectionStart":296.69999980926514},{"duration":182.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":678.3999996185303,"connectEnd":678.3999996185303,"connectStart":678.3999996185303,"domainLookupEnd":678.3999996185303,"domainLookupStart":678.3999996185303,"fetchStart":678.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":823.3999996185303,"responseEnd":860.8999996185303,"responseStart":859.6000003814697,"secureConnectionStart":678.3999996185303}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":110,"responseStart":276,"responseEnd":295,"domLoading":281,"domInteractive":1134,"domContentLoadedEventStart":1134,"domContentLoadedEventEnd":1198,"domComplete":2357,"loadEventStart":2358,"loadEventEnd":2358,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1118.8000001907349},{"name":"bigPipe.sidebar-id.end","time":1119.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1119.6000003814697},{"name":"bigPipe.activity-panel-pipe-id.end","time":1122.6000003814697},{"name":"activityTabFullyLoaded","time":1244.6999998092651}],"measures":[],"correlationId":"ca3ec6d633fd48","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":84,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}