Test case
|
CREATE TABLE t1 (a INT) ENGINE=MyISAM;
|
INSERT INTO t1 VALUES (1),(2); # Not necessary, the table can be empty
|
|
CREATE TABLE t2 (b INT) ENGINE=MyISAM;
|
INSERT INTO t2 VALUES (3),(4); # Not necessary, the table can be empty
|
|
CREATE TABLE t3 (c INT) ENGINE=MyISAM;
|
INSERT INTO t3 VALUES (5),(6); # Not necessary, the table can be empty
|
|
CREATE OR REPLACE ALGORITHM=MERGE VIEW v3 AS SELECT * FROM t3;
|
|
PREPARE stmt FROM 'UPDATE t1, t2 SET a = 1 WHERE a IN ( SELECT 0 FROM t3 )';
|
UPDATE t1, t2 SET a = 1 WHERE a IN ( SELECT 0 FROM v3 );
|
EXECUTE stmt;
|
Stack trace from 5.5 commit e40bc659335f7f8b69427ed2d215c34c045a5ed7
|
#3 <signal handler called>
|
#4 0x0000000000591ccd in base_list_iterator::next_fast (this=0x7f78ebbb4070) at 5.5/sql/sql_list.h:455
|
#5 0x00000000005e9581 in List_iterator_fast<TABLE_LIST>::operator++ (this=0x7f78ebbb4070) at 5.5/sql/sql_list.h:569
|
#6 0x000000000062cf23 in st_select_lex::save_prep_leaf_tables (this=0x7f78eb144648, thd=0x7f78ec150060) at 5.5/sql/sql_lex.cc:4142
|
#7 0x000000000062cf78 in st_select_lex::save_prep_leaf_tables (this=0x7f78eb169810, thd=0x7f78ec150060) at 5.5/sql/sql_lex.cc:4152
|
#8 0x000000000062ce44 in LEX::save_prep_leaf_tables (this=0x7f78eb169080) at 5.5/sql/sql_lex.cc:4115
|
#9 0x00000000006eb182 in mysql_multi_update_prepare (thd=0x7f78ec150060) at 5.5/sql/sql_update.cc:1391
|
#10 0x0000000000636ef6 in mysql_execute_command (thd=0x7f78ec150060) at 5.5/sql/sql_parse.cc:2868
|
#11 0x0000000000656989 in Prepared_statement::execute (this=0x7f78eb134460, expanded_query=0x7f78ebbb4c90, open_cursor=false) at 5.5/sql/sql_prepare.cc:3928
|
#12 0x0000000000655aa0 in Prepared_statement::execute_loop (this=0x7f78eb134460, expanded_query=0x7f78ebbb4c90, open_cursor=false, packet=0x0, packet_end=0x0) at 5.5/sql/sql_prepare.cc:3587
|
#13 0x0000000000653bc4 in mysql_sql_stmt_execute (thd=0x7f78ec150060) at 5.5/sql/sql_prepare.cc:2737
|
#14 0x000000000063578c in mysql_execute_command (thd=0x7f78ec150060) at 5.5/sql/sql_parse.cc:2244
|
#15 0x000000000063f062 in mysql_parse (thd=0x7f78ec150060, rawbuf=0x7f78eb287078 "EXECUTE stmt", length=12, parser_state=0x7f78ebbb5620) at 5.5/sql/sql_parse.cc:5909
|
#16 0x0000000000632ca5 in dispatch_command (command=COM_QUERY, thd=0x7f78ec150060, packet=0x7f78ec207061 "EXECUTE stmt", packet_length=12) at 5.5/sql/sql_parse.cc:1079
|
#17 0x0000000000631e31 in do_command (thd=0x7f78ec150060) at 5.5/sql/sql_parse.cc:793
|
#18 0x0000000000734f49 in do_handle_one_connection (thd_arg=0x7f78ec150060) at 5.5/sql/sql_connect.cc:1269
|
#19 0x0000000000734cc3 in handle_one_connection (arg=0x7f78ec150060) at 5.5/sql/sql_connect.cc:1185
|
#20 0x0000000000b6de45 in pfs_spawn_thread (arg=0x7f78ec171ca0) at 5.5/storage/perfschema/pfs.cc:1015
|
#21 0x00007f78f229cb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
|
#22 0x00007f78f055295d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
|
- relates to
-
MDEV-19844
(Reopen) Unexpected crash occured repeatedly
-
-
Open
{"report":{"fcp":947,"ttfb":241.89999961853027,"pageVisibility":"visible","entityId":52394,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"0f668fd6-6006-475c-9aa4-4683887aef93","navigationType":0,"readyForUser":1031.5,"redirectCount":0,"resourceLoadedEnd":1342.1999998092651,"resourceLoadedStart":247.7999997138977,"resourceTiming":[{"duration":123.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":247.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":247.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":371.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":123.40000009536743,"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":248.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":248.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":371.5,"responseStart":0,"secureConnectionStart":0},{"duration":171.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":248.19999980926514,"connectEnd":248.19999980926514,"connectStart":248.19999980926514,"domainLookupEnd":248.19999980926514,"domainLookupStart":248.19999980926514,"fetchStart":248.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":248.19999980926514,"responseEnd":419.59999990463257,"responseStart":419.59999990463257,"secureConnectionStart":248.19999980926514},{"duration":250.89999961853027,"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":248.5,"connectEnd":248.5,"connectStart":248.5,"domainLookupEnd":248.5,"domainLookupStart":248.5,"fetchStart":248.5,"redirectEnd":0,"redirectStart":0,"requestStart":248.5,"responseEnd":499.3999996185303,"responseStart":499.3999996185303,"secureConnectionStart":248.5},{"duration":254.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":248.69999980926514,"connectEnd":248.69999980926514,"connectStart":248.69999980926514,"domainLookupEnd":248.69999980926514,"domainLookupStart":248.69999980926514,"fetchStart":248.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":248.69999980926514,"responseEnd":503.2999997138977,"responseStart":503.2999997138977,"secureConnectionStart":248.69999980926514},{"duration":254.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":248.89999961853027,"connectEnd":248.89999961853027,"connectStart":248.89999961853027,"domainLookupEnd":248.89999961853027,"domainLookupStart":248.89999961853027,"fetchStart":248.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":248.89999961853027,"responseEnd":503.7999997138977,"responseStart":503.7999997138977,"secureConnectionStart":248.89999961853027},{"duration":255.09999990463257,"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":249.09999990463257,"connectEnd":249.09999990463257,"connectStart":249.09999990463257,"domainLookupEnd":249.09999990463257,"domainLookupStart":249.09999990463257,"fetchStart":249.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":249.09999990463257,"responseEnd":504.19999980926514,"responseStart":504.19999980926514,"secureConnectionStart":249.09999990463257},{"duration":322.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":249.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":249.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":571.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":255.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":249.39999961853027,"connectEnd":249.39999961853027,"connectStart":249.39999961853027,"domainLookupEnd":249.39999961853027,"domainLookupStart":249.39999961853027,"fetchStart":249.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":249.39999961853027,"responseEnd":504.8999996185303,"responseStart":504.8999996185303,"secureConnectionStart":249.39999961853027},{"duration":322.3999996185303,"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":249.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":249.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":571.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":255.80000019073486,"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":249.69999980926514,"connectEnd":249.69999980926514,"connectStart":249.69999980926514,"domainLookupEnd":249.69999980926514,"domainLookupStart":249.69999980926514,"fetchStart":249.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":249.69999980926514,"responseEnd":505.5,"responseStart":505.5,"secureConnectionStart":249.69999980926514},{"duration":535.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":250.59999990463257,"connectEnd":250.59999990463257,"connectStart":250.59999990463257,"domainLookupEnd":250.59999990463257,"domainLookupStart":250.59999990463257,"fetchStart":250.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":250.59999990463257,"responseEnd":786.0999999046326,"responseStart":786.0999999046326,"secureConnectionStart":250.59999990463257},{"duration":1054.8000001907349,"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":254.7999997138977,"connectEnd":254.7999997138977,"connectStart":254.7999997138977,"domainLookupEnd":254.7999997138977,"domainLookupStart":254.7999997138977,"fetchStart":254.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":254.7999997138977,"responseEnd":1309.5999999046326,"responseStart":1309.5999999046326,"secureConnectionStart":254.7999997138977},{"duration":226.89999961853027,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":596,"connectEnd":596,"connectStart":596,"domainLookupEnd":596,"domainLookupStart":596,"fetchStart":596,"redirectEnd":0,"redirectStart":0,"requestStart":596,"responseEnd":822.8999996185303,"responseStart":822.8999996185303,"secureConnectionStart":596},{"duration":445.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/88e00f27b808427e45c4d9b97fbe01c7-CDN/lu2cib/820016/12ta74/1d096dfd08906a56e93f26a5b25bf586/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:7,-_super,-jira.view.issue,-jira.general,-jira.navigator.kickass,-viewissue.standalone,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":896.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":896.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1342.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":430.1000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-jira.view.issue,-jira.navigator.kickass,-viewissue.standalone,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":897.3999996185303,"connectEnd":897.3999996185303,"connectStart":897.3999996185303,"domainLookupEnd":897.3999996185303,"domainLookupStart":897.3999996185303,"fetchStart":897.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":897.3999996185303,"responseEnd":1327.5,"responseStart":1327.5,"secureConnectionStart":897.3999996185303},{"duration":432,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/1d096dfd08906a56e93f26a5b25bf586/_/download/contextbatch/js/com.atlassian.jira.plugins.jira-development-integration-plugin:7,-_super,-jira.view.issue,-jira.general,-jira.navigator.kickass,-viewissue.standalone,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":897.7999997138977,"connectEnd":897.7999997138977,"connectStart":897.7999997138977,"domainLookupEnd":897.7999997138977,"domainLookupStart":897.7999997138977,"fetchStart":897.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":897.7999997138977,"responseEnd":1329.7999997138977,"responseStart":1329.7999997138977,"secureConnectionStart":897.7999997138977},{"duration":459.90000009536743,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":940.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":940.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1400.6999998092651,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":54,"responseStart":242,"responseEnd":246,"domLoading":245,"domInteractive":1353,"domContentLoadedEventStart":1353,"domContentLoadedEventEnd":1400,"domComplete":1685,"loadEventStart":1685,"loadEventEnd":1686,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1325.0999999046326},{"name":"bigPipe.sidebar-id.end","time":1325.8999996185303},{"name":"bigPipe.activity-panel-pipe-id.start","time":1326.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1328.3999996185303},{"name":"activityTabFullyLoaded","time":1416}],"measures":[],"correlationId":"d3fa8d21c95acc","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":124,"dbReadsTimeInMs":13,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
http://lists.askmonty.org/pipermail/commits/2015-July/008211.html