Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
5.5(EOL) , 10.0(EOL) , 10.1(EOL) , 10.2(EOL) , 10.3(EOL)
The server crashes when running this script:
CREATE OR REPLACE TABLE t1 (a INT );
CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW SET @@NEW.a=0;
INSERT INTO t1 VALUES (1);
The expected behavior would be to return "Unknown system variable NEW".
5.5 0943b33de3
#3 <signal handler called>
#4 0x000000000056e0c9 in sys_var::do_deprecated_warning (this=0x1, thd=0x7f126766e060) at /data/src/5.5/sql/set_var.cc:269
#5 0x000000000056e88e in set_var::check (this=0x7f1266199e08, thd=0x7f126766e060) at /data/src/5.5/sql/set_var.cc:594
#6 0x000000000056e783 in sql_set_variables (thd=0x7f126766e060, var_list=0x7f1266180e08) at /data/src/5.5/sql/set_var.cc:563
#7 0x00000000006032d2 in mysql_execute_command (thd=0x7f126766e060) at /data/src/5.5/sql/sql_parse.cc:3246
#8 0x00000000008e0db4 in sp_instr_stmt::exec_core (this=0x7f1266199e58, thd=0x7f126766e060, nextp=0x7f126d3957f8) at /data/src/5.5/sql/sp_head.cc:3220
#9 0x00000000008e055b in sp_lex_keeper::reset_lex_and_exec_core (this=0x7f1266199e98, thd=0x7f126766e060, nextp=0x7f126d3957f8, open_tables=false, instr=0x7f1266199e58) at /data/src/5.5/sql/sp_head.cc:2998
#10 0x00000000008e0adc in sp_instr_stmt::execute (this=0x7f1266199e58, thd=0x7f126766e060, nextp=0x7f126d3957f8) at /data/src/5.5/sql/sp_head.cc:3144
#11 0x00000000008dc945 in sp_head::execute (this=0x7f1266198078, thd=0x7f126766e060, merge_da_on_success=false) at /data/src/5.5/sql/sp_head.cc:1431
#12 0x00000000008dd423 in sp_head::execute_trigger (this=0x7f1266198078, thd=0x7f126766e060, db_name=0x7f12660591a8, table_name=0x7f12660591b8, grant_info=0x7f1266060728) at /data/src/5.5/sql/sp_head.cc:1736
#13 0x00000000006acd66 in Table_triggers_list::process_triggers (this=0x7f1266060678, thd=0x7f126766e060, event=TRG_EVENT_INSERT, time_type=TRG_ACTION_BEFORE, old_row_is_record1=true) at /data/src/5.5/sql/sql_trigger.cc:2156
#14 0x00000000005af789 in fill_record_n_invoke_before_triggers (thd=0x7f126766e060, ptr=0x7f1267641288, values=..., ignore_errors=false, triggers=0x7f1266060678, event=TRG_EVENT_INSERT) at /data/src/5.5/sql/sql_base.cc:9234
#15 0x00000000005e3e39 in mysql_insert (thd=0x7f126766e060, table_list=0x7f1266148158, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false) at /data/src/5.5/sql/sql_insert.cc:952
#16 0x00000000006024e4 in mysql_execute_command (thd=0x7f126766e060) at /data/src/5.5/sql/sql_parse.cc:2965
#17 0x000000000060a1fe in mysql_parse (thd=0x7f126766e060, rawbuf=0x7f1266148078 "INSERT INTO t1 VALUES (1)", length=25, parser_state=0x7f126d396640) at /data/src/5.5/sql/sql_parse.cc:5923
#18 0x00000000005fdf13 in dispatch_command (command=COM_QUERY, thd=0x7f126766e060, packet=0x7f126b35b061 "INSERT INTO t1 VALUES (1)", packet_length=25) at /data/src/5.5/sql/sql_parse.cc:1066
#19 0x00000000005fd105 in do_command (thd=0x7f126766e060) at /data/src/5.5/sql/sql_parse.cc:793
#20 0x000000000070024f in do_handle_one_connection (thd_arg=0x7f126766e060) at /data/src/5.5/sql/sql_connect.cc:1268
#21 0x00000000006fffdc in handle_one_connection (arg=0x7f126766e060) at /data/src/5.5/sql/sql_connect.cc:1184
#22 0x0000000000a0e071 in pfs_spawn_thread (arg=0x7f1268376fc0) at /data/src/5.5/storage/perfschema/pfs.cc:1015
#23 0x00007f126d012494 in start_thread (arg=0x7f126d397700) at pthread_create.c:333
#24 0x00007f126ba2893f in clone () from /lib/x86_64-linux-gnu/libc.so.6
{"report":{"fcp":965.9000000059605,"ttfb":309.09999999403954,"pageVisibility":"visible","entityId":66426,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"4148bf69-932b-4807-a5f4-d9f6ca9e649d","navigationType":0,"readyForUser":1090.5,"redirectCount":0,"resourceLoadedEnd":691.5999999940395,"resourceLoadedStart":315.30000001192093,"resourceTiming":[{"duration":22.799999982118607,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":315.30000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":315.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":338.09999999403954,"responseStart":0,"secureConnectionStart":0},{"duration":23.600000023841858,"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":315.69999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":315.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":339.30000001192093,"responseStart":0,"secureConnectionStart":0},{"duration":247.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":315.80000001192093,"connectEnd":315.80000001192093,"connectStart":315.80000001192093,"domainLookupEnd":315.80000001192093,"domainLookupStart":315.80000001192093,"fetchStart":315.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":340.69999998807907,"responseEnd":563.6999999880791,"responseStart":356,"secureConnectionStart":315.80000001192093},{"duration":363.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":316.09999999403954,"connectEnd":316.09999999403954,"connectStart":316.09999999403954,"domainLookupEnd":316.09999999403954,"domainLookupStart":316.09999999403954,"fetchStart":316.09999999403954,"redirectEnd":0,"redirectStart":0,"requestStart":342.90000000596046,"responseEnd":679.4000000059605,"responseStart":360.69999998807907,"secureConnectionStart":316.09999999403954},{"duration":49,"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":316.19999998807907,"connectEnd":316.19999998807907,"connectStart":316.19999998807907,"domainLookupEnd":316.19999998807907,"domainLookupStart":316.19999998807907,"fetchStart":316.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":345.19999998807907,"responseEnd":365.19999998807907,"responseStart":363.90000000596046,"secureConnectionStart":316.19999998807907},{"duration":50,"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":316.40000000596046,"connectEnd":316.40000000596046,"connectStart":316.40000000596046,"domainLookupEnd":316.40000000596046,"domainLookupStart":316.40000000596046,"fetchStart":316.40000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":345.69999998807907,"responseEnd":366.40000000596046,"responseStart":365.59999999403954,"secureConnectionStart":316.40000000596046},{"duration":55.599999994039536,"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":316.59999999403954,"connectEnd":316.59999999403954,"connectStart":316.59999999403954,"domainLookupEnd":316.59999999403954,"domainLookupStart":316.59999999403954,"fetchStart":316.59999999403954,"redirectEnd":0,"redirectStart":0,"requestStart":345.90000000596046,"responseEnd":372.19999998807907,"responseStart":369.80000001192093,"secureConnectionStart":316.59999999403954},{"duration":28.299999982118607,"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":316.80000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":316.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":345.09999999403954,"responseStart":0,"secureConnectionStart":0},{"duration":55.400000005960464,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":317.09999999403954,"connectEnd":317.09999999403954,"connectStart":317.09999999403954,"domainLookupEnd":317.09999999403954,"domainLookupStart":317.09999999403954,"fetchStart":317.09999999403954,"redirectEnd":0,"redirectStart":0,"requestStart":347.59999999403954,"responseEnd":372.5,"responseStart":370.40000000596046,"secureConnectionStart":317.09999999403954},{"duration":28.900000005960464,"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":317.19999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":317.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":346.09999999403954,"responseStart":0,"secureConnectionStart":0},{"duration":55.89999997615814,"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":317.30000001192093,"connectEnd":317.30000001192093,"connectStart":317.30000001192093,"domainLookupEnd":317.30000001192093,"domainLookupStart":317.30000001192093,"fetchStart":317.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":348.40000000596046,"responseEnd":373.19999998807907,"responseStart":371.30000001192093,"secureConnectionStart":317.30000001192093},{"duration":368.09999999403954,"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":323,"connectEnd":323,"connectStart":323,"domainLookupEnd":323,"domainLookupStart":323,"fetchStart":323,"redirectEnd":0,"redirectStart":0,"requestStart":412,"responseEnd":691.0999999940395,"responseStart":682.9000000059605,"secureConnectionStart":323},{"duration":365.7999999821186,"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":325.80000001192093,"connectEnd":325.80000001192093,"connectStart":325.80000001192093,"domainLookupEnd":325.80000001192093,"domainLookupStart":325.80000001192093,"fetchStart":325.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":455.30000001192093,"responseEnd":691.5999999940395,"responseStart":685.8000000119209,"secureConnectionStart":325.80000001192093},{"duration":88.7000000178814,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":718.6999999880791,"connectEnd":718.6999999880791,"connectStart":718.6999999880791,"domainLookupEnd":718.6999999880791,"domainLookupStart":718.6999999880791,"fetchStart":718.6999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":773.9000000059605,"responseEnd":807.4000000059605,"responseStart":806.6999999880791,"secureConnectionStart":718.6999999880791},{"duration":189.7000000178814,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":959.6999999880791,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":959.6999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1149.4000000059605,"responseStart":0,"secureConnectionStart":0},{"duration":195.40000000596046,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":965.6999999880791,"connectEnd":965.6999999880791,"connectStart":965.6999999880791,"domainLookupEnd":965.6999999880791,"domainLookupStart":965.6999999880791,"fetchStart":965.6999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":1123,"responseEnd":1161.0999999940395,"responseStart":1160.5999999940395,"secureConnectionStart":965.6999999880791}],"fetchStart":0,"domainLookupStart":12,"domainLookupEnd":54,"connectStart":54,"connectEnd":73,"secureConnectionStart":62,"requestStart":75,"responseStart":309,"responseEnd":325,"domLoading":313,"domInteractive":1155,"domContentLoadedEventStart":1155,"domContentLoadedEventEnd":1201,"domComplete":2193,"loadEventStart":2193,"loadEventEnd":2193,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1135.800000011921},{"name":"bigPipe.sidebar-id.end","time":1136.699999988079},{"name":"bigPipe.activity-panel-pipe-id.start","time":1136.800000011921},{"name":"bigPipe.activity-panel-pipe-id.end","time":1139.300000011921},{"name":"activityTabFullyLoaded","time":1212.0999999940395}],"measures":[],"correlationId":"aa684575afde39","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":153,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}