Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
10.5.11 , 10.2(EOL) , 10.3(EOL) , 10.4(EOL) , 10.5 , 10.6
Running a quite long CTE [over 170 lines] in a procedure suddenly crashes the server. It looks to me that it started with 10.5.11 as before i worked perfectly. Below the dump. For the moment I don't want to publish the CTE but I can do it privately.
Running the CTE command NOT in a stored procedure works so I have for the moment a work-around.
{{Server version: 10.5.11-MariaDB
key_buffer_size=134217728
read_buffer_size=131072
max_used_connections=2
max_threads=153
thread_count=2
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467873 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x7fdf0c0009b8
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0x7fdf68117c90 thread_stack 0x49000
??:0(my_print_stacktrace)[0x559fcba7579e]
??:0(handle_fatal_signal)[0x559fcb47a457]
sigaction.c:0(__restore_rt)[0x7fdf81fa4630]
??:0(Item_cond_and::mark_as_condition_AND_part(TABLE_LIST*))[0x559fcb4b2d96]
??:0(setup_conds(THD*, TABLE_LIST*, List<TABLE_LIST>&, Item**))[0x559fcb20de29]
??:0(JOIN::prepare(TABLE_LIST*, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x559fcb2bedcf]
??:0(st_select_lex_unit::prepare_join(THD*, st_select_lex*, select_result*, unsigned long long, bool))[0x559fcb31b7ed]
??:0(st_select_lex_unit::prepare(TABLE_LIST*, select_result*, unsigned long long))[0x559fcb31fda6]
??:0(TABLE_LIST::find_derived_handler(THD*))[0x559fcb2335b2]
??:0(mysql_handle_single_derived(LEX*, TABLE_LIST*, unsigned int))[0x559fcb2325ad]
??:0(st_select_lex::handle_derived(LEX*, unsigned int))[0x559fcb24d3d7]
??:0(TABLE_LIST::handle_derived(LEX*, unsigned int))[0x559fcb335f06]
??:0(st_select_lex::handle_derived(LEX*, unsigned int))[0x559fcb24d3d7]
??:0(TABLE_LIST::handle_derived(LEX*, unsigned int))[0x559fcb335f06]
??:0(mysql_prepare_insert(THD*, TABLE_LIST*, List<Item>&, List<Item>, List<Item>&, List<Item>&, enum_duplicates, Item *, bool))[0x559fcb239bd2]
??:0(mysql_insert_select_prepare(THD*, select_result*))[0x559fcb23e216]
??:0(mysql_execute_command(THD*))[0x559fcb278900]
??:0(sp_instr_stmt::exec_core(THD*, unsigned int*))[0x559fcb1ce506]
??:0(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x559fcb1d6fe2]
??:0(sp_instr_stmt::execute(THD*, unsigned int*))[0x559fcb1d79dc]
??:0(sp_head::execute(THD*, bool))[0x559fcb1d2524]
??:0(sp_head::execute_procedure(THD*, List<Item>*))[0x559fcb1d3c1f]
??:0(comp_ne_creator(bool))[0x559fcb26aaca]
??:0(Sql_cmd_call::execute(THD*))[0x559fcb26f48a]
??:0(mysql_execute_command(THD*))[0x559fcb2772be]
??:0(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x559fcb27b1c5]
??:0(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x559fcb27d891]
??:0(do_command(THD*))[0x559fcb27f03f]
??:0(do_handle_one_connection(CONNECT*, bool))[0x559fcb369b52]
??:0(handle_one_connection)[0x559fcb369e14]
??:0(MyCTX_nopad::finish(unsigned char*, unsigned int*))[0x559fcb6c756d]
pthread_create.c:0(start_thread)[0x7fdf81f9cea5]
??:0(__clone)[0x7fdf814b79fd]
}}
{{Connection ID (thread ID): 10
Status: NOT_KILLED
Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on,condition_pushdown_for_subquery=on,rowid_filter=on,condition_pushdown_from_having=on,not_null_range_scan=off}}
{"report":{"fcp":867.6000003814697,"ttfb":316.3999996185303,"pageVisibility":"visible","entityId":100829,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"5c90c691-0e3e-4147-bc0f-fb5aa2d1b233","navigationType":0,"readyForUser":982.3000001907349,"redirectCount":0,"resourceLoadedEnd":926.1999998092651,"resourceLoadedStart":321.8999996185303,"resourceTiming":[{"duration":57.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":321.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":321.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":379.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":58.09999942779541,"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":322.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":322.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":380.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":111.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":322.19999980926514,"connectEnd":322.19999980926514,"connectStart":322.19999980926514,"domainLookupEnd":322.19999980926514,"domainLookupStart":322.19999980926514,"fetchStart":322.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":322.19999980926514,"responseEnd":433.69999980926514,"responseStart":433.69999980926514,"secureConnectionStart":322.19999980926514},{"duration":215.80000019073486,"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":322.3999996185303,"connectEnd":322.3999996185303,"connectStart":322.3999996185303,"domainLookupEnd":322.3999996185303,"domainLookupStart":322.3999996185303,"fetchStart":322.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":322.3999996185303,"responseEnd":538.1999998092651,"responseStart":538.1999998092651,"secureConnectionStart":322.3999996185303},{"duration":220.10000038146973,"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":322.5,"connectEnd":322.5,"connectStart":322.5,"domainLookupEnd":322.5,"domainLookupStart":322.5,"fetchStart":322.5,"redirectEnd":0,"redirectStart":0,"requestStart":322.5,"responseEnd":542.6000003814697,"responseStart":542.6000003814697,"secureConnectionStart":322.5},{"duration":220.5,"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":322.5,"connectEnd":322.5,"connectStart":322.5,"domainLookupEnd":322.5,"domainLookupStart":322.5,"fetchStart":322.5,"redirectEnd":0,"redirectStart":0,"requestStart":322.5,"responseEnd":543,"responseStart":543,"secureConnectionStart":322.5},{"duration":220.79999923706055,"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":322.6000003814697,"connectEnd":322.6000003814697,"connectStart":322.6000003814697,"domainLookupEnd":322.6000003814697,"domainLookupStart":322.6000003814697,"fetchStart":322.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":322.6000003814697,"responseEnd":543.3999996185303,"responseStart":543.3999996185303,"secureConnectionStart":322.6000003814697},{"duration":221.10000038146973,"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":322.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":322.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":543.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":220.9000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":322.8999996185303,"connectEnd":322.8999996185303,"connectStart":322.8999996185303,"domainLookupEnd":322.8999996185303,"domainLookupStart":322.8999996185303,"fetchStart":322.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":322.8999996185303,"responseEnd":543.8000001907349,"responseStart":543.8000001907349,"secureConnectionStart":322.8999996185303},{"duration":221.0999994277954,"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":323.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":323.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":544.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":221.19999980926514,"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":323.19999980926514,"connectEnd":323.19999980926514,"connectStart":323.19999980926514,"domainLookupEnd":323.19999980926514,"domainLookupStart":323.19999980926514,"fetchStart":323.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":323.19999980926514,"responseEnd":544.3999996185303,"responseStart":544.3999996185303,"secureConnectionStart":323.19999980926514},{"duration":441.8999996185303,"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":324,"connectEnd":324,"connectStart":324,"domainLookupEnd":324,"domainLookupStart":324,"fetchStart":324,"redirectEnd":0,"redirectStart":0,"requestStart":324,"responseEnd":765.8999996185303,"responseStart":765.8999996185303,"secureConnectionStart":324},{"duration":599,"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":324.1000003814697,"connectEnd":324.1000003814697,"connectStart":324.1000003814697,"domainLookupEnd":324.1000003814697,"domainLookupStart":324.1000003814697,"fetchStart":324.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":324.1000003814697,"responseEnd":923.1000003814697,"responseStart":923.1000003814697,"secureConnectionStart":324.1000003814697},{"duration":176.69999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":589.6000003814697,"connectEnd":589.6000003814697,"connectStart":589.6000003814697,"domainLookupEnd":589.6000003814697,"domainLookupStart":589.6000003814697,"fetchStart":589.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":589.6000003814697,"responseEnd":766.3000001907349,"responseStart":766.3000001907349,"secureConnectionStart":589.6000003814697},{"duration":117.69999980926514,"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":808.5,"connectEnd":808.5,"connectStart":808.5,"domainLookupEnd":808.5,"domainLookupStart":808.5,"fetchStart":808.5,"redirectEnd":0,"redirectStart":0,"requestStart":808.5,"responseEnd":926.1999998092651,"responseStart":926.1999998092651,"secureConnectionStart":808.5},{"duration":101.40000057220459,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":861.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":861.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":962.6000003814697,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":164,"responseStart":316,"responseEnd":317,"domLoading":319,"domInteractive":1044,"domContentLoadedEventStart":1044,"domContentLoadedEventEnd":1094,"domComplete":1304,"loadEventStart":1304,"loadEventEnd":1304,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1018},{"name":"bigPipe.sidebar-id.end","time":1018.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1019},{"name":"bigPipe.activity-panel-pipe-id.end","time":1020.6000003814697},{"name":"activityTabFullyLoaded","time":1113.5}],"measures":[],"correlationId":"6bf03f7f5eaf24","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":105,"dbReadsTimeInMs":29,"dbConnsTimeInMs":38,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}