# Note: the subquery with union is not necessary, there can be a normal table instead
|
SELECT STDDEV_POP( ROUND( 0, @A := 2009 ) ) FROM ( SELECT 1 UNION SELECT 2 ) fake_table;
|
|
10.0/sql/item_sum.cc:1781: virtual double Item_sum_std::val_real(): Assertion `nr >= 0.0' failed.
|
140304 3:23:42 [ERROR] mysqld got signal 6 ;
|
#6 0x00007f5bddbac621 in *__GI___assert_fail (assertion=0xfcc526 "nr >= 0.0", file=<optimized out>, line=1781, function=0xfcd940 "virtual double Item_sum_std::val_real()") at assert.c:81
|
#7 0x000000000090b406 in Item_sum_std::val_real (this=0x7f5bcbdde878) at 10.0/sql/item_sum.cc:1781
|
#8 0x000000000087c671 in Item::send (this=0x7f5bcbdde878, protocol=0x7f5bd6f7d5f8, buffer=0x7f5bdfacce90) at 10.0/sql/item.cc:6603
|
#9 0x00000000005ccb24 in Protocol::send_result_set_row (this=0x7f5bd6f7d5f8, row_items=0x7f5bcbf51450) at 10.0/sql/protocol.cc:900
|
#10 0x0000000000638d6d in select_send::send_data (this=0x7f5bcbde0038, items=...) at 10.0/sql/sql_class.cc:2552
|
#11 0x00000000006d3f03 in end_send_group (join=0x7f5bcbf51088, join_tab=0x7f5bcbf53448, end_of_records=true) at 10.0/sql/sql_select.cc:18660
|
#12 0x00000000006d0c4c in sub_select (join=0x7f5bcbf51088, join_tab=0x7f5bcbf53120, end_of_records=true) at 10.0/sql/sql_select.cc:17370
|
#13 0x00000000006d0734 in do_select (join=0x7f5bcbf51088, fields=0x7f5bcbf51450, table=0x0, procedure=0x0) at 10.0/sql/sql_select.cc:17081
|
#14 0x00000000006ae2be in JOIN::exec_inner (this=0x7f5bcbf51088) at 10.0/sql/sql_select.cc:3065
|
#15 0x00000000006ab7d0 in JOIN::exec (this=0x7f5bcbf51088) at 10.0/sql/sql_select.cc:2355
|
#16 0x00000000006aeb4f in mysql_select (thd=0x7f5bd6f7d070, rref_pointer_array=0x7f5bd6f816a0, tables=0x7f5bcbf50a28, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f5bcbde0038, unit=0x7f5bd6f80d48, select_lex=0x7f5bd6f81428) at 10.0/sql/sql_select.cc:3292
|
#17 0x00000000006a527f in handle_select (thd=0x7f5bd6f7d070, lex=0x7f5bd6f80c88, result=0x7f5bcbde0038, setup_tables_done_option=0) at 10.0/sql/sql_select.cc:372
|
#18 0x000000000067a251 in execute_sqlcom_select (thd=0x7f5bd6f7d070, all_tables=0x7f5bcbf50a28) at 10.0/sql/sql_parse.cc:5301
|
#19 0x00000000006725fc in mysql_execute_command (thd=0x7f5bd6f7d070) at 10.0/sql/sql_parse.cc:2587
|
#20 0x000000000067c9db in mysql_parse (thd=0x7f5bd6f7d070, rawbuf=0x7f5bcbdde088 "SELECT STDDEV_POP( ROUND( 0, @A := 2009 ) ) FROM ( SELECT 1 UNION SELECT 2 ) fake_table", length=87, parser_state=0x7f5bdface630) at 10.0/sql/sql_parse.cc:6447
|
#21 0x000000000066f7a9 in dispatch_command (command=COM_QUERY, thd=0x7f5bd6f7d070, packet=0x7f5bd23e0071 "", packet_length=87) at 10.0/sql/sql_parse.cc:1308
|
#22 0x000000000066eb4b in do_command (thd=0x7f5bd6f7d070) at 10.0/sql/sql_parse.cc:1005
|
#23 0x00000000007880ed in do_handle_one_connection (thd_arg=0x7f5bd6f7d070) at 10.0/sql/sql_connect.cc:1379
|
#24 0x0000000000787e40 in handle_one_connection (arg=0x7f5bd6f7d070) at 10.0/sql/sql_connect.cc:1293
|
#25 0x0000000000a2cac5 in pfs_spawn_thread (arg=0x7f5bd5bebdb0) at 10.0/storage/perfschema/pfs.cc:1853
|
#26 0x00007f5bdf750b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
|
#27 0x00007f5bddc5ba7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
|
revision-id: sergii@pisem.net-20140228200458-2nzjwfzn554m5aja
|
revno: 4017
|
branch-nick: 10.0
|
{"report":{"fcp":1267.7999992370605,"ttfb":442.3999996185303,"pageVisibility":"visible","entityId":31904,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"724db5d6-f380-4dcc-988b-ac302e09f334","navigationType":0,"readyForUser":1371.8999996185303,"redirectCount":0,"resourceLoadedEnd":1440,"resourceLoadedStart":450.19999980926514,"resourceTiming":[{"duration":287.8999996185303,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":450.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":450.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":738.0999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":288.0999994277954,"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":450.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":450.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":738.5999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":342.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":450.69999980926514,"connectEnd":450.69999980926514,"connectStart":450.69999980926514,"domainLookupEnd":450.69999980926514,"domainLookupStart":450.69999980926514,"fetchStart":450.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":450.69999980926514,"responseEnd":792.8999996185303,"responseStart":792.8999996185303,"secureConnectionStart":450.69999980926514},{"duration":403,"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":450.8999996185303,"connectEnd":450.8999996185303,"connectStart":450.8999996185303,"domainLookupEnd":450.8999996185303,"domainLookupStart":450.8999996185303,"fetchStart":450.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":450.8999996185303,"responseEnd":853.8999996185303,"responseStart":853.8999996185303,"secureConnectionStart":450.8999996185303},{"duration":406.80000019073486,"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":451.0999994277954,"connectEnd":451.0999994277954,"connectStart":451.0999994277954,"domainLookupEnd":451.0999994277954,"domainLookupStart":451.0999994277954,"fetchStart":451.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":451.0999994277954,"responseEnd":857.8999996185303,"responseStart":857.8999996185303,"secureConnectionStart":451.0999994277954},{"duration":407.6000003814697,"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":451.29999923706055,"connectEnd":451.29999923706055,"connectStart":451.29999923706055,"domainLookupEnd":451.29999923706055,"domainLookupStart":451.29999923706055,"fetchStart":451.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":451.29999923706055,"responseEnd":858.8999996185303,"responseStart":858.8999996185303,"secureConnectionStart":451.29999923706055},{"duration":408.3999996185303,"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":451.5,"connectEnd":451.5,"connectStart":451.5,"domainLookupEnd":451.5,"domainLookupStart":451.5,"fetchStart":451.5,"redirectEnd":0,"redirectStart":0,"requestStart":451.5,"responseEnd":859.8999996185303,"responseStart":859.7999992370605,"secureConnectionStart":451.5},{"duration":493.3999996185303,"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":451.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":451.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":945.0999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":409.6000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":451.79999923706055,"connectEnd":451.79999923706055,"connectStart":451.79999923706055,"domainLookupEnd":451.79999923706055,"domainLookupStart":451.79999923706055,"fetchStart":451.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":451.79999923706055,"responseEnd":861.3999996185303,"responseStart":861.3999996185303,"secureConnectionStart":451.79999923706055},{"duration":493.19999980926514,"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":452,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":452,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":945.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":410.5999994277954,"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":452.19999980926514,"connectEnd":452.19999980926514,"connectStart":452.19999980926514,"domainLookupEnd":452.19999980926514,"domainLookupStart":452.19999980926514,"fetchStart":452.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":452.19999980926514,"responseEnd":862.7999992370605,"responseStart":862.6999998092651,"secureConnectionStart":452.19999980926514},{"duration":637.5,"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":453.0999994277954,"connectEnd":453.0999994277954,"connectStart":453.0999994277954,"domainLookupEnd":453.0999994277954,"domainLookupStart":453.0999994277954,"fetchStart":453.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":453.0999994277954,"responseEnd":1090.5999994277954,"responseStart":1090.5999994277954,"secureConnectionStart":453.0999994277954},{"duration":981.1999998092651,"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":453.0999994277954,"connectEnd":453.0999994277954,"connectStart":453.0999994277954,"domainLookupEnd":453.0999994277954,"domainLookupStart":453.0999994277954,"fetchStart":453.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":453.0999994277954,"responseEnd":1434.2999992370605,"responseStart":1434.2999992370605,"secureConnectionStart":453.0999994277954},{"duration":134.9000005722046,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":956.7999992370605,"connectEnd":956.7999992370605,"connectStart":956.7999992370605,"domainLookupEnd":956.7999992370605,"domainLookupStart":956.7999992370605,"fetchStart":956.7999992370605,"redirectEnd":0,"redirectStart":0,"requestStart":956.7999992370605,"responseEnd":1091.6999998092651,"responseStart":1091.6999998092651,"secureConnectionStart":956.7999992370605},{"duration":221.10000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/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&whisper-enabled=true","startTime":1218.8999996185303,"connectEnd":1218.8999996185303,"connectStart":1218.8999996185303,"domainLookupEnd":1218.8999996185303,"domainLookupStart":1218.8999996185303,"fetchStart":1218.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":1218.8999996185303,"responseEnd":1440,"responseStart":1439.8999996185303,"secureConnectionStart":1218.8999996185303},{"duration":226.9000005722046,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1260.5999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1260.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1487.5,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":256,"responseStart":442,"responseEnd":444,"domLoading":447,"domInteractive":1488,"domContentLoadedEventStart":1488,"domContentLoadedEventEnd":1539,"domComplete":1705,"loadEventStart":1705,"loadEventEnd":1706,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1455.3999996185303},{"name":"bigPipe.sidebar-id.end","time":1456.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1456.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":1458.3999996185303},{"name":"activityTabFullyLoaded","time":1553.1999998092651}],"measures":[],"correlationId":"48b21f9f9cbad1","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":113,"dbReadsTimeInMs":18,"dbConnsTimeInMs":30,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
There is a difference in how ROUND works in integer and real context:
mysql> SELECT ROUND(0, @A := 2009);
+----------------------+
| ROUND(0, @A := 2009) |
+----------------------+
| 0 |
+----------------------+
1 row in set (0.85 sec)
mysql> SELECT ROUND(0, @A := 2009)+0e0;
ERROR 1690 (22003): DOUBLE value is out of range in '(round(0,(@A:=2009)) + 0e0)'
mysql> SELECT ROUND(0, @A := 2009);
+----------------------+
| ROUND(0, @A := 2009) |
+----------------------+
| 0 |
+----------------------+
1 row in set (1.24 sec)
mysql> SELECT ROUND(0, @A := 2009)+0e0;
ERROR 1690 (22003): DOUBLE value is out of range in '(round(0,(@A:=2009)) + 0e0)'
Which seems to be the source of the crashing problem.