Test case
|
--source include/have_innodb.inc
|
|
CREATE TABLE IF NOT EXISTS `t_ar` (`i` INT) ENGINE=Aria;
|
CREATE TABLE IF NOT EXISTS `t_in` (`i` INT) ENGINE=InnoDB;
|
|
--delimiter |
|
CREATE PROCEDURE pr()
|
BEGIN
|
DECLARE abiss INT DEFAULT 0;
|
LOOP
|
SELECT * FROM ( SELECT al1.* FROM `t_in` AS al1 LEFT JOIN `t_ar` AS al2 ON ( al1.`i` = al2.`i` AND al1.`i` = ( SELECT COUNT(*) FROM `t_ar` al3 INNER JOIN `t_ar` al4 ON (al3.`i` = al4.`i` ) ) ) ) AS sq INTO abiss;
|
END LOOP;
|
END |
|
--delimiter ;
|
|
--connect (con1,localhost,root,,)
|
--send CALL pr()
|
|
--connection default
|
|
--let $run = 10000
|
|
while ($run) {
|
ANALYZE TABLE `t_ar`, `t_in`;
|
--dec $run
|
}
|
|
--connection con1
|
--reap
|
--disconnect con1
|
|
--connection default
|
DROP PROCEDURE pr;
|
DROP TABLE t_in, t_ar;
|
Stack trace from 10.0 commit 732e2694058788c14b55db052dedc102ac21d1bc
|
mysqld: /src/10.0/storage/maria/ma_close.c:96: maria_close: Assertion `share->in_trans == 0' failed.
|
160611 17:49:30 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f4cc11331d2 in __assert_fail () from /lib64/libc.so.6
|
#8 0x0000000000d2070e in maria_close (info=0x7f4cae568730) at /src/10.0/storage/maria/ma_close.c:96
|
#9 0x0000000000ca5230 in ha_maria::close (this=0x7f4cae4b9088) at /src/10.0/storage/maria/ha_maria.cc:1264
|
#10 0x00000000008610dd in handler::ha_close (this=0x7f4cae4b9088) at /src/10.0/sql/handler.cc:2586
|
#11 0x000000000074a0ab in closefrm (table=0x7f4cae43ac70, free_share=true) at /src/10.0/sql/table.cc:2957
|
#12 0x000000000060869e in intern_close_table (table=0x7f4cae43ac70) at /src/10.0/sql/sql_base.cc:337
|
#13 0x00000000007ed964 in tc_release_table (table=0x7f4cae43ac70) at /src/10.0/sql/table_cache.cc:408
|
#14 0x0000000000609c7f in close_thread_table (thd=0x7f4cbaf6ebf0, table_ptr=0x7f4cbaf6ecb0) at /src/10.0/sql/sql_base.cc:1057
|
#15 0x00000000006094a7 in close_open_tables (thd=0x7f4cbaf6ebf0) at /src/10.0/sql/sql_base.cc:780
|
#16 0x0000000000609a0b in close_thread_tables (thd=0x7f4cbaf6ebf0) at /src/10.0/sql/sql_base.cc:1004
|
#17 0x00000000006745d9 in mysql_execute_command (thd=0x7f4cbaf6ebf0) at /src/10.0/sql/sql_parse.cc:5167
|
#18 0x000000000099cfee in sp_instr_stmt::exec_core (this=0x7f4cae8303f8, thd=0x7f4cbaf6ebf0, nextp=0x7f4cc3191a08) at /src/10.0/sql/sp_head.cc:3204
|
#19 0x000000000099c73d in sp_lex_keeper::reset_lex_and_exec_core (this=0x7f4cae830438, thd=0x7f4cbaf6ebf0, nextp=0x7f4cc3191a08, open_tables=false, instr=0x7f4cae8303f8) at /src/10.0/sql/sp_head.cc:2971
|
#20 0x000000000099ccf6 in sp_instr_stmt::execute (this=0x7f4cae8303f8, thd=0x7f4cbaf6ebf0, nextp=0x7f4cc3191a08) at /src/10.0/sql/sp_head.cc:3120
|
#21 0x0000000000998b3d in sp_head::execute (this=0x7f4cae824888, thd=0x7f4cbaf6ebf0, merge_da_on_success=true) at /src/10.0/sql/sp_head.cc:1371
|
#22 0x000000000099a7d7 in sp_head::execute_procedure (this=0x7f4cae824888, thd=0x7f4cbaf6ebf0, args=0x7f4cbaf731f0) at /src/10.0/sql/sp_head.cc:2159
|
#23 0x000000000067308b in mysql_execute_command (thd=0x7f4cbaf6ebf0) at /src/10.0/sql/sql_parse.cc:4720
|
#24 0x00000000006777cd in mysql_parse (thd=0x7f4cbaf6ebf0, rawbuf=0x7f4cae822088 "CALL pr()", length=9, parser_state=0x7f4cc3192650) at /src/10.0/sql/sql_parse.cc:6574
|
#25 0x000000000066a309 in dispatch_command (command=COM_QUERY, thd=0x7f4cbaf6ebf0, packet=0x7f4cbaf7f871 "CALL pr()", packet_length=9) at /src/10.0/sql/sql_parse.cc:1308
|
#26 0x00000000006695d6 in do_command (thd=0x7f4cbaf6ebf0) at /src/10.0/sql/sql_parse.cc:998
|
#27 0x0000000000787cb2 in do_handle_one_connection (thd_arg=0x7f4cbaf6ebf0) at /src/10.0/sql/sql_connect.cc:1378
|
#28 0x0000000000787a24 in handle_one_connection (arg=0x7f4cbaf6ebf0) at /src/10.0/sql/sql_connect.cc:1293
|
#29 0x0000000000df561c in pfs_spawn_thread (arg=0x7f4cbaeade70) at /src/10.0/storage/perfschema/pfs.cc:1860
|
#30 0x00007f4cc2e560a4 in start_thread () from /lib64/libpthread.so.0
|
{"report":{"fcp":694.7000000476837,"ttfb":179.70000004768372,"pageVisibility":"visible","entityId":56850,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"bf2540c4-1efa-4d21-a0c5-e2f58239bd33","navigationType":0,"readyForUser":779.7000000476837,"redirectCount":0,"resourceLoadedEnd":880.3999999761581,"resourceLoadedStart":184.39999997615814,"resourceTiming":[{"duration":41.60000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":184.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":184.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":226,"responseStart":0,"secureConnectionStart":0},{"duration":41.60000002384186,"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":184.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":184.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":226.20000004768372,"responseStart":0,"secureConnectionStart":0},{"duration":97.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":184.70000004768372,"connectEnd":184.70000004768372,"connectStart":184.70000004768372,"domainLookupEnd":184.70000004768372,"domainLookupStart":184.70000004768372,"fetchStart":184.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":184.70000004768372,"responseEnd":281.8000000715256,"responseStart":281.8000000715256,"secureConnectionStart":184.70000004768372},{"duration":199.10000002384186,"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":184.89999997615814,"connectEnd":184.89999997615814,"connectStart":184.89999997615814,"domainLookupEnd":184.89999997615814,"domainLookupStart":184.89999997615814,"fetchStart":184.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":184.89999997615814,"responseEnd":384,"responseStart":384,"secureConnectionStart":184.89999997615814},{"duration":195.60000002384186,"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":184.89999997615814,"connectEnd":184.89999997615814,"connectStart":184.89999997615814,"domainLookupEnd":184.89999997615814,"domainLookupStart":184.89999997615814,"fetchStart":184.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":184.89999997615814,"responseEnd":380.5,"responseStart":380.5,"secureConnectionStart":184.89999997615814},{"duration":199.39999997615814,"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":185.10000002384186,"connectEnd":185.10000002384186,"connectStart":185.10000002384186,"domainLookupEnd":185.10000002384186,"domainLookupStart":185.10000002384186,"fetchStart":185.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":185.10000002384186,"responseEnd":384.5,"responseStart":384.5,"secureConnectionStart":185.10000002384186},{"duration":200,"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":185.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":185.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":385.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":199.60000002384186,"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":185.20000004768372,"connectEnd":185.20000004768372,"connectStart":185.20000004768372,"domainLookupEnd":185.20000004768372,"domainLookupStart":185.20000004768372,"fetchStart":185.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":185.20000004768372,"responseEnd":384.8000000715256,"responseStart":384.8000000715256,"secureConnectionStart":185.20000004768372},{"duration":200,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":185.30000007152557,"connectEnd":185.30000007152557,"connectStart":185.30000007152557,"domainLookupEnd":185.30000007152557,"domainLookupStart":185.30000007152557,"fetchStart":185.30000007152557,"redirectEnd":0,"redirectStart":0,"requestStart":185.30000007152557,"responseEnd":385.3000000715256,"responseStart":385.3000000715256,"secureConnectionStart":185.30000007152557},{"duration":200.30000007152557,"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":185.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":185.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":385.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":200.30000007152557,"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":185.5,"connectEnd":185.5,"connectStart":185.5,"domainLookupEnd":185.5,"domainLookupStart":185.5,"fetchStart":185.5,"redirectEnd":0,"redirectStart":0,"requestStart":185.5,"responseEnd":385.8000000715256,"responseStart":385.8000000715256,"secureConnectionStart":185.5},{"duration":639.6000000238419,"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":191.10000002384186,"connectEnd":191.10000002384186,"connectStart":191.10000002384186,"domainLookupEnd":191.10000002384186,"domainLookupStart":191.10000002384186,"fetchStart":191.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":191.10000002384186,"responseEnd":830.7000000476837,"responseStart":830.7000000476837,"secureConnectionStart":191.10000002384186},{"duration":689.2999999523163,"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":191.10000002384186,"connectEnd":191.10000002384186,"connectStart":191.10000002384186,"domainLookupEnd":191.10000002384186,"domainLookupStart":191.10000002384186,"fetchStart":191.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":191.10000002384186,"responseEnd":880.3999999761581,"responseStart":880.3999999761581,"secureConnectionStart":191.10000002384186},{"duration":400.6999999284744,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":431.7000000476837,"connectEnd":431.7000000476837,"connectStart":431.7000000476837,"domainLookupEnd":431.7000000476837,"domainLookupStart":431.7000000476837,"fetchStart":431.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":431.7000000476837,"responseEnd":832.3999999761581,"responseStart":832.3999999761581,"secureConnectionStart":431.7000000476837},{"duration":192.89999997615814,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":688.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":688.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":881.1000000238419,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":6,"responseStart":179,"responseEnd":190,"domLoading":182,"domInteractive":900,"domContentLoadedEventStart":900,"domContentLoadedEventEnd":940,"domComplete":1379,"loadEventStart":1379,"loadEventEnd":1381,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":884.8999999761581},{"name":"bigPipe.sidebar-id.end","time":885.6000000238419},{"name":"bigPipe.activity-panel-pipe-id.start","time":885.8000000715256},{"name":"bigPipe.activity-panel-pipe-id.end","time":888},{"name":"activityTabFullyLoaded","time":946.3999999761581}],"measures":[],"correlationId":"abdaf249d780a","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":101,"dbReadsTimeInMs":14,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}