CREATE TABLE t1 (i INT);
|
INSERT INTO t1 VALUES (1),(2);
|
SELECT * FROM ( SELECT DISTINCT * FROM t1 ) a WHERE ( i > 0 AND i < 5 OR i IN (6,8) ) AND ( i = 85 OR 0 );
|
|
# Cleanup
|
DROP TABLE t1;
|
10.3 non-debug 469a4b02ceb39ff
|
#2 <signal handler called>
|
#3 0x00005598c1828df7 in Item_func_in::val_int (this=0x7f1274013f18) at /data/src/10.2/sql/item_cmpfunc.cc:4385
|
#4 0x00005598c18237fc in Item_cond::fix_fields (this=0x7f12740137f0, thd=0x7f12740009a8, ref=<optimized out>) at /data/src/10.2/sql/item_cmpfunc.cc:4546
|
#5 0x00005598c1710ce0 in TABLE_LIST::build_pushable_cond_for_table (this=this@entry=0x7f12740105e0, thd=thd@entry=0x7f12740009a8, cond=<optimized out>) at /data/src/10.2/sql/table.cc:8232
|
#6 0x00005598c1710b9b in TABLE_LIST::build_pushable_cond_for_table (this=this@entry=0x7f12740105e0, thd=thd@entry=0x7f12740009a8, cond=cond@entry=0x7f1274011c90) at /data/src/10.2/sql/table.cc:8219
|
#7 0x00005598c163d7e9 in pushdown_cond_for_derived (thd=0x7f12740009a8, cond=0x7f1274011c90, derived=0x7f12740105e0) at /data/src/10.2/sql/sql_derived.cc:1270
|
#8 0x00005598c16b0935 in JOIN::optimize_inner (this=0x7f1274011ea8) at /data/src/10.2/sql/sql_select.cc:1362
|
#9 0x00005598c16b327a in JOIN::optimize (this=0x7f1274011ea8) at /data/src/10.2/sql/sql_select.cc:1113
|
#10 0x00005598c16b574d in mysql_select (thd=thd@entry=0x7f12740009a8, tables=0x7f12740105e0, wild_num=1, fields=..., conds=0x7f1274011c90, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f1274011e88, unit=0x7f1274004390, select_lex=0x7f1274004ac8) at /data/src/10.2/sql/sql_select.cc:3747
|
#11 0x00005598c16b5956 in handle_select (thd=thd@entry=0x7f12740009a8, lex=lex@entry=0x7f12740042c8, result=result@entry=0x7f1274011e88, setup_tables_done_option=setup_tables_done_option@entry=0) at /data/src/10.2/sql/sql_select.cc:376
|
#12 0x00005598c15a430f in execute_sqlcom_select (thd=0x7f12740009a8, all_tables=0x7f12740105e0) at /data/src/10.2/sql/sql_parse.cc:6472
|
#13 0x00005598c165f532 in mysql_execute_command (thd=0x7f12740009a8) at /data/src/10.2/sql/sql_parse.cc:3483
|
#14 0x00005598c166605a in mysql_parse (thd=0x7f12740009a8, rawbuf=<optimized out>, length=<optimized out>, parser_state=<optimized out>, is_com_multi=<optimized out>, is_next_command=<optimized out>) at /data/src/10.2/sql/sql_parse.cc:7924
|
#15 0x00005598c1669a0c in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x7f12740009a8, packet=packet@entry=0x7f1274006d19 "SELECT * FROM ( SELECT DISTINCT * FROM t1 ) a WHERE ( i > 0 AND i < 5 OR i IN (6,8) ) AND ( i = 85 OR 0 )", packet_length=packet_length@entry=105, 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:1820
|
#16 0x00005598c166a3f9 in do_command (thd=0x7f12740009a8) at /data/src/10.2/sql/sql_parse.cc:1374
|
#17 0x00005598c1731a24 in do_handle_one_connection (connect=connect@entry=0x5598c4de3068) at /data/src/10.2/sql/sql_connect.cc:1335
|
#18 0x00005598c1731bc4 in handle_one_connection (arg=arg@entry=0x5598c4de3068) at /data/src/10.2/sql/sql_connect.cc:1241
|
#19 0x00005598c19f2af4 in pfs_spawn_thread (arg=0x5598c4d985d8) at /data/src/10.2/storage/perfschema/pfs.cc:1862
|
#20 0x00007f1296d35494 in start_thread (arg=0x7f12902e3700) at pthread_create.c:333
|
#21 0x00007f129511b93f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
10.2 da3c5c3c9ad53 debug
|
mysqld: /data/src/10.2/sql/item_cmpfunc.cc:4382: virtual longlong Item_func_in::val_int(): Assertion `in_item' failed.
|
180504 2:40:35 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f4df41b6ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x00005655533da44f in Item_func_in::val_int (this=0x7f4ddc017350) at /data/src/10.2/sql/item_cmpfunc.cc:4382
|
#19 0x000056555312b846 in mysql_parse (thd=0x7f4ddc000b00, rawbuf=0x7f4ddc0124f8 "SELECT * FROM ( SELECT DISTINCT * FROM t1 ) a WHERE ( i > 0 AND i < 5 OR i IN (6,8) ) AND ( i = 85 OR 0 )", length=105, parser_state=0x7f4dee492200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:7924
|
#20 0x00005655531196db in dispatch_command (command=COM_QUERY, thd=0x7f4ddc000b00, packet=0x7f4ddc147241 "SELECT * FROM ( SELECT DISTINCT * FROM t1 ) a WHERE ( i > 0 AND i < 5 OR i IN (6,8) ) AND ( i = 85 OR 0 )", packet_length=105, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1820
|
#21 0x000056555311803e in do_command (thd=0x7f4ddc000b00) at /data/src/10.2/sql/sql_parse.cc:1374
|
#22 0x0000565553266da4 in do_handle_one_connection (connect=0x565556d45130) at /data/src/10.2/sql/sql_connect.cc:1335
|
#23 0x0000565553266b31 in handle_one_connection (arg=0x565556d45130) at /data/src/10.2/sql/sql_connect.cc:1241
|
#24 0x00005655536876a8 in pfs_spawn_thread (arg=0x565556ca4010) at /data/src/10.2/storage/perfschema/pfs.cc:1862
|
#25 0x00007f4df5e8d494 in start_thread (arg=0x7f4dee493700) at pthread_create.c:333
|
#26 0x00007f4df427393f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
The problem appeared in 10.2 tree with this revision:
commit 6223f1dd98c81b6c53bf15595ae6fb32f3a3c54c
|
Author: Galina Shalygina
|
Date: Sun Mar 25 22:12:38 2018 +0200
|
|
MDEV-15579 Crash in Item_field::used_tables() called by
|
Item::derived_field_transformer_for_having
|
{"report":{"fcp":751,"ttfb":182.5,"pageVisibility":"visible","entityId":67220,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"840abafb-b608-4dd5-92de-fc80948824b9","navigationType":0,"readyForUser":823.2999999523163,"redirectCount":0,"resourceLoadedEnd":525.1999998092651,"resourceLoadedStart":190.09999990463257,"resourceTiming":[{"duration":4.099999904632568,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":190.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":190.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":194.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":4.099999904632568,"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":190.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":190.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":194.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":119.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":190.5,"connectEnd":190.5,"connectStart":190.5,"domainLookupEnd":190.5,"domainLookupStart":190.5,"fetchStart":190.5,"redirectEnd":0,"redirectStart":0,"requestStart":197.19999980926514,"responseEnd":309.69999980926514,"responseStart":246.59999990463257,"secureConnectionStart":190.5},{"duration":127.09999990463257,"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":190.59999990463257,"connectEnd":190.59999990463257,"connectStart":190.59999990463257,"domainLookupEnd":190.59999990463257,"domainLookupStart":190.59999990463257,"fetchStart":190.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":197.59999990463257,"responseEnd":317.69999980926514,"responseStart":246.19999980926514,"secureConnectionStart":190.59999990463257},{"duration":55.40000009536743,"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":190.69999980926514,"connectEnd":190.69999980926514,"connectStart":190.69999980926514,"domainLookupEnd":190.69999980926514,"domainLookupStart":190.69999980926514,"fetchStart":190.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":198.5,"responseEnd":246.09999990463257,"responseStart":245.59999990463257,"secureConnectionStart":190.69999980926514},{"duration":83,"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":190.79999995231628,"connectEnd":190.79999995231628,"connectStart":190.79999995231628,"domainLookupEnd":190.79999995231628,"domainLookupStart":190.79999995231628,"fetchStart":190.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":200.09999990463257,"responseEnd":273.7999999523163,"responseStart":273.19999980926514,"secureConnectionStart":190.79999995231628},{"duration":9.700000047683716,"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":190.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":190.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":200.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":83.40000009536743,"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":190.89999985694885,"connectEnd":190.89999985694885,"connectStart":190.89999985694885,"domainLookupEnd":190.89999985694885,"domainLookupStart":190.89999985694885,"fetchStart":190.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":202.09999990463257,"responseEnd":274.2999999523163,"responseStart":273.7999999523163,"secureConnectionStart":190.89999985694885},{"duration":82.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":191.09999990463257,"connectEnd":191.09999990463257,"connectStart":191.09999990463257,"domainLookupEnd":191.09999990463257,"domainLookupStart":191.09999990463257,"fetchStart":191.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":203.39999985694885,"responseEnd":273.19999980926514,"responseStart":272.59999990463257,"secureConnectionStart":191.09999990463257},{"duration":11.400000095367432,"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":191.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":191.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":202.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":83.60000014305115,"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":191.19999980926514,"connectEnd":191.19999980926514,"connectStart":191.19999980926514,"domainLookupEnd":191.19999980926514,"domainLookupStart":191.19999980926514,"fetchStart":191.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":204.69999980926514,"responseEnd":274.7999999523163,"responseStart":274.2999999523163,"secureConnectionStart":191.19999980926514},{"duration":304.2000000476837,"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":220.19999980926514,"connectEnd":220.19999980926514,"connectStart":220.19999980926514,"domainLookupEnd":220.19999980926514,"domainLookupStart":220.19999980926514,"fetchStart":220.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":234.09999990463257,"responseEnd":524.3999998569489,"responseStart":516.5,"secureConnectionStart":220.19999980926514},{"duration":304.7999999523163,"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":220.39999985694885,"connectEnd":220.39999985694885,"connectStart":220.39999985694885,"domainLookupEnd":220.39999985694885,"domainLookupStart":220.39999985694885,"fetchStart":220.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":234.29999995231628,"responseEnd":525.1999998092651,"responseStart":518.2999999523163,"secureConnectionStart":220.39999985694885},{"duration":197.20000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":516.1999998092651,"connectEnd":516.1999998092651,"connectStart":516.1999998092651,"domainLookupEnd":516.1999998092651,"domainLookupStart":516.1999998092651,"fetchStart":516.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":682.5999999046326,"responseEnd":713.3999998569489,"responseStart":712.7999999523163,"secureConnectionStart":516.1999998092651},{"duration":148,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":728.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":728.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":876.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":157.70000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":750.7999999523163,"connectEnd":750.7999999523163,"connectStart":750.7999999523163,"domainLookupEnd":750.7999999523163,"domainLookupStart":750.7999999523163,"fetchStart":750.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":877.0999999046326,"responseEnd":908.5,"responseStart":907.7999999523163,"secureConnectionStart":750.7999999523163}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":48,"responseStart":182,"responseEnd":220,"domLoading":186,"domInteractive":882,"domContentLoadedEventStart":882,"domContentLoadedEventEnd":923,"domComplete":1219,"loadEventStart":1219,"loadEventEnd":1219,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":862.7999999523163},{"name":"bigPipe.sidebar-id.end","time":863.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":863.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":864.3999998569489},{"name":"activityTabFullyLoaded","time":943}],"measures":[],"correlationId":"3f825e52829591","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":72,"dbReadsTimeInMs":11,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Pushed in 10.2