CREATE TABLE t1 (a INT, b VARCHAR(8));
|
INSERT INTO t1 VALUES (1,'foo'),(2,'bar');
|
|
CREATE TABLE t2 (c INT);
|
INSERT INTO t2 VALUES (3),(4);
|
|
CREATE TABLE t3 (d INT);
|
INSERT INTO t3 VALUES (5),(6);
|
|
SELECT a, MAX(a), AVG(a) OVER (PARTITION BY b) FROM t1
|
WHERE EXISTS ( SELECT * FROM t2 WHERE c IN ( SELECT MAX(d) FROM t3 ) );
|
Note: PARTITION might be empty as well, it is there just to signify that the crash is not related to empty partition.
Stack trace 10.2 20d7f933e2
|
#3 <signal handler called>
|
#4 0x00007fd8a9ea05e8 in Field::is_null (this=0x7fd89e82a938, row_offset=0) at /data/src/10.2/sql/field.h:1085
|
#5 0x00007fd8a9e9e8b5 in Protocol_text::store (this=0x7fd89e816600, field=0x7fd89e82a938) at /data/src/10.2/sql/protocol.cc:1229
|
#6 0x00007fd8aa1eaf89 in Item_field::send (this=0x7fd89e864200, protocol=0x7fd89e816600, buffer=0x7fd8ab06c660) at /data/src/10.2/sql/item.cc:6749
|
#7 0x00007fd8a9e9da86 in Protocol::send_result_set_row (this=0x7fd89e816600, row_items=0x7fd89e81a390) at /data/src/10.2/sql/protocol.cc:978
|
#8 0x00007fd8a9f1c2ce in select_send::send_data (this=0x7fd89e867e38, items=...) at /data/src/10.2/sql/sql_class.cc:2914
|
#9 0x00007fd8a9fbe87c in return_zero_rows (join=0x7fd89e867e58, result=0x7fd89e867e38, tables=..., fields=..., send_row=true, select_options=2147748608, info=0x7fd8aa9d8cf0 "Impossible WHERE noticed after reading const tables", having=0x0, all_fields=...) at /data/src/10.2/sql/sql_select.cc:12431
|
#10 0x00007fd8a9fa6d46 in JOIN::exec_inner (this=0x7fd89e867e58) at /data/src/10.2/sql/sql_select.cc:3310
|
#11 0x00007fd8a9fa6582 in JOIN::exec (this=0x7fd89e867e58) at /data/src/10.2/sql/sql_select.cc:3184
|
#12 0x00007fd8a9fa76d9 in mysql_select (thd=0x7fd89e816070, tables=0x7fd89e864bc8, wild_num=0, fields=..., conds=0x7fd89e867b60, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7fd89e867e38, unit=0x7fd89e819b30, select_lex=0x7fd89e81a268) at /data/src/10.2/sql/sql_select.cc:3569
|
#13 0x00007fd8a9f9c7f5 in handle_select (thd=0x7fd89e816070, lex=0x7fd89e819a68, result=0x7fd89e867e38, setup_tables_done_option=0) at /data/src/10.2/sql/sql_select.cc:373
|
#14 0x00007fd8a9f6a38b in execute_sqlcom_select (thd=0x7fd89e816070, all_tables=0x7fd89e864bc8) at /data/src/10.2/sql/sql_parse.cc:6347
|
#15 0x00007fd8a9f5fe79 in mysql_execute_command (thd=0x7fd89e816070) at /data/src/10.2/sql/sql_parse.cc:3376
|
#16 0x00007fd8a9f6dd4a in mysql_parse (thd=0x7fd89e816070, rawbuf=0x7fd89e864088 "SELECT a, MAX(a), AVG(a) OVER (PARTITION BY b) FROM t1\nWHERE EXISTS ( SELECT * FROM t2 WHERE c IN ( SELECT MAX(d) FROM t3 ) )", length=125, parser_state=0x7fd8ab06ddd0, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:7790
|
#17 0x00007fd8a9f5bacd in dispatch_command (command=COM_QUERY, thd=0x7fd89e816070, packet=0x7fd89e858071 "", packet_length=125, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1805
|
#18 0x00007fd8a9f5a4a7 in do_command (thd=0x7fd89e816070) at /data/src/10.2/sql/sql_parse.cc:1365
|
#19 0x00007fd8aa09fd86 in do_handle_one_connection (connect=0x7fd8a6c6d410) at /data/src/10.2/sql/sql_connect.cc:1354
|
#20 0x00007fd8aa09fb13 in handle_one_connection (arg=0x7fd8a6c6d410) at /data/src/10.2/sql/sql_connect.cc:1260
|
#21 0x00007fd8aa3cb73e in pfs_spawn_thread (arg=0x7fd8a6c519f0) at /data/src/10.2/storage/perfschema/pfs.cc:1862
|
#22 0x00007fd8a95c90a4 in start_thread (arg=0x7fd8ab06f300) at pthread_create.c:309
|
#23 0x00007fd8a778187d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
|
{"report":{"fcp":1384.3999998569489,"ttfb":694.3999998569489,"pageVisibility":"visible","entityId":58214,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"6fe560bb-558d-41bd-af21-0e0c46a7eb94","navigationType":0,"readyForUser":1481.2999999523163,"redirectCount":0,"resourceLoadedEnd":1453.5999999046326,"resourceLoadedStart":709.2999999523163,"resourceTiming":[{"duration":13.399999856948853,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":709.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":709.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":722.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":13.799999952316284,"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":709.5999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":709.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":723.3999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":184.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":709.8999998569489,"connectEnd":709.8999998569489,"connectStart":709.8999998569489,"domainLookupEnd":709.8999998569489,"domainLookupStart":709.8999998569489,"fetchStart":709.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":709.8999998569489,"responseEnd":894.7999999523163,"responseStart":894.7999999523163,"secureConnectionStart":709.8999998569489},{"duration":170.29999995231628,"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":710.8999998569489,"connectEnd":710.8999998569489,"connectStart":710.8999998569489,"domainLookupEnd":710.8999998569489,"domainLookupStart":710.8999998569489,"fetchStart":710.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":710.8999998569489,"responseEnd":881.1999998092651,"responseStart":881.1999998092651,"secureConnectionStart":710.8999998569489},{"duration":19.5,"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":711.0999999046326,"connectEnd":711.0999999046326,"connectStart":711.0999999046326,"domainLookupEnd":711.0999999046326,"domainLookupStart":711.0999999046326,"fetchStart":711.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":711.0999999046326,"responseEnd":730.5999999046326,"responseStart":730.5999999046326,"secureConnectionStart":711.0999999046326},{"duration":173.70000004768372,"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":711.2999999523163,"connectEnd":711.2999999523163,"connectStart":711.2999999523163,"domainLookupEnd":711.2999999523163,"domainLookupStart":711.2999999523163,"fetchStart":711.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":711.2999999523163,"responseEnd":885,"responseStart":885,"secureConnectionStart":711.2999999523163},{"duration":186.19999980926514,"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":711.5,"connectEnd":711.5,"connectStart":711.5,"domainLookupEnd":711.5,"domainLookupStart":711.5,"fetchStart":711.5,"redirectEnd":0,"redirectStart":0,"requestStart":711.5,"responseEnd":897.6999998092651,"responseStart":897.6999998092651,"secureConnectionStart":711.5},{"duration":186.70000004768372,"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":711.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":711.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":898.3999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":186.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":711.8999998569489,"connectEnd":711.8999998569489,"connectStart":711.8999998569489,"domainLookupEnd":711.8999998569489,"domainLookupStart":711.8999998569489,"fetchStart":711.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":711.8999998569489,"responseEnd":898.3999998569489,"responseStart":898.3999998569489,"secureConnectionStart":711.8999998569489},{"duration":186.59999990463257,"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":712,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":712,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":898.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":186.90000009536743,"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":712.1999998092651,"connectEnd":712.1999998092651,"connectStart":712.1999998092651,"domainLookupEnd":712.1999998092651,"domainLookupStart":712.1999998092651,"fetchStart":712.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":712.1999998092651,"responseEnd":899.0999999046326,"responseStart":899.0999999046326,"secureConnectionStart":712.1999998092651},{"duration":342.59999990463257,"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":718.5999999046326,"connectEnd":718.5999999046326,"connectStart":718.5999999046326,"domainLookupEnd":718.5999999046326,"domainLookupStart":718.5999999046326,"fetchStart":718.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":718.5999999046326,"responseEnd":1061.1999998092651,"responseStart":1061.1999998092651,"secureConnectionStart":718.5999999046326},{"duration":733.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":720.0999999046326,"connectEnd":720.0999999046326,"connectStart":720.0999999046326,"domainLookupEnd":720.0999999046326,"domainLookupStart":720.0999999046326,"fetchStart":720.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":720.0999999046326,"responseEnd":1453.5999999046326,"responseStart":1453.5999999046326,"secureConnectionStart":720.0999999046326},{"duration":214.20000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1124.7999999523163,"connectEnd":1124.7999999523163,"connectStart":1124.7999999523163,"domainLookupEnd":1124.7999999523163,"domainLookupStart":1124.7999999523163,"fetchStart":1124.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1124.7999999523163,"responseEnd":1339,"responseStart":1339,"secureConnectionStart":1124.7999999523163},{"duration":230.29999995231628,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1365.8999998569489,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1365.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1596.1999998092651,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":45,"domainLookupEnd":359,"connectStart":359,"connectEnd":377,"secureConnectionStart":367,"requestStart":378,"responseStart":694,"responseEnd":720,"domLoading":698,"domInteractive":1546,"domContentLoadedEventStart":1546,"domContentLoadedEventEnd":1588,"domComplete":2068,"loadEventStart":2068,"loadEventEnd":2069,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1530.3999998569489},{"name":"bigPipe.sidebar-id.end","time":1531.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1531.3999998569489},{"name":"bigPipe.activity-panel-pipe-id.end","time":1533.0999999046326},{"name":"activityTabFullyLoaded","time":1632.8999998569489}],"measures":[],"correlationId":"c8df3c7476fb07","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":93,"dbReadsTimeInMs":10,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
This issue is no longer reproducible.