CREATE TABLE t1 (c YEAR);
|
CREATE TABLE t2 (c INT);
|
SELECT * FROM t1 JOIN t2 ON t1.c=t2.c WHERE t1.c<=>5;
|
Leads to:
10.5.26 9dafde575f0f91a25d0357c060c311a098c1a737 (Debug)
|
mariadbd: /test/10.5_dbg/sql/item.h:1712: Item* Item::clone_const_item(THD*) const: Assertion `typeid(*clone) == typeid(*this)' failed.
|
10.5.26 9dafde575f0f91a25d0357c060c311a098c1a737 (Debug)
|
Core was generated by `/test/MD180724-mariadb-10.5.26-linux-x86_64-dbg/bin/mariadbd --no-defaults --ma'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
[Current thread is 1 (Thread 0x14858862c700 (LWP 2626091))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x000014859dd29859 in __GI_abort () at abort.c:79
|
#2 0x000014859dd29729 in __assert_fail_base (fmt=0x14859debf588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x563c12438b48 "typeid(*clone) == typeid(*this)", file=0x563c12423308 "/test/10.5_dbg/sql/item.h", line=1712, function=<optimized out>) at assert.c:92
|
#3 0x000014859dd3afd6 in __GI___assert_fail (assertion=assertion@entry=0x563c12438b48 "typeid(*clone) == typeid(*this)", file=file@entry=0x563c12423308 "/test/10.5_dbg/sql/item.h", line=line@entry=1712, function=function@entry=0x563c1244a158 "Item* Item::clone_const_item(THD*) const") at assert.c:101
|
#4 0x0000563c11741e08 in Item::clone_const_item (thd=0x148534000d48, this=0x148534016950) at /test/10.5_dbg/sql/item.h:1712
|
#5 change_cond_ref_to_const (thd=thd@entry=0x148534000d48, save_list=save_list@entry=0x14858862a5b0, and_father=0x148534016a00, cond=0x148534014648, field_value_owner=field_value_owner@entry=0x148534015220, field=field@entry=0x148534015040, value=0x148534016950) at /test/10.5_dbg/sql/sql_select.cc:16665
|
#6 0x0000563c11741c39 in change_cond_ref_to_const (thd=thd@entry=0x148534000d48, save_list=save_list@entry=0x14858862a5b0, and_father=and_father@entry=0x148534016a00, cond=cond@entry=0x148534016a00, field_value_owner=field_value_owner@entry=0x148534015220, field=0x148534015040, value=0x148534016950) at /test/10.5_dbg/sql/sql_select.cc:16619
|
#7 0x0000563c1174225f in propagate_cond_constants (thd=thd@entry=0x148534000d48, save_list=save_list@entry=0x14858862a5b0, and_father=0x148534016a00, cond=<optimized out>) at /test/10.5_dbg/sql/sql_select.cc:16736
|
#8 0x0000563c117422cc in propagate_cond_constants (thd=thd@entry=0x148534000d48, save_list=save_list@entry=0x0, and_father=and_father@entry=0x148534016a00, cond=cond@entry=0x148534016a00) at /test/10.5_dbg/sql/sql_select.cc:16703
|
#9 0x0000563c11742627 in optimize_cond (join=join@entry=0x148534015e38, conds=0x148534016a00, join_list=0x148534013068, ignore_on_conds=ignore_on_conds@entry=false, cond_value=cond_value@entry=0x148534016158, cond_equal=cond_equal@entry=0x148534016280, flags=1) at /test/10.5_dbg/sql/sql_select.cc:17575
|
#10 0x0000563c1178a11f in JOIN::optimize_inner (this=this@entry=0x148534015e38) at /test/10.5_dbg/sql/sql_select.cc:2140
|
#11 0x0000563c1178af77 in JOIN::optimize (this=this@entry=0x148534015e38) at /test/10.5_dbg/sql/sql_select.cc:1765
|
#12 0x0000563c1178b04f in mysql_select (thd=thd@entry=0x148534000d48, tables=0x1485340134e0, fields=@0x148534012ff0: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x148534013498, last = 0x148534016808, elements = 2}, <No data fields>}, conds=0x148534015220, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x148534015e10, unit=0x148534004ef8, select_lex=0x148534012e88) at /test/10.5_dbg/sql/sql_select.cc:4897
|
#13 0x0000563c1178bba5 in handle_select (thd=thd@entry=0x148534000d48, lex=lex@entry=0x148534004e30, result=result@entry=0x148534015e10, setup_tables_done_option=setup_tables_done_option@entry=0) at /test/10.5_dbg/sql/sql_select.cc:449
|
#14 0x0000563c11703f44 in execute_sqlcom_select (thd=thd@entry=0x148534000d48, all_tables=0x1485340134e0) at /test/10.5_dbg/sql/sql_parse.cc:6425
|
#15 0x0000563c11710fba in mysql_execute_command (thd=thd@entry=0x148534000d48) at /test/10.5_dbg/sql/sql_parse.cc:4030
|
#16 0x0000563c116fd280 in mysql_parse (thd=thd@entry=0x148534000d48, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14858862b2c0, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:8223
|
#17 0x0000563c1170bfc5 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x148534000d48, packet=packet@entry=0x14853400aa19 "SELECT * FROM t1 JOIN t2 ON t1.c=t2.c WHERE t1.c<=>5", packet_length=packet_length@entry=52, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_class.h:1329
|
#18 0x0000563c1170ecfe in do_command (thd=0x148534000d48) at /test/10.5_dbg/sql/sql_parse.cc:1376
|
#19 0x0000563c1185bd26 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x563c151a95f8, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1417
|
#20 0x0000563c1185c3c4 in handle_one_connection (arg=arg@entry=0x563c151a95f8) at /test/10.5_dbg/sql/sql_connect.cc:1319
|
#21 0x0000563c11cdbe57 in pfs_spawn_thread (arg=0x563c146ad668) at /test/10.5_dbg/storage/perfschema/pfs.cc:2201
|
#22 0x000014859e23a609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#23 0x000014859de26133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.5.26 (dbg), 10.6.19 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.5.26 (opt), 10.6.19 (opt), 10.11.9 (dbg), 10.11.9 (opt), 11.1.6 (dbg), 11.1.6 (opt), 11.2.5 (dbg), 11.2.5 (opt), 11.4.3 (dbg), 11.4.3 (opt), 11.5.2 (dbg), 11.5.2 (opt)
{"report":{"fcp":696.5,"ttfb":158.70000004768372,"pageVisibility":"visible","entityId":130134,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"1978c30e-d9de-4776-ac10-4bfbeccb72ae","navigationType":0,"readyForUser":777.3000001907349,"redirectCount":0,"resourceLoadedEnd":806.3000001907349,"resourceLoadedStart":163.5,"resourceTiming":[{"duration":11.900000095367432,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":163.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":163.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":175.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":13.399999856948853,"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":163.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":163.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":177.20000004768372,"responseStart":0,"secureConnectionStart":0},{"duration":65.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":163.80000019073486,"connectEnd":163.80000019073486,"connectStart":163.80000019073486,"domainLookupEnd":163.80000019073486,"domainLookupStart":163.80000019073486,"fetchStart":163.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":163.80000019073486,"responseEnd":229,"responseStart":229,"secureConnectionStart":163.80000019073486},{"duration":148,"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":163.90000009536743,"connectEnd":163.90000009536743,"connectStart":163.90000009536743,"domainLookupEnd":163.90000009536743,"domainLookupStart":163.90000009536743,"fetchStart":163.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":163.90000009536743,"responseEnd":311.90000009536743,"responseStart":311.90000009536743,"secureConnectionStart":163.90000009536743},{"duration":151.29999995231628,"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":164.10000014305115,"connectEnd":164.10000014305115,"connectStart":164.10000014305115,"domainLookupEnd":164.10000014305115,"domainLookupStart":164.10000014305115,"fetchStart":164.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":164.10000014305115,"responseEnd":315.40000009536743,"responseStart":315.40000009536743,"secureConnectionStart":164.10000014305115},{"duration":151.79999995231628,"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":164.10000014305115,"connectEnd":164.10000014305115,"connectStart":164.10000014305115,"domainLookupEnd":164.10000014305115,"domainLookupStart":164.10000014305115,"fetchStart":164.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":164.10000014305115,"responseEnd":315.90000009536743,"responseStart":315.90000009536743,"secureConnectionStart":164.10000014305115},{"duration":152.39999985694885,"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":164.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":164.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":316.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":152,"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":164.30000019073486,"connectEnd":164.30000019073486,"connectStart":164.30000019073486,"domainLookupEnd":164.30000019073486,"domainLookupStart":164.30000019073486,"fetchStart":164.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":164.30000019073486,"responseEnd":316.30000019073486,"responseStart":316.30000019073486,"secureConnectionStart":164.30000019073486},{"duration":152.60000014305115,"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":164.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":164.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":317.10000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":152.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":164.5,"connectEnd":164.5,"connectStart":164.5,"domainLookupEnd":164.5,"domainLookupStart":164.5,"fetchStart":164.5,"redirectEnd":0,"redirectStart":0,"requestStart":164.5,"responseEnd":316.7000000476837,"responseStart":316.7000000476837,"secureConnectionStart":164.5},{"duration":152.70000004768372,"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":164.60000014305115,"connectEnd":164.60000014305115,"connectStart":164.60000014305115,"domainLookupEnd":164.60000014305115,"domainLookupStart":164.60000014305115,"fetchStart":164.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":164.60000014305115,"responseEnd":317.30000019073486,"responseStart":317.30000019073486,"secureConnectionStart":164.60000014305115},{"duration":410.2999999523163,"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":170.30000019073486,"connectEnd":170.30000019073486,"connectStart":170.30000019073486,"domainLookupEnd":170.30000019073486,"domainLookupStart":170.30000019073486,"fetchStart":170.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":170.30000019073486,"responseEnd":580.6000001430511,"responseStart":580.6000001430511,"secureConnectionStart":170.30000019073486},{"duration":452.5,"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":170.40000009536743,"connectEnd":170.40000009536743,"connectStart":170.40000009536743,"domainLookupEnd":170.40000009536743,"domainLookupStart":170.40000009536743,"fetchStart":170.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":170.40000009536743,"responseEnd":622.9000000953674,"responseStart":622.9000000953674,"secureConnectionStart":170.40000009536743},{"duration":201.39999985694885,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":379.60000014305115,"connectEnd":379.60000014305115,"connectStart":379.60000014305115,"domainLookupEnd":379.60000014305115,"domainLookupStart":379.60000014305115,"fetchStart":379.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":379.60000014305115,"responseEnd":581,"responseStart":581,"secureConnectionStart":379.60000014305115},{"duration":19.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":614.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":614.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":633.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":181.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":615,"connectEnd":615,"connectStart":615,"domainLookupEnd":615,"domainLookupStart":615,"fetchStart":615,"redirectEnd":0,"redirectStart":0,"requestStart":615,"responseEnd":796.6000001430511,"responseStart":796.6000001430511,"secureConnectionStart":615},{"duration":190.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/f51ef5507eea4c158f257c66c93b2a3f-CDN/lu2bu7/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":615.4000000953674,"connectEnd":615.4000000953674,"connectStart":615.4000000953674,"domainLookupEnd":615.4000000953674,"domainLookupStart":615.4000000953674,"fetchStart":615.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":615.4000000953674,"responseEnd":806.3000001907349,"responseStart":806.3000001907349,"secureConnectionStart":615.4000000953674},{"duration":121.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":686.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":686.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":807.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":100.29999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":708.2000000476837,"connectEnd":708.2000000476837,"connectStart":708.2000000476837,"domainLookupEnd":708.2000000476837,"domainLookupStart":708.2000000476837,"fetchStart":708.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":708.2000000476837,"responseEnd":808.5,"responseStart":808.5,"secureConnectionStart":708.2000000476837}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":35,"responseStart":158,"responseEnd":164,"domLoading":161,"domInteractive":855,"domContentLoadedEventStart":855,"domContentLoadedEventEnd":893,"domComplete":1639,"loadEventStart":1639,"loadEventEnd":1640,"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.9000000953674},{"name":"bigPipe.sidebar-id.end","time":816.6000001430511},{"name":"bigPipe.activity-panel-pipe-id.start","time":816.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":819.2000000476837},{"name":"activityTabFullyLoaded","time":901.2000000476837}],"measures":[],"correlationId":"e50fa1661b5b48","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":68,"dbReadsTimeInMs":11,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}