Yet another one which looks a bit different from MDEV-15873, MDEV-12059, MDEV-20754.
CREATE TABLE t1 (a INT);
|
INSERT INTO t1 VALUES (1),(2);
|
SELECT a FROM t1 GROUP BY a, IFNULL( ( NULL DIV ( 2008 >> 0 ) ), @x := 0 );
|
|
# Cleanup
|
DROP TABLE t1;
|
10.2 959fc0c0
|
mysqld: /data/src/10.2/strings/decimal.c:1466: decimal_bin_size: Assertion `precision > 0' failed.
|
200220 22:08:02 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f5c302e1f12 in __GI___assert_fail (assertion=0x563f9f854725 "precision > 0", file=0x563f9f8544a0 "/data/src/10.2/strings/decimal.c", line=1466, function=0x563f9f8549a0 <__PRETTY_FUNCTION__.11547> "decimal_bin_size") at assert.c:101
|
#8 0x0000563f9f3eb048 in decimal_bin_size (precision=0, scale=0) at /data/src/10.2/strings/decimal.c:1466
|
#9 0x0000563f9ea59207 in my_decimal_get_binary_size (precision=0, scale=0) at /data/src/10.2/sql/my_decimal.h:263
|
#10 0x0000563f9ec257d7 in Field_new_decimal::Field_new_decimal (this=0x7f5c1806db58, len_arg=0, maybe_null_arg=false, name=0x0, dec_arg=0 '\000', unsigned_arg=false) at /data/src/10.2/sql/field.cc:3141
|
#11 0x0000563f9ec25959 in Field_new_decimal::create_from_item (mem_root=0x7f5c1806d1a0, item=0x7f5c18013430) at /data/src/10.2/sql/field.cc:3186
|
#12 0x0000563f9ea3d1ad in Item::create_tmp_field (this=0x7f5c18013430, group=false, table=0x7f5c1806c6e8, convert_int_length=9) at /data/src/10.2/sql/sql_select.cc:16339
|
#13 0x0000563f9e8fd651 in Item::create_tmp_field (this=0x7f5c18013430, group=false, table=0x7f5c1806c6e8) at /data/src/10.2/sql/item.h:1868
|
#14 0x0000563f9ea3d2b2 in create_tmp_field_from_item (thd=0x7f5c18000af0, item=0x7f5c18013430, table=0x7f5c1806c6e8, copy_func=0x7f5c2a613930, modify_item=true) at /data/src/10.2/sql/sql_select.cc:16382
|
#15 0x0000563f9ea3da1f in create_tmp_field (thd=0x7f5c18000af0, table=0x7f5c1806c6e8, item=0x7f5c18013430, type=Item::FUNC_ITEM, copy_func=0x7f5c2a613930, from_field=0x7f5c1806d798, default_field=0x7f5c1806d778, group=true, modify_item=true, table_cant_handle_bit_fields=false, make_copy_field=false) at /data/src/10.2/sql/sql_select.cc:16602
|
#16 0x0000563f9ea3ee56 in create_tmp_table (thd=0x7f5c18000af0, param=0x7f5c180153a0, fields=..., group=0x7f5c18012de0, distinct=false, save_sum_fields=false, select_options=2147748608, rows_limit=18446744073709551615, table_alias=0x563f9f465ea2 "", do_not_open=true, keep_row_order=false) at /data/src/10.2/sql/sql_select.cc:16975
|
#17 0x0000563f9ea1a8f7 in JOIN::create_postjoin_aggr_table (this=0x7f5c18013640, tab=0x7f5c18014c30, table_fields=0x7f5c18013960, table_group=0x7f5c18012de0, save_sum_fields=false, distinct=false, keep_row_order=false) at /data/src/10.2/sql/sql_select.cc:2964
|
#18 0x0000563f9ea19146 in JOIN::make_aggr_tables_info (this=0x7f5c18013640) at /data/src/10.2/sql/sql_select.cc:2566
|
#19 0x0000563f9ea17d05 in JOIN::optimize_inner (this=0x7f5c18013640) at /data/src/10.2/sql/sql_select.cc:2237
|
#20 0x0000563f9ea13e1f in JOIN::optimize (this=0x7f5c18013640) at /data/src/10.2/sql/sql_select.cc:1113
|
#21 0x0000563f9ea1d32a in mysql_select (thd=0x7f5c18000af0, tables=0x7f5c180126a8, wild_num=0, fields=..., conds=0x0, og_num=2, order=0x0, group=0x7f5c18012de0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f5c18013620, unit=0x7f5c180046e8, select_lex=0x7f5c18004e28) at /data/src/10.2/sql/sql_select.cc:3810
|
#22 0x0000563f9ea115c4 in handle_select (thd=0x7f5c18000af0, lex=0x7f5c18004628, result=0x7f5c18013620, setup_tables_done_option=0) at /data/src/10.2/sql/sql_select.cc:361
|
#23 0x0000563f9e9dcd48 in execute_sqlcom_select (thd=0x7f5c18000af0, all_tables=0x7f5c180126a8) at /data/src/10.2/sql/sql_parse.cc:6224
|
#24 0x0000563f9e9d3751 in mysql_execute_command (thd=0x7f5c18000af0) at /data/src/10.2/sql/sql_parse.cc:3531
|
#25 0x0000563f9e9e0bea in mysql_parse (thd=0x7f5c18000af0, rawbuf=0x7f5c18012448 "SELECT a FROM t1 GROUP BY a, IFNULL( ( NULL DIV ( 2008 >> 0 ) ), @x := 0 )", length=74, parser_state=0x7f5c2a615200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:7739
|
#26 0x0000563f9e9cef43 in dispatch_command (command=COM_QUERY, thd=0x7f5c18000af0, packet=0x7f5c1808c841 "SELECT a FROM t1 GROUP BY a, IFNULL( ( NULL DIV ( 2008 >> 0 ) ), @x := 0 )", packet_length=74, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1831
|
#27 0x0000563f9e9cd897 in do_command (thd=0x7f5c18000af0) at /data/src/10.2/sql/sql_parse.cc:1384
|
#28 0x0000563f9eb228d3 in do_handle_one_connection (connect=0x563fa1a019f0) at /data/src/10.2/sql/sql_connect.cc:1336
|
#29 0x0000563f9eb2263e in handle_one_connection (arg=0x563fa1a019f0) at /data/src/10.2/sql/sql_connect.cc:1241
|
#30 0x0000563f9f33e6de in pfs_spawn_thread (arg=0x563fa1a68150) at /data/src/10.2/storage/perfschema/pfs.cc:1869
|
#31 0x00007f5c3226a4a4 in start_thread (arg=0x7f5c2a616700) at pthread_create.c:456
|
#32 0x00007f5c3039ed0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
|
Reproducible on 5.5, 10.1, 10.2.
Not reproducible on 10.3+.
No obvious problem on a non-debug build, including non-debug-ASAN.
Transition |
Time In Source Status |
Execution Times |
Open |
|
Closed |
|
1254d 2h
|
1
|
{"report":{"fcp":711.0999999046326,"ttfb":184,"pageVisibility":"visible","entityId":83425,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"61709033-a28c-4f17-abc3-b72526cd196c","navigationType":0,"readyForUser":778.3999998569489,"redirectCount":0,"resourceLoadedEnd":602.6999998092651,"resourceLoadedStart":192.09999990463257,"resourceTiming":[{"duration":28.299999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":192.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":192.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":220.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":29.59999990463257,"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":192.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":192.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":221.89999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":76.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":192.5,"connectEnd":192.5,"connectStart":192.5,"domainLookupEnd":192.5,"domainLookupStart":192.5,"fetchStart":192.5,"redirectEnd":0,"redirectStart":0,"requestStart":222.79999995231628,"responseEnd":269.09999990463257,"responseStart":235.89999985694885,"secureConnectionStart":192.5},{"duration":54.200000047683716,"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":192.59999990463257,"connectEnd":192.59999990463257,"connectStart":192.59999990463257,"domainLookupEnd":192.59999990463257,"domainLookupStart":192.59999990463257,"fetchStart":192.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":225.59999990463257,"responseEnd":246.79999995231628,"responseStart":246.09999990463257,"secureConnectionStart":192.59999990463257},{"duration":101.90000009536743,"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":192.59999990463257,"connectEnd":192.59999990463257,"connectStart":192.59999990463257,"domainLookupEnd":192.59999990463257,"domainLookupStart":192.59999990463257,"fetchStart":192.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":223.5,"responseEnd":294.5,"responseStart":241.09999990463257,"secureConnectionStart":192.59999990463257},{"duration":53.299999952316284,"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":192.79999995231628,"connectEnd":192.79999995231628,"connectStart":192.79999995231628,"domainLookupEnd":192.79999995231628,"domainLookupStart":192.79999995231628,"fetchStart":192.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":226.59999990463257,"responseEnd":246.09999990463257,"responseStart":245.39999985694885,"secureConnectionStart":192.79999995231628},{"duration":58.799999952316284,"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":192.89999985694885,"connectEnd":192.89999985694885,"connectStart":192.89999985694885,"domainLookupEnd":192.89999985694885,"domainLookupStart":192.89999985694885,"fetchStart":192.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":227.5,"responseEnd":251.69999980926514,"responseStart":251.09999990463257,"secureConnectionStart":192.89999985694885},{"duration":33.799999952316284,"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":193,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":193,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":226.79999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":57.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":193.09999990463257,"connectEnd":193.09999990463257,"connectStart":193.09999990463257,"domainLookupEnd":193.09999990463257,"domainLookupStart":193.09999990463257,"fetchStart":193.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":228.09999990463257,"responseEnd":251,"responseStart":250.29999995231628,"secureConnectionStart":193.09999990463257},{"duration":34.700000047683716,"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":193.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":193.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":227.89999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":63.09999990463257,"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":193.29999995231628,"connectEnd":193.29999995231628,"connectStart":193.29999995231628,"domainLookupEnd":193.29999995231628,"domainLookupStart":193.29999995231628,"fetchStart":193.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":231.19999980926514,"responseEnd":256.39999985694885,"responseStart":255.69999980926514,"secureConnectionStart":193.29999995231628},{"duration":395.69999980926514,"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":207,"connectEnd":207,"connectStart":207,"domainLookupEnd":207,"domainLookupStart":207,"fetchStart":207,"redirectEnd":0,"redirectStart":0,"requestStart":291.7999999523163,"responseEnd":602.6999998092651,"responseStart":599.0999999046326,"secureConnectionStart":207},{"duration":394.90000009536743,"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":207.69999980926514,"connectEnd":207.69999980926514,"connectStart":207.69999980926514,"domainLookupEnd":207.69999980926514,"domainLookupStart":207.69999980926514,"fetchStart":207.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":422.5,"responseEnd":602.5999999046326,"responseStart":598.3999998569489,"secureConnectionStart":207.69999980926514},{"duration":158,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":475.39999985694885,"connectEnd":475.39999985694885,"connectStart":475.39999985694885,"domainLookupEnd":475.39999985694885,"domainLookupStart":475.39999985694885,"fetchStart":475.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":601.0999999046326,"responseEnd":633.3999998569489,"responseStart":632.5999999046326,"secureConnectionStart":475.39999985694885},{"duration":179.80000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":683.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":683.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":863.5,"responseStart":0,"secureConnectionStart":0}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":52,"responseStart":184,"responseEnd":208,"domLoading":188,"domInteractive":837,"domContentLoadedEventStart":838,"domContentLoadedEventEnd":877,"domComplete":1164,"loadEventStart":1164,"loadEventEnd":1165,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":817.8999998569489},{"name":"bigPipe.sidebar-id.end","time":818.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":818.8999998569489},{"name":"bigPipe.activity-panel-pipe-id.end","time":819.7999999523163},{"name":"activityTabFullyLoaded","time":894.8999998569489}],"measures":[],"correlationId":"43ff86306898ea","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":74,"dbReadsTimeInMs":19,"dbConnsTimeInMs":25,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}