mysqld: maria-5.5/sql/sql_base.cc:1604: bool close_thread_table(THD*, TABLE**): Assertion `table->key_read == 0' failed.
|
130115 2:59:33 [ERROR] mysqld got signal 6 ;
|
#6 0x00007fc574266d4d in __GI___assert_fail (assertion=0xd0e164 "table->key_read == 0", file=<optimized out>, line=1604, function=<optimized out>) at assert.c:81
|
#7 0x00000000005acbd6 in close_thread_table (thd=0x352fa20, table_ptr=0x352fad8) at /maria-5.5/sql/sql_base.cc:1604
|
#8 0x00000000005ac481 in close_open_tables (thd=0x352fa20) at /maria-5.5/sql/sql_base.cc:1377
|
#9 0x00000000005acb0c in close_thread_tables (thd=0x352fa20) at /maria-5.5/sql/sql_base.cc:1589
|
#10 0x0000000000614557 in mysql_execute_command (thd=0x352fa20) at /maria-5.5/sql/sql_parse.cc:4530
|
#11 0x000000000061731d in mysql_parse (thd=0x352fa20, rawbuf=0x362d4b8 "EXPLAIN \nSELECT * FROM t1\nWHERE EXISTS ( SELECT b FROM t2, t3\nGROUP BY b\nHAVING b != 3 )", length=88, parser_state=0x7fc563b4b500) at /maria-5.5/sql/sql_parse.cc:5741
|
#12 0x000000000060aade in dispatch_command (command=COM_QUERY, thd=0x352fa20, packet=0x36931a1 "", packet_length=89) at /maria-5.5/sql/sql_parse.cc:1055
|
#13 0x0000000000609d95 in do_command (thd=0x352fa20) at /maria-5.5/sql/sql_parse.cc:794
|
#14 0x000000000070d0a3 in do_handle_one_connection (thd_arg=0x352fa20) at /maria-5.5/sql/sql_connect.cc:1253
|
#15 0x000000000070ca8e in handle_one_connection (arg=0x352fa20) at /maria-5.5/sql/sql_connect.cc:1168
|
#16 0x0000000000b92d63 in pfs_spawn_thread (arg=0x3691f00) at /maria-5.5/storage/perfschema/pfs.cc:1015
|
#17 0x00007fc574faaefc in start_thread (arg=0x7fc563b4c700) at pthread_create.c:304
|
#18 0x00007fc57431cf4d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
|
#19 0x0000000000000000 in ?? ()
|
The failure appeared in maria/5.5 with the following revision:
revno: 3511 [merge]
|
revision-id: psergey@askmonty.org-20120828112037-16ga9yq0akyd0fzc
|
committer: Sergey Petrunya <psergey@askmonty.org>
|
timestamp: Tue 2012-08-28 15:20:37 +0400
|
message:
|
Merge
|
------------------------------------------------------------
|
revno: 3501.1.1
|
committer: Sergey Petrunya <psergey@askmonty.org>
|
timestamp: Tue 2012-08-28 15:15:05 +0400
|
message:
|
MDEV-430: Server crashes in select_describe on EXPLAIN with materialization+semijoin, etc
|
- Don't do early cleanup of uncorrelated subqueries if we're running an EXPLAIN.
|
Test case:
--source include/have_innodb.inc
|
|
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
|
CREATE TABLE t2 (b INT PRIMARY KEY, c INT) ENGINE=InnoDB;
|
CREATE TABLE t3 (d INT) ENGINE=InnoDB;
|
|
EXPLAIN
|
SELECT * FROM t1
|
WHERE EXISTS ( SELECT b FROM t2, t3
|
GROUP BY b
|
HAVING b != 3 );
|
Minimal optimizer_switch: in_to_exists=on
Full optimizer_switch (default):
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
|
Not reproducible on MariaDB 5.3, MySQL 5.6.
Not reproducible with MyISAM instead of InnoDB.
Only EXPLAIN causes the failure, SELECT works.
- is duplicated by
-
MDEV-4536
mysqld: /my/maria-5.5/sql/sql_base.cc:1598: bool close_thread_table(THD*, TABLE**): Assertion `table->key_read == 0' failed.
-
-
Closed
{"report":{"fcp":1971.7000007629395,"ttfb":427.70000076293945,"pageVisibility":"visible","entityId":22615,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"fa7465ab-383d-41d8-8b2d-1a0b77f801aa","navigationType":0,"readyForUser":2089.300000190735,"redirectCount":0,"resourceLoadedEnd":2746.1000003814697,"resourceLoadedStart":433.30000019073486,"resourceTiming":[{"duration":1036,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":433.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":433.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1469.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":1036,"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":433.70000076293945,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":433.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1469.7000007629395,"responseStart":0,"secureConnectionStart":0},{"duration":1045.5999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":433.9000005722046,"connectEnd":433.9000005722046,"connectStart":433.9000005722046,"domainLookupEnd":433.9000005722046,"domainLookupStart":433.9000005722046,"fetchStart":433.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":433.9000005722046,"responseEnd":1479.5,"responseStart":1479.5,"secureConnectionStart":433.9000005722046},{"duration":1110.6000003814697,"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":434,"connectEnd":434,"connectStart":434,"domainLookupEnd":434,"domainLookupStart":434,"fetchStart":434,"redirectEnd":0,"redirectStart":0,"requestStart":434,"responseEnd":1544.6000003814697,"responseStart":1544.6000003814697,"secureConnectionStart":434},{"duration":1114.6000003814697,"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":434.30000019073486,"connectEnd":434.30000019073486,"connectStart":434.30000019073486,"domainLookupEnd":434.30000019073486,"domainLookupStart":434.30000019073486,"fetchStart":434.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":434.30000019073486,"responseEnd":1548.9000005722046,"responseStart":1548.9000005722046,"secureConnectionStart":434.30000019073486},{"duration":1116.5999994277954,"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":434.4000005722046,"connectEnd":434.4000005722046,"connectStart":434.4000005722046,"domainLookupEnd":434.4000005722046,"domainLookupStart":434.4000005722046,"fetchStart":434.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":434.4000005722046,"responseEnd":1551,"responseStart":1551,"secureConnectionStart":434.4000005722046},{"duration":1116.8000001907349,"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":434.6000003814697,"connectEnd":434.6000003814697,"connectStart":434.6000003814697,"domainLookupEnd":434.6000003814697,"domainLookupStart":434.6000003814697,"fetchStart":434.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":434.6000003814697,"responseEnd":1551.4000005722046,"responseStart":1551.4000005722046,"secureConnectionStart":434.6000003814697},{"duration":1196.8000001907349,"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":434.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":434.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1631.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":1116.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":435,"connectEnd":435,"connectStart":435,"domainLookupEnd":435,"domainLookupStart":435,"fetchStart":435,"redirectEnd":0,"redirectStart":0,"requestStart":435,"responseEnd":1551.8000001907349,"responseStart":1551.8000001907349,"secureConnectionStart":435},{"duration":1196.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":435.20000076293945,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":435.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1631.7000007629395,"responseStart":0,"secureConnectionStart":0},{"duration":1117.0999994277954,"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":435.4000005722046,"connectEnd":435.4000005722046,"connectStart":435.4000005722046,"domainLookupEnd":435.4000005722046,"domainLookupStart":435.4000005722046,"fetchStart":435.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":435.4000005722046,"responseEnd":1552.5,"responseStart":1552.5,"secureConnectionStart":435.4000005722046},{"duration":1872.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":442.4000005722046,"connectEnd":442.4000005722046,"connectStart":442.4000005722046,"domainLookupEnd":442.4000005722046,"domainLookupStart":442.4000005722046,"fetchStart":442.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":442.4000005722046,"responseEnd":2315.300000190735,"responseStart":2315.300000190735,"secureConnectionStart":442.4000005722046},{"duration":2303.6000003814697,"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":442.5,"connectEnd":442.5,"connectStart":442.5,"domainLookupEnd":442.5,"domainLookupStart":442.5,"fetchStart":442.5,"redirectEnd":0,"redirectStart":0,"requestStart":442.5,"responseEnd":2746.1000003814697,"responseStart":2746.1000003814697,"secureConnectionStart":442.5},{"duration":732.8999996185303,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1645.7000007629395,"connectEnd":1645.7000007629395,"connectStart":1645.7000007629395,"domainLookupEnd":1645.7000007629395,"domainLookupStart":1645.7000007629395,"fetchStart":1645.7000007629395,"redirectEnd":0,"redirectStart":0,"requestStart":1645.7000007629395,"responseEnd":2378.6000003814697,"responseStart":2378.6000003814697,"secureConnectionStart":1645.7000007629395},{"duration":871.3999996185303,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1954.9000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1954.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2826.300000190735,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":265,"responseStart":427,"responseEnd":442,"domLoading":431,"domInteractive":2771,"domContentLoadedEventStart":2771,"domContentLoadedEventEnd":2821,"domComplete":4863,"loadEventStart":4863,"loadEventEnd":4865,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2750.6000003814697},{"name":"bigPipe.sidebar-id.end","time":2751.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":2751.7000007629395},{"name":"bigPipe.activity-panel-pipe-id.end","time":2754.2000007629395},{"name":"activityTabFullyLoaded","time":2832.1000003814697}],"measures":[],"correlationId":"ffaed119787d43","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":95,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}