CREATE VIEW t AS SELECT 1 AS a;
|
SELECT * FROM t WHERE a=b'';
|
Leads to:
10.5.27 f41a120298aa17ca80eecaa68614a6addf91ebc6 (Debug)
|
mariadbd: /test/10.5_dbg/sql/item.h:1677: Item* Item::get_copy(THD*) const: Assertion `typeid(*copy) == typeid(*this)' failed.
|
10.5.27 f41a120298aa17ca80eecaa68614a6addf91ebc6 (Debug)
|
Core was generated by `/test/MD160824-mariadb-10.5.27-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 0x14c6043c2700 (LWP 2295405))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x000014c607814859 in __GI_abort () at abort.c:79
|
#2 0x000014c607814729 in __assert_fail_base (fmt=0x14c6079aa588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x557f28ab96d0 "typeid(*copy) == typeid(*this)", file=0x557f28ab9308 "/test/10.5_dbg/sql/item.h", line=1677, function=<optimized out>) at assert.c:92
|
#3 0x000014c607825fd6 in __GI___assert_fail (assertion=assertion@entry=0x557f28ab96d0 "typeid(*copy) == typeid(*this)", file=file@entry=0x557f28ab9308 "/test/10.5_dbg/sql/item.h", line=line@entry=1677, function=function@entry=0x557f28ab96a8 "Item* Item::get_copy(THD*) const") at assert.c:101
|
#4 0x0000557f280b0c94 in Item::get_copy (thd=<optimized out>, this=0x14c5b8013d18) at /test/10.5_dbg/sql/item.h:1677
|
#5 Item_hex_hybrid::do_build_clone (this=0x14c5b8013d18, thd=<optimized out>) at /test/10.5_dbg/sql/item.h:4900
|
#6 0x0000557f280915ba in Item::build_clone (thd=0x14c5b8000d48, this=0x14c5b8013d18) at /test/10.5_dbg/sql/item.h:1691
|
#7 Item_func_or_sum::do_build_clone (this=0x14c5b8013db8, thd=0x14c5b8000d48) at /test/10.5_dbg/sql/item.cc:2731
|
#8 0x0000557f280bdbef in Item_bool_rowready_func2::do_build_clone (thd=<optimized out>, this=<optimized out>) at /test/10.5_dbg/sql/item_cmpfunc.h:584
|
#9 Item_func_eq::do_build_clone (this=<optimized out>, thd=<optimized out>) at /test/10.5_dbg/sql/item_cmpfunc.cc:1823
|
#10 0x0000557f280a139a in Item::build_clone (thd=0x14c5b8000d48, this=0x14c5b8013db8) at /test/10.5_dbg/sql/item.h:1691
|
#11 Item::build_pushable_cond (this=this@entry=0x14c5b8013db8, thd=thd@entry=0x14c5b8000d48, checker=<optimized out>, arg=0x14c5b801d5f0 "\001") at /test/10.5_dbg/sql/item.cc:7798
|
#12 0x0000557f27d4e7c9 in pushdown_cond_for_derived (thd=0x14c5b8000d48, cond=0x14c5b8013db8, derived=derived@entry=0x14c5b80134b0) at /test/10.5_dbg/sql/sql_derived.cc:1526
|
#13 0x0000557f27e1f434 in JOIN::optimize_inner (this=this@entry=0x14c5b8017948) at /test/10.5_dbg/sql/sql_select.cc:2229
|
#14 0x0000557f27e1ff3d in JOIN::optimize (this=this@entry=0x14c5b8017948) at /test/10.5_dbg/sql/sql_select.cc:1765
|
#15 0x0000557f27e20015 in mysql_select (thd=thd@entry=0x14c5b8000d48, tables=0x14c5b80134b0, fields=@0x14c5b8012fc0: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x14c5b8013468, last = 0x14c5b8013468, elements = 1}, <No data fields>}, conds=0x14c5b8013db8, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x14c5b8017920, unit=0x14c5b8004ef8, select_lex=0x14c5b8012e58) at /test/10.5_dbg/sql/sql_select.cc:4900
|
#16 0x0000557f27e20b6b in handle_select (thd=thd@entry=0x14c5b8000d48, lex=lex@entry=0x14c5b8004e30, result=result@entry=0x14c5b8017920, setup_tables_done_option=setup_tables_done_option@entry=0) at /test/10.5_dbg/sql/sql_select.cc:449
|
#17 0x0000557f27d98fce in execute_sqlcom_select (thd=thd@entry=0x14c5b8000d48, all_tables=0x14c5b80134b0) at /test/10.5_dbg/sql/sql_parse.cc:6431
|
#18 0x0000557f27da6044 in mysql_execute_command (thd=thd@entry=0x14c5b8000d48) at /test/10.5_dbg/sql/sql_parse.cc:4030
|
#19 0x0000557f27d9230a in mysql_parse (thd=thd@entry=0x14c5b8000d48, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14c6043c12c0, 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:8229
|
#20 0x0000557f27da104f in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14c5b8000d48, packet=packet@entry=0x14c5b800aa19 "SELECT * FROM t WHERE a=b''", packet_length=packet_length@entry=27, 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
|
#21 0x0000557f27da3d88 in do_command (thd=0x14c5b8000d48) at /test/10.5_dbg/sql/sql_parse.cc:1376
|
#22 0x0000557f27ef0d06 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x557f2ada7808, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1417
|
#23 0x0000557f27ef13a4 in handle_one_connection (arg=arg@entry=0x557f2ada7808) at /test/10.5_dbg/sql/sql_connect.cc:1319
|
#24 0x0000557f28371733 in pfs_spawn_thread (arg=0x557f2a261778) at /test/10.5_dbg/storage/perfschema/pfs.cc:2201
|
#25 0x000014c607d25609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#26 0x000014c607911133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.5.27 (dbg), 10.6.19 (dbg), 10.11.9 (dbg), 11.6.0 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.5.27 (opt), 10.6.19 (opt), 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), 11.6.0 (opt)
{"report":{"fcp":1643.0999999046326,"ttfb":847.5,"pageVisibility":"visible","entityId":130367,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"b0095d79-ce58-4997-8ef2-a2e6f23dbb6c","navigationType":0,"readyForUser":1770.6999999284744,"redirectCount":0,"resourceLoadedEnd":1727.5999999046326,"resourceLoadedStart":852.7999999523163,"resourceTiming":[{"duration":254,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":852.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":852.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1106.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":254,"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":853.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":853.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1107.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":311.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":853.2999999523163,"connectEnd":853.2999999523163,"connectStart":853.2999999523163,"domainLookupEnd":853.2999999523163,"domainLookupStart":853.2999999523163,"fetchStart":853.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":853.2999999523163,"responseEnd":1164.8999999761581,"responseStart":1164.8999999761581,"secureConnectionStart":853.2999999523163},{"duration":375.1999999284744,"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":853.3999999761581,"connectEnd":853.3999999761581,"connectStart":853.3999999761581,"domainLookupEnd":853.3999999761581,"domainLookupStart":853.3999999761581,"fetchStart":853.3999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":853.3999999761581,"responseEnd":1228.5999999046326,"responseStart":1228.5999999046326,"secureConnectionStart":853.3999999761581},{"duration":378.90000009536743,"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":853.5999999046326,"connectEnd":853.5999999046326,"connectStart":853.5999999046326,"domainLookupEnd":853.5999999046326,"domainLookupStart":853.5999999046326,"fetchStart":853.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":853.5999999046326,"responseEnd":1232.5,"responseStart":1232.5,"secureConnectionStart":853.5999999046326},{"duration":379.10000002384186,"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":853.7999999523163,"connectEnd":853.7999999523163,"connectStart":853.7999999523163,"domainLookupEnd":853.7999999523163,"domainLookupStart":853.7999999523163,"fetchStart":853.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":853.7999999523163,"responseEnd":1232.8999999761581,"responseStart":1232.8999999761581,"secureConnectionStart":853.7999999523163},{"duration":379.39999997615814,"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":853.8999999761581,"connectEnd":853.8999999761581,"connectStart":853.8999999761581,"domainLookupEnd":853.8999999761581,"domainLookupStart":853.8999999761581,"fetchStart":853.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":853.8999999761581,"responseEnd":1233.2999999523163,"responseStart":1233.2999999523163,"secureConnectionStart":853.8999999761581},{"duration":453.60000002384186,"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":854.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":854.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1307.6999999284744,"responseStart":0,"secureConnectionStart":0},{"duration":379.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":854.2999999523163,"connectEnd":854.2999999523163,"connectStart":854.2999999523163,"domainLookupEnd":854.2999999523163,"domainLookupStart":854.2999999523163,"fetchStart":854.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":854.2999999523163,"responseEnd":1233.6999999284744,"responseStart":1233.6999999284744,"secureConnectionStart":854.2999999523163},{"duration":453.2999999523163,"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":854.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":854.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1307.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":379.60000002384186,"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":854.6999999284744,"connectEnd":854.6999999284744,"connectStart":854.6999999284744,"domainLookupEnd":854.6999999284744,"domainLookupStart":854.6999999284744,"fetchStart":854.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":854.6999999284744,"responseEnd":1234.2999999523163,"responseStart":1234.2999999523163,"secureConnectionStart":854.6999999284744},{"duration":649.8000000715256,"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":865.1999999284744,"connectEnd":865.1999999284744,"connectStart":865.1999999284744,"domainLookupEnd":865.1999999284744,"domainLookupStart":865.1999999284744,"fetchStart":865.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":865.1999999284744,"responseEnd":1515,"responseStart":1515,"secureConnectionStart":865.1999999284744},{"duration":816.1000000238419,"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":865.2999999523163,"connectEnd":865.2999999523163,"connectStart":865.2999999523163,"domainLookupEnd":865.2999999523163,"domainLookupStart":865.2999999523163,"fetchStart":865.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":865.2999999523163,"responseEnd":1681.3999999761581,"responseStart":1681.3999999761581,"secureConnectionStart":865.2999999523163},{"duration":196.80000007152557,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1319.1999999284744,"connectEnd":1319.1999999284744,"connectStart":1319.1999999284744,"domainLookupEnd":1319.1999999284744,"domainLookupStart":1319.1999999284744,"fetchStart":1319.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":1319.1999999284744,"responseEnd":1516,"responseStart":1516,"secureConnectionStart":1319.1999999284744},{"duration":148.69999992847443,"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":1578.8999999761581,"connectEnd":1578.8999999761581,"connectStart":1578.8999999761581,"domainLookupEnd":1578.8999999761581,"domainLookupStart":1578.8999999761581,"fetchStart":1578.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":1578.8999999761581,"responseEnd":1727.5999999046326,"responseStart":1727.5999999046326,"secureConnectionStart":1578.8999999761581},{"duration":181.90000009536743,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1636.5999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1636.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1818.5,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":679,"responseStart":848,"responseEnd":865,"domLoading":851,"domInteractive":1835,"domContentLoadedEventStart":1835,"domContentLoadedEventEnd":1875,"domComplete":2655,"loadEventStart":2655,"loadEventEnd":2657,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1822.7999999523163},{"name":"bigPipe.sidebar-id.end","time":1823.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1823.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1826.2999999523163},{"name":"activityTabFullyLoaded","time":1891}],"measures":[],"correlationId":"a2a51c95be81e1","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":106,"dbReadsTimeInMs":18,"dbConnsTimeInMs":29,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}