Reproducible with Innodb, not MyIsam
--source include/have_innodb.inc
|
CREATE TABLE t1 (id int PRIMARY KEY) ENGINE=InnoDB;
|
CREATE TABLE t2 (id int PRIMARY KEY) ENGINE=InnoDB;
|
CREATE TABLE t3 (id int PRIMARY KEY, d1 int, d2 int , d3 int) ENGINE=InnoDB;
|
|
select 1
|
FROM t1 JOIN t2 ON (t1.id = t2.id)
|
WHERE t1.id IN
|
(SELECT t3.id FROM t3 AS tbl JOIN t3 ON (tbl.d2 <> t3.d1) ORDER BY t3.d3);
|
Thread 1 (Thread 0x7f87882de700 (LWP 26536)):
|
#0 __pthread_kill (threadid=<optimized out>, signo=11) at ../sysdeps/unix/sysv/linux/pthread_kill.c:62
|
#1 0x000055e745527761 in my_write_core (sig=11) at /home/alice/git/10.4/mysys/stacktrace.c:481
|
#2 0x000055e744d6a0d1 in handle_fatal_signal (sig=11) at /home/alice/git/10.4/sql/signal_handler.cc:305
|
#3 <signal handler called>
|
#4 0x000055e7449a6931 in base_list::head (this=0x7f87882dc550) at /home/alice/git/10.4/sql/sql_list.h:287
|
#5 0x000055e744b0d0e4 in List<Item_equal>::head (this=0x7f87882dc550) at /home/alice/git/10.4/sql/sql_list.h:497
|
#6 0x000055e744acab0a in make_join_statistics (join=0x7f873c019fe0, tables_list=..., keyuse_array=0x7f873c01a2d0) at /home/alice/git/10.4/sql/sql_select.cc:5010
|
#7 0x000055e744abfad3 in JOIN::optimize_inner (this=0x7f873c019fe0) at /home/alice/git/10.4/sql/sql_select.cc:1926
|
#8 0x000055e744abdf33 in JOIN::optimize (this=0x7f873c019fe0) at /home/alice/git/10.4/sql/sql_select.cc:1448
|
#9 0x000055e744ac7e43 in mysql_select (thd=0x7f873c000b00, tables=0x7f873c015508, wild_num=0, fields=..., conds=0x7f873c0194e0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f873c019fc0, unit=0x7f873c0049a8, select_lex=0x7f873c014ff8) at /home/alice/git/10.4/sql/sql_select.cc:4261
|
#10 0x000055e744ab99d6 in handle_select (thd=0x7f873c000b00, lex=0x7f873c0048e0, result=0x7f873c019fc0, setup_tables_done_option=0) at /home/alice/git/10.4/sql/sql_select.cc:382
|
#11 0x000055e744a84315 in execute_sqlcom_select (thd=0x7f873c000b00, all_tables=0x7f873c015508) at /home/alice/git/10.4/sql/sql_parse.cc:6545
|
#12 0x000055e744a7a76e in mysql_execute_command (thd=0x7f873c000b00) at /home/alice/git/10.4/sql/sql_parse.cc:3768
|
#13 0x000055e744a8804d in mysql_parse (thd=0x7f873c000b00, rawbuf=0x7f873c014e88 "select 1 \nFROM t1 JOIN t2 ON (t1.id = t2.id)\nWHERE t1.id IN\n(SELECT t3.id FROM t3 AS tbl JOIN t3 ON (tbl.d2 <> t3.d1) ORDER BY t3.d3)", length=134, parser_state=0x7f87882dd5f0, is_com_multi=false, is_next_command=false) at /home/alice/git/10.4/sql/sql_parse.cc:8063
|
#14 0x000055e744a751d0 in dispatch_command (command=COM_QUERY, thd=0x7f873c000b00, packet=0x7f873c12e011 "select 1 \nFROM t1 JOIN t2 ON (t1.id = t2.id)\nWHERE t1.id IN\n(SELECT t3.id FROM t3 AS tbl JOIN t3 ON (tbl.d2 <> t3.d1) ORDER BY t3.d3)", packet_length=134, is_com_multi=false, is_next_command=false) at /home/alice/git/10.4/sql/sql_parse.cc:1847
|
#15 0x000055e744a73bed in do_command (thd=0x7f873c000b00) at /home/alice/git/10.4/sql/sql_parse.cc:1392
|
#16 0x000055e744bda613 in do_handle_one_connection (connect=0x55e748d58ad0) at /home/alice/git/10.4/sql/sql_connect.cc:1402
|
#17 0x000055e744bda364 in handle_one_connection (arg=0x55e748d58ad0) at /home/alice/git/10.4/sql/sql_connect.cc:1308
|
#18 0x000055e7454b7baa in pfs_spawn_thread (arg=0x55e748d6c1e0) at /home/alice/git/10.4/storage/perfschema/pfs.cc:1862
|
#19 0x00007f879676c6ba in start_thread (arg=0x7f87882de700) at pthread_create.c:333
|
#20 0x00007f8795c0141d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
|
- relates to
-
MDEV-16738
Assertion `!join->conds || !join->cond_equal || !join->cond_equal->current_level.elements || (join->conds->type() == Item::COND_ITEM && ((Item_cond*) (join->conds))->functype() == Item_func::COND_AND_FUNC && join->cond_equal == &((Item_cond_and *)...
-
-
Closed
{"report":{"fcp":710.4000000953674,"ttfb":175.80000019073486,"pageVisibility":"visible","entityId":68657,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"2c4787f7-0e36-4308-b4d9-ca1b6e54a613","navigationType":0,"readyForUser":777.0999999046326,"redirectCount":0,"resourceLoadedEnd":299,"resourceLoadedStart":180.90000009536743,"resourceTiming":[{"duration":5.299999713897705,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":180.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":180.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":186.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":5.600000381469727,"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":181.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":181.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":186.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":90.39999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":181.30000019073486,"connectEnd":181.30000019073486,"connectStart":181.30000019073486,"domainLookupEnd":181.30000019073486,"domainLookupStart":181.30000019073486,"fetchStart":181.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":189.80000019073486,"responseEnd":271.69999980926514,"responseStart":224.59999990463257,"secureConnectionStart":181.30000019073486},{"duration":117.59999990463257,"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":181.40000009536743,"connectEnd":181.40000009536743,"connectStart":181.40000009536743,"domainLookupEnd":181.40000009536743,"domainLookupStart":181.40000009536743,"fetchStart":181.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":190.19999980926514,"responseEnd":299,"responseStart":227.19999980926514,"secureConnectionStart":181.40000009536743},{"duration":43.09999990463257,"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":181.5,"connectEnd":181.5,"connectStart":181.5,"domainLookupEnd":181.5,"domainLookupStart":181.5,"fetchStart":181.5,"redirectEnd":0,"redirectStart":0,"requestStart":191.19999980926514,"responseEnd":224.59999990463257,"responseStart":223.90000009536743,"secureConnectionStart":181.5},{"duration":62.90000009536743,"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":181.59999990463257,"connectEnd":181.59999990463257,"connectStart":181.59999990463257,"domainLookupEnd":181.59999990463257,"domainLookupStart":181.59999990463257,"fetchStart":181.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":192.59999990463257,"responseEnd":244.5,"responseStart":243.80000019073486,"secureConnectionStart":181.59999990463257},{"duration":11,"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":181.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":181.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":192.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":68.5,"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":181.69999980926514,"connectEnd":181.69999980926514,"connectStart":181.69999980926514,"domainLookupEnd":181.69999980926514,"domainLookupStart":181.69999980926514,"fetchStart":181.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":193.90000009536743,"responseEnd":250.19999980926514,"responseStart":249.59999990463257,"secureConnectionStart":181.69999980926514},{"duration":85.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":181.90000009536743,"connectEnd":181.90000009536743,"connectStart":181.90000009536743,"domainLookupEnd":181.90000009536743,"domainLookupStart":181.90000009536743,"fetchStart":181.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":197.30000019073486,"responseEnd":267.09999990463257,"responseStart":266.19999980926514,"secureConnectionStart":181.90000009536743},{"duration":13,"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":182,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":182,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":195,"responseStart":0,"secureConnectionStart":0},{"duration":68.80000019073486,"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":182.09999990463257,"connectEnd":182.09999990463257,"connectStart":182.09999990463257,"domainLookupEnd":182.09999990463257,"domainLookupStart":182.09999990463257,"fetchStart":182.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":197.5,"responseEnd":250.90000009536743,"responseStart":250.30000019073486,"secureConnectionStart":182.09999990463257},{"duration":22.40000009536743,"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":193.69999980926514,"connectEnd":201.09999990463257,"connectStart":201.09999990463257,"domainLookupEnd":201.09999990463257,"domainLookupStart":201.09999990463257,"fetchStart":193.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":201.69999980926514,"responseEnd":216.09999990463257,"responseStart":214.30000019073486,"secureConnectionStart":201.09999990463257},{"duration":26.899999618530273,"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":193.80000019073486,"connectEnd":193.80000019073486,"connectStart":193.80000019073486,"domainLookupEnd":193.80000019073486,"domainLookupStart":193.80000019073486,"fetchStart":193.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":202.19999980926514,"responseEnd":220.69999980926514,"responseStart":216.30000019073486,"secureConnectionStart":193.80000019073486},{"duration":204.2999997138977,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":479.30000019073486,"connectEnd":479.30000019073486,"connectStart":479.30000019073486,"domainLookupEnd":479.30000019073486,"domainLookupStart":479.30000019073486,"fetchStart":479.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":651.8000001907349,"responseEnd":683.5999999046326,"responseStart":682.6999998092651,"secureConnectionStart":479.30000019073486},{"duration":128.90000009536743,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":688.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":688.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":817.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":138.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":709.5999999046326,"connectEnd":709.5999999046326,"connectStart":709.5999999046326,"domainLookupEnd":709.5999999046326,"domainLookupStart":709.5999999046326,"fetchStart":709.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":817.5999999046326,"responseEnd":847.6999998092651,"responseStart":847.0999999046326,"secureConnectionStart":709.5999999046326}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":50,"responseStart":176,"responseEnd":194,"domLoading":180,"domInteractive":833,"domContentLoadedEventStart":833,"domContentLoadedEventEnd":870,"domComplete":1345,"loadEventStart":1345,"loadEventEnd":1346,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":815.6999998092651},{"name":"bigPipe.sidebar-id.end","time":816.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":816.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":817.5},{"name":"activityTabFullyLoaded","time":887.8000001907349}],"measures":[],"correlationId":"317e0f027793ec","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":67,"dbReadsTimeInMs":10,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
not reproducible on current 10.4 (5a0874449a50187e70)