CREATE TABLE t (a INT);
|
INSERT t WITH cte AS (SELECT 1) SELECT * FROM cte RETURNING *;
|
|
# Cleanup
|
DROP TABLE t;
|
10.5 3a211624
|
mariadbd: /data/src/10.5/sql/sql_lex.cc:3049: void st_select_lex_node::attach_single(st_select_lex_node*): Assertion `slave == 0' failed.
|
221003 13:11:11 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f8a461fe662 in __GI___assert_fail (assertion=0x5574478aac80 "slave == 0", file=0x55744789d5a0 "/data/src/10.5/sql/sql_lex.cc", line=3049, function=0x5574478aacc0 "void st_select_lex_node::attach_single(st_select_lex_node*)") at assert.c:101
|
#8 0x00005574458a54d9 in st_select_lex_node::attach_single (this=0x62b000086a40, slave_arg=0x62b000088018) at /data/src/10.5/sql/sql_lex.cc:3049
|
#9 0x0000557445fc3792 in MYSQLparse (thd=0x62b00007e218) at /data/src/10.5/sql/sql_yacc.yy:13367
|
#10 0x000055744594eb72 in parse_sql (thd=0x62b00007e218, parser_state=0x7f8a25a4ec30, creation_ctx=0x0, do_pfs_digest=true) at /data/src/10.5/sql/sql_parse.cc:10472
|
#11 0x000055744593fada in mysql_parse (thd=0x62b00007e218, rawbuf=0x62b000085238 "INSERT t WITH cte AS (SELECT 1) SELECT * FROM cte RETURNING *", length=61, parser_state=0x7f8a25a4ec30, is_com_multi=false, is_next_command=false) at /data/src/10.5/sql/sql_parse.cc:8039
|
#12 0x0000557445916612 in dispatch_command (command=COM_QUERY, thd=0x62b00007e218, packet=0x629000267219 "INSERT t WITH cte AS (SELECT 1) SELECT * FROM cte RETURNING *", packet_length=61, is_com_multi=false, is_next_command=false) at /data/src/10.5/sql/sql_parse.cc:1891
|
#13 0x000055744591302f in do_command (thd=0x62b00007e218) at /data/src/10.5/sql/sql_parse.cc:1375
|
#14 0x0000557445d4e3f3 in do_handle_one_connection (connect=0x608000002538, put_in_cache=true) at /data/src/10.5/sql/sql_connect.cc:1416
|
#15 0x0000557445d4dd90 in handle_one_connection (arg=0x6080000024b8) at /data/src/10.5/sql/sql_connect.cc:1318
|
#16 0x0000557446972d5c in pfs_spawn_thread (arg=0x61500000c618) at /data/src/10.5/storage/perfschema/pfs.cc:2201
|
#17 0x00007f8a466dcea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#18 0x00007f8a462c9aef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
The failure started happening on 10.5 branch after this merge
commit 3a2116241b128b811ee2455845ff9710da3115ac (HEAD -> 10.5, origin/bb-10.5-serg, origin/10.5)
|
Merge: e29fb956145 d4f6d2f08f2
|
Author: Sergei Golubchik
|
Date: Sun Oct 2 14:38:13 2022 +0200
|
|
Merge branch '10.4' into 10.5
|
but since the test case is not applicable to earlier versions due to the use of INSERT .. RETURNING, I can't bisect inside the merge. There are a couple commits in there which look to me as they could be related.
- duplicates
-
MDEV-28740
crash in INSERT RETURNING subquery in prepared statements
-
-
Closed
{"report":{"fcp":744.5999999940395,"ttfb":196.69999998807907,"pageVisibility":"visible","entityId":115149,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"2890719d-5857-4bce-84b5-3f86df95d3af","navigationType":0,"readyForUser":823.6999999880791,"redirectCount":0,"resourceLoadedEnd":930.6999999880791,"resourceLoadedStart":213.5,"resourceTiming":[{"duration":13.399999976158142,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":213.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":213.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":226.89999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":13.900000005960464,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":213.7999999821186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":213.7999999821186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":227.69999998807907,"responseStart":0,"secureConnectionStart":0},{"duration":74.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":214,"connectEnd":214,"connectStart":214,"domainLookupEnd":214,"domainLookupStart":214,"fetchStart":214,"redirectEnd":0,"redirectStart":0,"requestStart":214,"responseEnd":288.39999997615814,"responseStart":288.39999997615814,"secureConnectionStart":214},{"duration":182.30000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":214.19999998807907,"connectEnd":214.19999998807907,"connectStart":214.19999998807907,"domainLookupEnd":214.19999998807907,"domainLookupStart":214.19999998807907,"fetchStart":214.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":214.19999998807907,"responseEnd":396.5,"responseStart":396.5,"secureConnectionStart":214.19999998807907},{"duration":186.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":214.39999997615814,"connectEnd":214.39999997615814,"connectStart":214.39999997615814,"domainLookupEnd":214.39999997615814,"domainLookupStart":214.39999997615814,"fetchStart":214.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":214.39999997615814,"responseEnd":400.5,"responseStart":400.39999997615814,"secureConnectionStart":214.39999997615814},{"duration":186.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":214.5,"connectEnd":214.5,"connectStart":214.5,"domainLookupEnd":214.5,"domainLookupStart":214.5,"fetchStart":214.5,"redirectEnd":0,"redirectStart":0,"requestStart":214.5,"responseEnd":401,"responseStart":401,"secureConnectionStart":214.5},{"duration":186.69999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":214.69999998807907,"connectEnd":214.69999998807907,"connectStart":214.69999998807907,"domainLookupEnd":214.69999998807907,"domainLookupStart":214.69999998807907,"fetchStart":214.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":214.69999998807907,"responseEnd":401.39999997615814,"responseStart":401.39999997615814,"secureConnectionStart":214.69999998807907},{"duration":215.60000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":214.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":214.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":430.5,"responseStart":0,"secureConnectionStart":0},{"duration":186.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":215,"connectEnd":215,"connectStart":215,"domainLookupEnd":215,"domainLookupStart":215,"fetchStart":215,"redirectEnd":0,"redirectStart":0,"requestStart":215,"responseEnd":401.89999997615814,"responseStart":401.89999997615814,"secureConnectionStart":215},{"duration":215.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":215.19999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":215.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":430.69999998807907,"responseStart":0,"secureConnectionStart":0},{"duration":187.2000000178814,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":215.2999999821186,"connectEnd":215.2999999821186,"connectStart":215.2999999821186,"domainLookupEnd":215.2999999821186,"domainLookupStart":215.2999999821186,"fetchStart":215.2999999821186,"redirectEnd":0,"redirectStart":0,"requestStart":215.2999999821186,"responseEnd":402.5,"responseStart":402.5,"secureConnectionStart":215.2999999821186},{"duration":534.1999999880791,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":216.19999998807907,"connectEnd":216.19999998807907,"connectStart":216.19999998807907,"domainLookupEnd":216.19999998807907,"domainLookupStart":216.19999998807907,"fetchStart":216.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":216.19999998807907,"responseEnd":750.3999999761581,"responseStart":750.3999999761581,"secureConnectionStart":216.19999998807907},{"duration":714.4000000059605,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":216.2999999821186,"connectEnd":216.2999999821186,"connectStart":216.2999999821186,"domainLookupEnd":216.2999999821186,"domainLookupStart":216.2999999821186,"fetchStart":216.2999999821186,"redirectEnd":0,"redirectStart":0,"requestStart":216.2999999821186,"responseEnd":930.6999999880791,"responseStart":930.6999999880791,"secureConnectionStart":216.2999999821186},{"duration":309.59999999403954,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":442,"connectEnd":442,"connectStart":442,"domainLookupEnd":442,"domainLookupStart":442,"fetchStart":442,"redirectEnd":0,"redirectStart":0,"requestStart":442,"responseEnd":751.5999999940395,"responseStart":751.5999999940395,"secureConnectionStart":442},{"duration":194.60000002384186,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":737.3999999761581,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":737.3999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":932,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":30,"responseStart":196,"responseEnd":201,"domLoading":211,"domInteractive":950,"domContentLoadedEventStart":950,"domContentLoadedEventEnd":991,"domComplete":1605,"loadEventStart":1605,"loadEventEnd":1607,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":932.8999999761581},{"name":"bigPipe.sidebar-id.end","time":933.7999999821186},{"name":"bigPipe.activity-panel-pipe-id.start","time":934},{"name":"bigPipe.activity-panel-pipe-id.end","time":936.2999999821186},{"name":"activityTabFullyLoaded","time":999.0999999940395}],"measures":[],"correlationId":"2a162797293784","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":101,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}