When the following SQL is executed, the server crashes.
select avg(1) over (order by avg(1));
|
This also crashes with an actual table in the query.
create table test.t1 (id int);
|
insert into test.t1 values (1), (2), (3);
|
select avg(id) over (order by avg(id)) from test.t1);
|
The commit ID the server was built from is c35b8c46b404d035e54a23d667da5dff6502fc2e. I've attached the error log from the crash.
#3 <signal handler called>
|
#4 JOIN::make_aggr_tables_info (this=this@entry=0x7fac02cf28f8) at /data/src/10.2/sql/sql_select.cc:2713
|
#5 0x00007fac4af421f3 in JOIN::optimize_inner (this=this@entry=0x7fac02cf28f8) at /data/src/10.2/sql/sql_select.cc:1442
|
#6 0x00007fac4af4522f in JOIN::optimize (this=this@entry=0x7fac02cf28f8) at /data/src/10.2/sql/sql_select.cc:1076
|
#7 0x00007fac4af45bd5 in mysql_select (thd=thd@entry=0x7fac02d14070, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7fac02cf28d8, unit=0x7fac02d17b48, select_lex=0x7fac02d18278) at /data/src/10.2/sql/sql_select.cc:3570
|
#8 0x00007fac4af45e8d in handle_select (thd=thd@entry=0x7fac02d14070, lex=lex@entry=0x7fac02d17a80, result=result@entry=0x7fac02cf28d8, setup_tables_done_option=setup_tables_done_option@entry=0) at /data/src/10.2/sql/sql_select.cc:373
|
#9 0x00007fac4aed6849 in execute_sqlcom_select (thd=thd@entry=0x7fac02d14070, all_tables=0x0) at /data/src/10.2/sql/sql_parse.cc:6347
|
#10 0x00007fac4aedf6d2 in mysql_execute_command (thd=thd@entry=0x7fac02d14070) at /data/src/10.2/sql/sql_parse.cc:3370
|
#11 0x00007fac4aee92d2 in mysql_parse (thd=thd@entry=0x7fac02d14070, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7fac4bec6910, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /data/src/10.2/sql/sql_parse.cc:7790
|
#12 0x00007fac4aeeb55b in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x7fac02d14070, packet=packet@entry=0x7fac02e18071 "select avg(1) over (order by avg(1))", packet_length=packet_length@entry=36, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /data/src/10.2/sql/sql_parse.cc:1799
|
#13 0x00007fac4aeee08d in do_command (thd=0x7fac02d14070) at /data/src/10.2/sql/sql_parse.cc:1359
|
#14 0x00007fac4afdbf4a in do_handle_one_connection (connect=connect@entry=0x7fac48060130) at /data/src/10.2/sql/sql_connect.cc:1354
|
#15 0x00007fac4afdc133 in handle_one_connection (arg=0x7fac48060130) at /data/src/10.2/sql/sql_connect.cc:1260
|
#16 0x00007fac4a5dd0a4 in start_thread (arg=0x7fac4bec8300) at pthread_create.c:309
|
#17 0x00007fac48dfd87d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
|
- relates to
-
MDEV-11138
Server crashes in JOIN::make_aggr_tables_info on SELECT ROW_NUMBER() OVER ()
-
-
Closed
Transition |
Time In Source Status |
Execution Times |
Open |
|
In Progress |
|
46d 7h 53m
|
1
|
In Progress |
|
Closed |
|
1d 1h 2m
|
1
|
{"report":{"fcp":845.2000000476837,"ttfb":241.89999985694885,"pageVisibility":"visible","entityId":59406,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"18aa6642-0cb2-4770-bd2d-3cfc84870f3e","navigationType":0,"readyForUser":923.7000000476837,"redirectCount":0,"resourceLoadedEnd":336.7000000476837,"resourceLoadedStart":247,"resourceTiming":[{"duration":9,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":247,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":247,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":256,"responseStart":0,"secureConnectionStart":0},{"duration":9.900000095367432,"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":247.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":247.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":257.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":78.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":247.5,"connectEnd":247.5,"connectStart":247.5,"domainLookupEnd":247.5,"domainLookupStart":247.5,"fetchStart":247.5,"redirectEnd":0,"redirectStart":0,"requestStart":263.5,"responseEnd":325.89999985694885,"responseStart":276.59999990463257,"secureConnectionStart":247.5},{"duration":89.10000014305115,"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":247.59999990463257,"connectEnd":247.59999990463257,"connectStart":247.59999990463257,"domainLookupEnd":247.59999990463257,"domainLookupStart":247.59999990463257,"fetchStart":247.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":265.5,"responseEnd":336.7000000476837,"responseStart":300.7999999523163,"secureConnectionStart":247.59999990463257},{"duration":48.299999952316284,"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":247.79999995231628,"connectEnd":247.79999995231628,"connectStart":247.79999995231628,"domainLookupEnd":247.79999995231628,"domainLookupStart":247.79999995231628,"fetchStart":247.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":263.59999990463257,"responseEnd":296.09999990463257,"responseStart":290.7000000476837,"secureConnectionStart":247.79999995231628},{"duration":68.5,"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,"connectEnd":248,"connectStart":248,"domainLookupEnd":248,"domainLookupStart":248,"fetchStart":248,"redirectEnd":0,"redirectStart":0,"requestStart":273.7000000476837,"responseEnd":316.5,"responseStart":315.7000000476837,"secureConnectionStart":248},{"duration":67.5,"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":248.20000004768372,"connectEnd":248.20000004768372,"connectStart":248.20000004768372,"domainLookupEnd":248.20000004768372,"domainLookupStart":248.20000004768372,"fetchStart":248.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":274.2999999523163,"responseEnd":315.7000000476837,"responseStart":314.5,"secureConnectionStart":248.20000004768372},{"duration":23.90000009536743,"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":248.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":248.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":272.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":58,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":248.5,"connectEnd":248.5,"connectStart":248.5,"domainLookupEnd":248.5,"domainLookupStart":248.5,"fetchStart":248.5,"redirectEnd":0,"redirectStart":0,"requestStart":275.39999985694885,"responseEnd":306.5,"responseStart":305.59999990463257,"secureConnectionStart":248.5},{"duration":24.09999990463257,"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":248.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":248.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":272.89999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":48.200000047683716,"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":248.89999985694885,"connectEnd":274,"connectStart":274,"domainLookupEnd":274,"domainLookupStart":274,"fetchStart":248.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":274.89999985694885,"responseEnd":297.09999990463257,"responseStart":286,"secureConnectionStart":274},{"duration":40.09999990463257,"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":260,"connectEnd":260,"connectStart":260,"domainLookupEnd":260,"domainLookupStart":260,"fetchStart":260,"redirectEnd":0,"redirectStart":0,"requestStart":285.7000000476837,"responseEnd":300.09999990463257,"responseStart":297.7000000476837,"secureConnectionStart":260},{"duration":46.80000019073486,"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":260.89999985694885,"connectEnd":260.89999985694885,"connectStart":260.89999985694885,"domainLookupEnd":260.89999985694885,"domainLookupStart":260.89999985694885,"fetchStart":260.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":297,"responseEnd":307.7000000476837,"responseStart":307.2000000476837,"secureConnectionStart":260.89999985694885},{"duration":196.10000014305115,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":572.0999999046326,"connectEnd":572.0999999046326,"connectStart":572.0999999046326,"domainLookupEnd":572.0999999046326,"domainLookupStart":572.0999999046326,"fetchStart":572.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":735.5,"responseEnd":768.2000000476837,"responseStart":767.5,"secureConnectionStart":572.0999999046326},{"duration":149,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":818.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":818.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":967.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":90.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":834.2000000476837,"connectEnd":834.2000000476837,"connectStart":834.2000000476837,"domainLookupEnd":834.2000000476837,"domainLookupStart":834.2000000476837,"fetchStart":834.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":893.3999998569489,"responseEnd":924.7999999523163,"responseStart":923.7999999523163,"secureConnectionStart":834.2000000476837}],"fetchStart":0,"domainLookupStart":4,"domainLookupEnd":46,"connectStart":46,"connectEnd":67,"secureConnectionStart":55,"requestStart":67,"responseStart":242,"responseEnd":261,"domLoading":246,"domInteractive":995,"domContentLoadedEventStart":995,"domContentLoadedEventEnd":1042,"domComplete":1174,"loadEventStart":1174,"loadEventEnd":1175,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":972.7999999523163},{"name":"bigPipe.sidebar-id.end","time":973.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":973.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":974.7000000476837},{"name":"activityTabFullyLoaded","time":1059.5}],"measures":[],"correlationId":"a20ddd0f3b4db1","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":111,"dbReadsTimeInMs":19,"dbConnsTimeInMs":28,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}