Note: see also MDEV-7581, might be related.
Stack trace from 5.5 revno 4433
|
#3 <signal handler called>
|
#4 0x00000000006e67f1 in st_select_lex_unit::cleanup (this=0x7f502b649128) at 5.5/sql/sql_union.cc:887
|
#5 0x00000000006e6c19 in st_select_lex::cleanup (this=0x7f502b56a1d0) at 5.5/sql/sql_union.cc:1022
|
#6 0x000000000066c523 in mysql_select (thd=0x7f502c550060, rref_pointer_array=0x7f502b56a440, tables=0x7f502b554648, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=3489663744, result=0x7f502b662da8, unit=0x7f502b569af0, select_lex=0x7f502b56a1d0) at 5.5/sql/sql_select.cc:3106
|
#7 0x0000000000662f69 in handle_select (thd=0x7f502c550060, lex=0x7f502b569a40, result=0x7f502b662da8, setup_tables_done_option=1073741824) at 5.5/sql/sql_select.cc:319
|
#8 0x000000000063735d in mysql_execute_command (thd=0x7f502c550060) at 5.5/sql/sql_parse.cc:3060
|
#9 0x000000000091a5ac in sp_instr_stmt::exec_core (this=0x7f502b56b010, thd=0x7f502c550060, nextp=0x7f502bfb46a8) at 5.5/sql/sp_head.cc:3222
|
#10 0x0000000000919d91 in sp_lex_keeper::reset_lex_and_exec_core (this=0x7f502b56b050, thd=0x7f502c550060, nextp=0x7f502bfb46a8, open_tables=false, instr=0x7f502b56b010) at 5.5/sql/sp_head.cc:3000
|
#11 0x000000000091a310 in sp_instr_stmt::execute (this=0x7f502b56b010, thd=0x7f502c550060, nextp=0x7f502bfb46a8) at 5.5/sql/sp_head.cc:3146
|
#12 0x0000000000916144 in sp_head::execute (this=0x7f502b569078, thd=0x7f502c550060, merge_da_on_success=false) at 5.5/sql/sp_head.cc:1433
|
#13 0x0000000000916c13 in sp_head::execute_trigger (this=0x7f502b569078, thd=0x7f502c550060, db_name=0x7f502b458ca8, table_name=0x7f502b458cb8, grant_info=0x7f502b460728) at 5.5/sql/sp_head.cc:1738
|
#14 0x00000000006e0372 in Table_triggers_list::process_triggers (this=0x7f502b460678, thd=0x7f502c550060, event=TRG_EVENT_INSERT, time_type=TRG_ACTION_BEFORE, old_row_is_record1=true) at 5.5/sql/sql_trigger.cc:2156
|
#15 0x00000000005e4661 in fill_record_n_invoke_before_triggers (thd=0x7f502c550060, fields=..., values=..., ignore_errors=false, triggers=0x7f502b460678, event=TRG_EVENT_INSERT) at 5.5/sql/sql_base.cc:9068
|
#16 0x00000000006187bd in mysql_insert (thd=0x7f502c550060, table_list=0x7f502b687198, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false) at 5.5/sql/sql_insert.cc:907
|
#17 0x0000000000636ef1 in mysql_execute_command (thd=0x7f502c550060) at 5.5/sql/sql_parse.cc:2974
|
#18 0x000000000063ec8e in mysql_parse (thd=0x7f502c550060, rawbuf=0x7f502b687078 "INSERT INTO `view_DD` ( `pk` ) VALUES (NULL)", length=44, parser_state=0x7f502bfb5620) at 5.5/sql/sql_parse.cc:5909
|
#19 0x00000000006328d1 in dispatch_command (command=COM_QUERY, thd=0x7f502c550060, packet=0x7f502c607061 "INSERT INTO `view_DD` ( `pk` ) VALUES (NULL)", packet_length=44) at 5.5/sql/sql_parse.cc:1079
|
#20 0x0000000000631a5d in do_command (thd=0x7f502c550060) at 5.5/sql/sql_parse.cc:793
|
#21 0x00000000007340ea in do_handle_one_connection (thd_arg=0x7f502c550060) at 5.5/sql/sql_connect.cc:1266
|
#22 0x0000000000733ba9 in handle_one_connection (arg=0x7f502c550060) at 5.5/sql/sql_connect.cc:1181
|
#23 0x0000000000b6c2cd in pfs_spawn_thread (arg=0x7f502c571ca0) at 5.5/storage/perfschema/pfs.cc:1015
|
#24 0x00007f50327d5b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
|
#25 0x00007f5030a8b70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
|
Trying to get some variables.
|
Some pointers may be invalid and cause the dump to abort.
|
Query (0x7f502b662078): INSERT INTO `view_BB` SELECT * FROM `view_A` LIMIT 0
|
Connection ID (thread ID): 2
|
Status: NOT_KILLED
|
Test case
|
SET sql_mode = ONLY_FULL_GROUP_BY;
|
|
CREATE TABLE A (
|
pk INTEGER AUTO_INCREMENT,
|
col_int_key INTEGER,
|
col_varchar_key VARCHAR(1),
|
PRIMARY KEY (pk)
|
) ENGINE=MyISAM;
|
CREATE VIEW view_A AS SELECT * FROM A;
|
CREATE TABLE C (
|
pk INTEGER AUTO_INCREMENT,
|
col_int_nokey INTEGER,
|
col_int_key INTEGER,
|
col_date_key DATE,
|
col_date_nokey DATE,
|
col_time_key TIME,
|
col_time_nokey TIME,
|
col_datetime_key DATETIME,
|
col_datetime_nokey DATETIME,
|
col_varchar_key VARCHAR(1),
|
col_varchar_nokey VARCHAR(1),
|
PRIMARY KEY (pk)
|
) ENGINE=MyISAM;
|
CREATE VIEW view_C AS SELECT * FROM C;
|
CREATE TABLE AA (
|
pk INTEGER AUTO_INCREMENT,
|
col_int_nokey INTEGER,
|
col_int_key INTEGER,
|
col_date_key DATE,
|
col_date_nokey DATE,
|
col_time_key TIME,
|
col_time_nokey TIME,
|
col_datetime_key DATETIME,
|
col_datetime_nokey DATETIME,
|
col_varchar_key VARCHAR(1),
|
col_varchar_nokey VARCHAR(1),
|
PRIMARY KEY (pk),
|
KEY (col_varchar_key, col_int_key)
|
) ENGINE=MyISAM;
|
CREATE VIEW view_AA AS SELECT * FROM AA;
|
CREATE TABLE BB (
|
pk INTEGER AUTO_INCREMENT,
|
col_int_key INTEGER,
|
col_varchar_key VARCHAR(1),
|
col_varchar_nokey VARCHAR(1),
|
PRIMARY KEY (pk),
|
KEY (col_varchar_key, col_int_key)
|
) ENGINE=MyISAM;
|
CREATE VIEW view_BB AS SELECT * FROM BB;
|
CREATE TABLE DD (
|
pk INTEGER AUTO_INCREMENT,
|
col_int_key INTEGER,
|
col_date_key DATE,
|
col_time_key TIME,
|
col_datetime_key DATETIME,
|
col_varchar_key VARCHAR(1),
|
PRIMARY KEY (pk),
|
KEY (col_varchar_key, col_int_key)
|
) ENGINE=MyISAM;
|
CREATE VIEW view_DD AS SELECT * FROM DD;
|
CREATE TRIGGER k BEFORE INSERT ON `DD` FOR EACH ROW INSERT INTO `view_BB` SELECT * FROM `view_A` LIMIT 0 ;
|
CREATE TRIGGER r BEFORE INSERT ON `A` FOR EACH ROW INSERT INTO `view_AA` SELECT * FROM `view_C` LIMIT 0 ;
|
--error ER_WRONG_AUTO_KEY
|
ALTER TABLE `DD` DROP PRIMARY KEY;
|
INSERT INTO `view_A` ( `pk` ) VALUES (NULL);
|
--error 0,ER_WRONG_VALUE_COUNT_ON_ROW
|
INSERT INTO `DD` ( `pk` ) VALUES (NULL);
|
INSERT INTO `A` ( `pk` ) VALUES (NULL);
|
INSERT INTO `view_DD` ( `pk` ) VALUES (NULL);
|
Transition |
Time In Source Status |
Execution Times |
Open |
|
Closed |
|
93d 20h 59m
|
1
|
{"report":{"fcp":818.4000000357628,"ttfb":283.4000000357628,"pageVisibility":"visible","entityId":50046,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"23091b03-6d3b-4faa-a5ac-7678b74aa232","navigationType":0,"readyForUser":931.9000000357628,"redirectCount":0,"resourceLoadedEnd":975.1999999880791,"resourceLoadedStart":291.5,"resourceTiming":[{"duration":10.900000035762787,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":291.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":291.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":302.4000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":11,"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":291.69999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":291.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":302.69999998807907,"responseStart":0,"secureConnectionStart":0},{"duration":64.80000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":292,"connectEnd":292,"connectStart":292,"domainLookupEnd":292,"domainLookupStart":292,"fetchStart":292,"redirectEnd":0,"redirectStart":0,"requestStart":292,"responseEnd":356.80000001192093,"responseStart":356.80000001192093,"secureConnectionStart":292},{"duration":131,"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":292.60000002384186,"connectEnd":292.60000002384186,"connectStart":292.60000002384186,"domainLookupEnd":292.60000002384186,"domainLookupStart":292.60000002384186,"fetchStart":292.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":292.60000002384186,"responseEnd":423.60000002384186,"responseStart":423.60000002384186,"secureConnectionStart":292.60000002384186},{"duration":134.60000002384186,"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":292.80000001192093,"connectEnd":292.80000001192093,"connectStart":292.80000001192093,"domainLookupEnd":292.80000001192093,"domainLookupStart":292.80000001192093,"fetchStart":292.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":292.80000001192093,"responseEnd":427.4000000357628,"responseStart":427.4000000357628,"secureConnectionStart":292.80000001192093},{"duration":135.19999998807907,"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":292.9000000357628,"connectEnd":292.9000000357628,"connectStart":292.9000000357628,"domainLookupEnd":292.9000000357628,"domainLookupStart":292.9000000357628,"fetchStart":292.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":292.9000000357628,"responseEnd":428.10000002384186,"responseStart":428.10000002384186,"secureConnectionStart":292.9000000357628},{"duration":135.39999997615814,"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":293.10000002384186,"connectEnd":293.10000002384186,"connectStart":293.10000002384186,"domainLookupEnd":293.10000002384186,"domainLookupStart":293.10000002384186,"fetchStart":293.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":293.10000002384186,"responseEnd":428.5,"responseStart":428.5,"secureConnectionStart":293.10000002384186},{"duration":204.89999997615814,"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":293.30000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":293.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":498.19999998807907,"responseStart":0,"secureConnectionStart":0},{"duration":135.4000000357628,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":293.5,"connectEnd":293.5,"connectStart":293.5,"domainLookupEnd":293.5,"domainLookupStart":293.5,"fetchStart":293.5,"redirectEnd":0,"redirectStart":0,"requestStart":293.5,"responseEnd":428.9000000357628,"responseStart":428.9000000357628,"secureConnectionStart":293.5},{"duration":204.60000002384186,"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":293.69999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":293.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":498.30000001192093,"responseStart":0,"secureConnectionStart":0},{"duration":135.60000002384186,"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":293.80000001192093,"connectEnd":293.80000001192093,"connectStart":293.80000001192093,"domainLookupEnd":293.80000001192093,"domainLookupStart":293.80000001192093,"fetchStart":293.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":293.80000001192093,"responseEnd":429.4000000357628,"responseStart":429.4000000357628,"secureConnectionStart":293.80000001192093},{"duration":480.5,"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":307.4000000357628,"connectEnd":307.4000000357628,"connectStart":307.4000000357628,"domainLookupEnd":307.4000000357628,"domainLookupStart":307.4000000357628,"fetchStart":307.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":307.4000000357628,"responseEnd":787.9000000357628,"responseStart":787.9000000357628,"secureConnectionStart":307.4000000357628},{"duration":579.7999999523163,"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":307.9000000357628,"connectEnd":307.9000000357628,"connectStart":307.9000000357628,"domainLookupEnd":307.9000000357628,"domainLookupStart":307.9000000357628,"fetchStart":307.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":307.9000000357628,"responseEnd":887.6999999880791,"responseStart":887.6999999880791,"secureConnectionStart":307.9000000357628},{"duration":278.80000001192093,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":509.5,"connectEnd":509.5,"connectStart":509.5,"domainLookupEnd":509.5,"domainLookupStart":509.5,"fetchStart":509.5,"redirectEnd":0,"redirectStart":0,"requestStart":509.5,"responseEnd":788.3000000119209,"responseStart":788.3000000119209,"secureConnectionStart":509.5},{"duration":223.30000001192093,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":812.3000000119209,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":812.3000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1035.6000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":141.0999999642372,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":834.1000000238419,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":834.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":975.1999999880791,"responseStart":0,"secureConnectionStart":0},{"duration":98.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":835.1000000238419,"connectEnd":835.1000000238419,"connectStart":835.1000000238419,"domainLookupEnd":835.1000000238419,"domainLookupStart":835.1000000238419,"fetchStart":835.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":835.1000000238419,"responseEnd":933.6000000238419,"responseStart":933.6000000238419,"secureConnectionStart":835.1000000238419},{"duration":112.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/f51ef5507eea4c158f257c66c93b2a3f-CDN/lu2bu7/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":835.6000000238419,"connectEnd":835.6000000238419,"connectStart":835.6000000238419,"domainLookupEnd":835.6000000238419,"domainLookupStart":835.6000000238419,"fetchStart":835.6000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":835.6000000238419,"responseEnd":948.5,"responseStart":948.5,"secureConnectionStart":835.6000000238419}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":74,"responseStart":283,"responseEnd":307,"domLoading":286,"domInteractive":1075,"domContentLoadedEventStart":1075,"domContentLoadedEventEnd":1120,"domComplete":1857,"loadEventStart":1857,"loadEventEnd":1858,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1043.300000011921},{"name":"bigPipe.sidebar-id.end","time":1044},{"name":"bigPipe.activity-panel-pipe-id.start","time":1044.199999988079},{"name":"bigPipe.activity-panel-pipe-id.end","time":1045},{"name":"activityTabFullyLoaded","time":1134.699999988079}],"measures":[],"correlationId":"203ded2fa4f5a9","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":119,"dbReadsTimeInMs":18,"dbConnsTimeInMs":28,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}