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":941.3000001907349,"ttfb":200.20000076293945,"pageVisibility":"visible","entityId":67220,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"5cd09bbe-9644-4938-a38b-3cbd0617f8cd","navigationType":0,"readyForUser":1057.3000001907349,"redirectCount":0,"resourceLoadedEnd":682,"resourceLoadedStart":207.9000005722046,"resourceTiming":[{"duration":54.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":207.9000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":207.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":262.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":54.30000019073486,"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":208.10000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":208.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":262.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":145.60000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":208.30000019073486,"connectEnd":208.30000019073486,"connectStart":208.30000019073486,"domainLookupEnd":208.30000019073486,"domainLookupStart":208.30000019073486,"fetchStart":208.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":208.30000019073486,"responseEnd":353.9000005722046,"responseStart":353.9000005722046,"secureConnectionStart":208.30000019073486},{"duration":222.9000005722046,"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":208.5,"connectEnd":208.5,"connectStart":208.5,"domainLookupEnd":208.5,"domainLookupStart":208.5,"fetchStart":208.5,"redirectEnd":0,"redirectStart":0,"requestStart":208.5,"responseEnd":431.4000005722046,"responseStart":431.4000005722046,"secureConnectionStart":208.5},{"duration":227.39999961853027,"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":208.70000076293945,"connectEnd":208.70000076293945,"connectStart":208.70000076293945,"domainLookupEnd":208.70000076293945,"domainLookupStart":208.70000076293945,"fetchStart":208.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":208.70000076293945,"responseEnd":436.1000003814697,"responseStart":436.1000003814697,"secureConnectionStart":208.70000076293945},{"duration":228.30000019073486,"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":208.9000005722046,"connectEnd":208.9000005722046,"connectStart":208.9000005722046,"domainLookupEnd":208.9000005722046,"domainLookupStart":208.9000005722046,"fetchStart":208.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":208.9000005722046,"responseEnd":437.20000076293945,"responseStart":437.20000076293945,"secureConnectionStart":208.9000005722046},{"duration":228.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":209.10000038146973,"connectEnd":209.10000038146973,"connectStart":209.10000038146973,"domainLookupEnd":209.10000038146973,"domainLookupStart":209.10000038146973,"fetchStart":209.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":209.10000038146973,"responseEnd":437.6000003814697,"responseStart":437.6000003814697,"secureConnectionStart":209.10000038146973},{"duration":321.29999923706055,"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":209.20000076293945,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":209.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":530.5,"responseStart":0,"secureConnectionStart":0},{"duration":228.5999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":209.4000005722046,"connectEnd":209.4000005722046,"connectStart":209.4000005722046,"domainLookupEnd":209.4000005722046,"domainLookupStart":209.4000005722046,"fetchStart":209.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":209.4000005722046,"responseEnd":438,"responseStart":438,"secureConnectionStart":209.4000005722046},{"duration":321.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":209.60000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":209.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":530.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":228.89999961853027,"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":209.70000076293945,"connectEnd":209.70000076293945,"connectStart":209.70000076293945,"domainLookupEnd":209.70000076293945,"domainLookupStart":209.70000076293945,"fetchStart":209.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":209.70000076293945,"responseEnd":438.6000003814697,"responseStart":438.6000003814697,"secureConnectionStart":209.70000076293945},{"duration":471.1000003814697,"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":210.5,"connectEnd":210.5,"connectStart":210.5,"domainLookupEnd":210.5,"domainLookupStart":210.5,"fetchStart":210.5,"redirectEnd":0,"redirectStart":0,"requestStart":210.5,"responseEnd":681.6000003814697,"responseStart":681.6000003814697,"secureConnectionStart":210.5},{"duration":471.5,"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":210.5,"connectEnd":210.5,"connectStart":210.5,"domainLookupEnd":210.5,"domainLookupStart":210.5,"fetchStart":210.5,"redirectEnd":0,"redirectStart":0,"requestStart":210.5,"responseEnd":682,"responseStart":682,"secureConnectionStart":210.5},{"duration":37.90000057220459,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":574,"connectEnd":574,"connectStart":574,"domainLookupEnd":574,"domainLookupStart":574,"fetchStart":574,"redirectEnd":0,"redirectStart":0,"requestStart":574,"responseEnd":611.9000005722046,"responseStart":611.9000005722046,"secureConnectionStart":574},{"duration":346.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&slack-enabled=true&whisper-enabled=true","startTime":848.7000007629395,"connectEnd":848.7000007629395,"connectStart":848.7000007629395,"domainLookupEnd":848.7000007629395,"domainLookupStart":848.7000007629395,"fetchStart":848.7000007629395,"redirectEnd":0,"redirectStart":0,"requestStart":848.7000007629395,"responseEnd":1195.4000005722046,"responseStart":1195.4000005722046,"secureConnectionStart":848.7000007629395}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":25,"responseStart":200,"responseEnd":201,"domLoading":205,"domInteractive":1143,"domContentLoadedEventStart":1143,"domContentLoadedEventEnd":1208,"domComplete":1915,"loadEventStart":1915,"loadEventEnd":1918,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1104.2000007629395},{"name":"bigPipe.sidebar-id.end","time":1105},{"name":"bigPipe.activity-panel-pipe-id.start","time":1105.2000007629395},{"name":"bigPipe.activity-panel-pipe-id.end","time":1108.9000005722046},{"name":"activityTabFullyLoaded","time":1216.9000005722046}],"measures":[],"correlationId":"6fabec9b61b688","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":110,"dbReadsTimeInMs":10,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}