#6 0x0000000000be4596 in handle_select (thd=thd@entry=0x62b00016c218, lex=<optimized out>, lex@entry=0x62b0001703c8, result=<optimized out>, result@entry=0x6290000b31d8, setup_tables_done_option=<optimized out>, setup_tables_done_option@entry=0) at /home/wx/mariadb-11.3.0/sql/sql_select.cc:628
#7 0x0000000000b3df18 in execute_sqlcom_select (thd=0x62b00016c218, all_tables=<optimized out>) at /home/wx/mariadb-11.3.0/sql/sql_parse.cc:6013
#8 0x0000000000b2cd51 in mysql_execute_command (thd=0x62b00016c218, is_called_from_prepared_stmt=<optimized out>) at /home/wx/mariadb-11.3.0/sql/sql_parse.cc:3912
#9 0x0000000000b1fe79 in mysql_parse (thd=thd@entry=0x62b00016c218, rawbuf=<optimized out>, length=<optimized out>, parser_state=<optimized out>, parser_state@entry=0x7fffd242ca80) at /home/wx/mariadb-11.3.0/sql/sql_parse.cc:7734
#10 0x0000000000b19069 in dispatch_command (command=<optimized out>, thd=0x62b00016c218, packet=<optimized out>, packet_length=<optimized out>, blocking=<optimized out>) at /home/wx/mariadb-11.3.0/sql/sql_parse.cc:1893
#11 0x0000000000b20b71 in do_command (thd=0x62b00016c218, blocking=true) at /home/wx/mariadb-11.3.0/sql/sql_parse.cc:1406
#12 0x0000000000f03476 in do_handle_one_connection (connect=<optimized out>, put_in_cache=<optimized out>) at /home/wx/mariadb-11.3.0/sql/sql_connect.cc:1445
#13 0x0000000000f02eb9 in handle_one_connection (arg=arg@entry=0x608001ccee38) at /home/wx/mariadb-11.3.0/sql/sql_connect.cc:1347
#14 0x0000000001a00c1b in pfs_spawn_thread (arg=0x617000005498) at /home/wx/mariadb-11.3.0/storage/perfschema/pfs.cc:2201
#15 0x00007ffff79f7609 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#16 0x00007ffff770f133 in clone () from /lib/x86_64-linux-gnu/libc.so.6
Attachments
Issue Links
is caused by
MDEV-28958Crash when checking whether condition can be pushed into view
Query (0x6290001092a8): SELECT t0 . c41 AS c38 FROM ( SELECT c40 AS c51 , ( SELECT c41 AS c58 FROM t0 LIMIT 1 ) - LTRIM ( 103 ) AS c2 , -69 AS c58 FROM t0 ) AS t1 JOIN t0 ON t0 . c12 = t0 . c40 WHERE OCT ( + NULLIF ( REVERSE ( c12 ) IS NOT NULL , -49 ) ) NOT LIKE LOG ( 55 NOT LIKE SUBSTRING( -34 , ABS ( 21 ) - FORMAT ( 4 IS NULL , TRUNCATE ( 74 , -1279808445404668877 ) IS NULL IS NULL ) ) , -31 ) GROUP BY c58 , c51 , c41 HAVING c51 = 53 REGEXP EXP ( t1 . c58 )
CREATETABLE t0 ( b int ) ;
INSERTINTO t0 (1),(2),(3);
SELECT 5 FROM
( SELECT b, 7 AS c FROM t0 ) AS t1 JOIN t0 ON 1
GROUPBY c , t1.b
HAVING t1.b = 53 REGEXP EXP ( t1.c );
Alice Sherepa
added a comment - - edited Thank you! I repeated on 10.9-11.2, not repeatable on 10.4-10.6
Version: '10.9.8-MariaDB-debug-log'
mariadbd: /10.9/sql/item.cc:10799: virtual table_map Item_direct_view_ref::used_tables() const: Assertion `fixed()' failed.
231103 14:45:48 [ERROR] mysqld got signal 6 ;
Server version: 10.9.8-MariaDB-debug-log source revision: 3e0009dc3a771e4dbf2fa4a4cf87e750453fb2eb
sql/signal_handler.cc:241(handle_fatal_signal)[0x5649245e9c1c]
/lib/x86_64-linux-gnu/libc.so.6(+0x33fd6)[0x7f2f896eafd6]
sql/item.cc:10801(Item_direct_view_ref::used_tables() const)[0x56492469e7e5]
sql/sql_select.cc:26203(get_sort_by_table(st_order*, st_order*, List<TABLE_LIST>&, unsigned long long))[0x564923eb3fb8]
sql/sql_select.cc:5714(make_join_statistics(JOIN*, List<TABLE_LIST>&, st_dynamic_array*))[0x564923e20abe]
sql/sql_select.cc:2554(JOIN::optimize_inner())[0x564923e005db]
sql/sql_select.cc:1893(JOIN::optimize())[0x564923df9639]
sql/sql_select.cc:5093(mysql_select(THD*, TABLE_LIST*, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x564923e1b0d0]
sql/sql_select.cc:584(handle_select(THD*, LEX*, select_result*, unsigned long))[0x564923deaeeb]
sql/sql_parse.cc:6288(execute_sqlcom_select(THD*, TABLE_LIST*))[0x564923d0cdb7]
sql/sql_parse.cc:3958(mysql_execute_command(THD*, bool))[0x564923cfb5e4]
sql/sql_parse.cc:8060(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x564923d180d2]
sql/sql_parse.cc:1896(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool))[0x564923cedcaf]
sql/sql_parse.cc:1407(do_command(THD*, bool))[0x564923ceaa08]
sql/sql_connect.cc:1416(do_handle_one_connection(CONNECT*, bool))[0x5649241ae597]
sql/sql_connect.cc:1320(handle_one_connection)[0x5649241adef4]
perfschema/pfs.cc:2203(pfs_spawn_thread)[0x564924ddcc78]
nptl/pthread_create.c:478(start_thread)[0x7f2f89c05609]
Query (0x6290001092a8): SELECT t0 . c41 AS c38 FROM ( SELECT c40 AS c51 , ( SELECT c41 AS c58 FROM t0 LIMIT 1 ) - LTRIM ( 103 ) AS c2 , -69 AS c58 FROM t0 ) AS t1 JOIN t0 ON t0 . c12 = t0 . c40 WHERE OCT ( + NULLIF ( REVERSE ( c12 ) IS NOT NULL , -49 ) ) NOT LIKE LOG ( 55 NOT LIKE SUBSTRING( -34 , ABS ( 21 ) - FORMAT ( 4 IS NULL , TRUNCATE ( 74 , -1279808445404668877 ) IS NULL IS NULL ) ) , -31 ) GROUP BY c58 , c51 , c41 HAVING c51 = 53 REGEXP EXP ( t1 . c58 )
CREATE TABLE t0 ( b int ) ;
INSERT INTO t0 (1),(2),(3);
SELECT 5 FROM
( SELECT b, 7 AS c FROM t0 ) AS t1 JOIN t0 ON 1
GROUP BY c , t1.b
HAVING t1.b = 53 REGEXP EXP ( t1.c );
May be related to MDEV-28506 as disabling either of optimizations `derived_merge` or `condition_pushdown_from_having` makes the query finish successfully.
Oleg Smirnov
added a comment - May be related to MDEV-28506 as disabling either of optimizations `derived_merge` or `condition_pushdown_from_having` makes the query finish successfully.
This issue is caused by MDEV-28958.
When building pushable conditions for HAVING there is a call to `multiple_equality_transformer` which executes the following code:
bool Item_equal::create_pushable_equalities()
{
...
if (!clone_const)
{
/*
Also set IMMUTABLE_FL for any sub-items of the right_item.
This is needed to prevent Item::cleanup_excluding_immutables_processor
from peforming cleanup of the sub-items and so creating an item tree
When processing `HAVING a = b + 1` the `right_item` is of type `Item_func_plus`, and `set_extraction_flag_processor` sets MARKER_IMMUTABLE for this item and its children:
void set_extraction_flag(int16 flags)
{
if (!basic_const_item())
{
marker= marker & ~MARKER_EXTRACTION_MASK;
marker|= flags;
}
}
But the problem is that function argument `b` is constant, so MARKER_IMMUTABLE is not set for it. Later there is a call to `cleanup_excluding_immutables_processor`:
if (item->walk(&Item::cleanup_excluding_immutables_processor, 0, STOP_PTR)
...
}
which cleans up the `Item_direct_view_ref` corresponding to the field `b` while the embedding `Item_func_plus` and `Item_func_eq` are marked as immutable and are not cleaned up. Therefore `fix_fields_if_needed()` skips the function items and their arguments, so `Item_direct_view_ref`(b) remains unfixed.
Oleg Smirnov
added a comment - Simplified test case:
CREATE TABLE t1 (a int ) ;
INSERT INTO t1 values (1),(2),(3);
SELECT a FROM ( SELECT a, 1 AS b FROM t1 ) AS dt
GROUP BY a, b
HAVING a = b + 1;
This issue is caused by MDEV-28958 .
When building pushable conditions for HAVING there is a call to `multiple_equality_transformer` which executes the following code:
bool Item_equal::create_pushable_equalities()
{
...
if (!clone_const)
{
/*
Also set IMMUTABLE_FL for any sub-items of the right_item.
This is needed to prevent Item::cleanup_excluding_immutables_processor
from peforming cleanup of the sub-items and so creating an item tree
where a fixed item has non-fixed items inside it.
*/
int16 new_flag= MARKER_IMMUTABLE;
right_item->walk(&Item::set_extraction_flag_processor, false ,
( void *)&new_flag);
}
When processing `HAVING a = b + 1` the `right_item` is of type `Item_func_plus`, and `set_extraction_flag_processor` sets MARKER_IMMUTABLE for this item and its children:
void set_extraction_flag(int16 flags)
{
if (!basic_const_item())
{
marker= marker & ~MARKER_EXTRACTION_MASK;
marker|= flags;
}
}
But the problem is that function argument `b` is constant, so MARKER_IMMUTABLE is not set for it. Later there is a call to `cleanup_excluding_immutables_processor`:
Item *st_select_lex::pushdown_from_having_into_where()
{
...
if (item->walk(&Item::cleanup_excluding_immutables_processor, 0, STOP_PTR)
...
}
which cleans up the `Item_direct_view_ref` corresponding to the field `b` while the embedding `Item_func_plus` and `Item_func_eq` are marked as immutable and are not cleaned up. Therefore `fix_fields_if_needed()` skips the function items and their arguments, so `Item_direct_view_ref`(b) remains unfixed.
- if (!(get_extraction_flag() == MARKER_IMMUTABLE))
+ if (!(get_extraction_flag() == MARKER_IMMUTABLE) && !basic_const_item())
return cleanup_processor(arg);
else
{
I believe we can consider basic const items as immutable.
Oleg Smirnov
added a comment - igor , what do you think such a fix ?
bool Item::cleanup_excluding_immutables_processor (void *arg)
{
- if (!(get_extraction_flag() == MARKER_IMMUTABLE))
+ if (!(get_extraction_flag() == MARKER_IMMUTABLE) && !basic_const_item())
return cleanup_processor(arg);
else
{
I believe we can consider basic const items as immutable.
igor, what do you mean by "assigned to me"? I asked for your review of the solution proposed above. If you approve it, I'll prepare a test case and an appropriate patch for pushing.
Oleg Smirnov
added a comment - - edited igor , what do you mean by "assigned to me"? I asked for your review of the solution proposed above. If you approve it, I'll prepare a test case and an appropriate patch for pushing.
People
Oleg Smirnov
Xin Wen
Votes:
0Vote for this issue
Watchers:
5Start watching this issue
Dates
Created:
Updated:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1125.2000000476837,"ttfb":519.2999999523163,"pageVisibility":"visible","entityId":125666,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"05cc4a6b-afb1-4db1-8461-b04edd6e6db3","navigationType":0,"readyForUser":1207.5999999046326,"redirectCount":0,"resourceLoadedEnd":858.2000000476837,"resourceLoadedStart":528.2000000476837,"resourceTiming":[{"duration":13.299999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":528.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":528.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":541.5,"responseStart":0,"secureConnectionStart":0},{"duration":14.599999904632568,"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":528.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":528.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":543.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":194.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":528.5,"connectEnd":528.5,"connectStart":528.5,"domainLookupEnd":528.5,"domainLookupStart":528.5,"fetchStart":528.5,"redirectEnd":0,"redirectStart":0,"requestStart":545.7000000476837,"responseEnd":722.7000000476837,"responseStart":566.4000000953674,"secureConnectionStart":528.5},{"duration":329.5,"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":528.7000000476837,"connectEnd":528.7000000476837,"connectStart":528.7000000476837,"domainLookupEnd":528.7000000476837,"domainLookupStart":528.7000000476837,"fetchStart":528.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":545.9000000953674,"responseEnd":858.2000000476837,"responseStart":570.5999999046326,"secureConnectionStart":528.7000000476837},{"duration":45.10000014305115,"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":528.7999999523163,"connectEnd":528.7999999523163,"connectStart":528.7999999523163,"domainLookupEnd":528.7999999523163,"domainLookupStart":528.7999999523163,"fetchStart":528.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":547,"responseEnd":573.9000000953674,"responseStart":571.7999999523163,"secureConnectionStart":528.7999999523163},{"duration":50.299999952316284,"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":528.9000000953674,"connectEnd":528.9000000953674,"connectStart":528.9000000953674,"domainLookupEnd":528.9000000953674,"domainLookupStart":528.9000000953674,"fetchStart":528.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":550.4000000953674,"responseEnd":579.2000000476837,"responseStart":576.0999999046326,"secureConnectionStart":528.9000000953674},{"duration":50.89999985694885,"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":528.9000000953674,"connectEnd":528.9000000953674,"connectStart":528.9000000953674,"domainLookupEnd":528.9000000953674,"domainLookupStart":528.9000000953674,"fetchStart":528.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":551,"responseEnd":579.7999999523163,"responseStart":577.0999999046326,"secureConnectionStart":528.9000000953674},{"duration":19.100000143051147,"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":529.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":529.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":548.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":52,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":529.0999999046326,"connectEnd":529.0999999046326,"connectStart":529.0999999046326,"domainLookupEnd":529.0999999046326,"domainLookupStart":529.0999999046326,"fetchStart":529.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":551.4000000953674,"responseEnd":581.0999999046326,"responseStart":578.0999999046326,"secureConnectionStart":529.0999999046326},{"duration":20.200000047683716,"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":529.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":529.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":549.5,"responseStart":0,"secureConnectionStart":0},{"duration":67.39999985694885,"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":529.4000000953674,"connectEnd":529.4000000953674,"connectStart":529.4000000953674,"domainLookupEnd":529.4000000953674,"domainLookupStart":529.4000000953674,"fetchStart":529.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":553.7999999523163,"responseEnd":596.7999999523163,"responseStart":580.0999999046326,"secureConnectionStart":529.4000000953674},{"duration":211.5,"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":535.5,"connectEnd":535.5,"connectStart":535.5,"domainLookupEnd":535.5,"domainLookupStart":535.5,"fetchStart":535.5,"redirectEnd":0,"redirectStart":0,"requestStart":589.5,"responseEnd":747,"responseStart":741.0999999046326,"secureConnectionStart":535.5},{"duration":210.40000009536743,"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":536.7999999523163,"connectEnd":536.7999999523163,"connectStart":536.7999999523163,"domainLookupEnd":536.7999999523163,"domainLookupStart":536.7999999523163,"fetchStart":536.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":596,"responseEnd":747.2000000476837,"responseStart":742.2000000476837,"secureConnectionStart":536.7999999523163},{"duration":123.70000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":866.2999999523163,"connectEnd":866.2999999523163,"connectStart":866.2999999523163,"domainLookupEnd":866.2999999523163,"domainLookupStart":866.2999999523163,"fetchStart":866.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":958.7000000476837,"responseEnd":990,"responseStart":989.2999999523163,"secureConnectionStart":866.2999999523163},{"duration":144.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1081.5,"connectEnd":1081.5,"connectStart":1081.5,"domainLookupEnd":1081.5,"domainLookupStart":1081.5,"fetchStart":1081.5,"redirectEnd":0,"redirectStart":0,"requestStart":1195.7999999523163,"responseEnd":1225.5999999046326,"responseStart":1224.2000000476837,"secureConnectionStart":1081.5},{"duration":77.29999995231628,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1118.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1118.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1195.7999999523163,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":82,"responseStart":520,"responseEnd":537,"domLoading":524,"domInteractive":1331,"domContentLoadedEventStart":1331,"domContentLoadedEventEnd":1381,"domComplete":1590,"loadEventStart":1590,"loadEventEnd":1591,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1289.0999999046326},{"name":"bigPipe.sidebar-id.end","time":1290},{"name":"bigPipe.activity-panel-pipe-id.start","time":1290.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1294.2000000476837},{"name":"activityTabFullyLoaded","time":1397.0999999046326}],"measures":[],"correlationId":"2c2373010061f3","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":368,"dbReadsTimeInMs":15,"dbConnsTimeInMs":27,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Thank you! I repeated on 10.9-11.2, not repeatable on 10.4-10.6
Version: '10.9.8-MariaDB-debug-log'
mariadbd: /10.9/sql/item.cc:10799: virtual table_map Item_direct_view_ref::used_tables() const: Assertion `fixed()' failed.
231103 14:45:48 [ERROR] mysqld got signal 6 ;
Server version: 10.9.8-MariaDB-debug-log source revision: 3e0009dc3a771e4dbf2fa4a4cf87e750453fb2eb
sql/signal_handler.cc:241(handle_fatal_signal)[0x5649245e9c1c]
/lib/x86_64-linux-gnu/libc.so.6(+0x33fd6)[0x7f2f896eafd6]
sql/item.cc:10801(Item_direct_view_ref::used_tables() const)[0x56492469e7e5]
sql/sql_select.cc:26203(get_sort_by_table(st_order*, st_order*, List<TABLE_LIST>&, unsigned long long))[0x564923eb3fb8]
sql/sql_select.cc:5714(make_join_statistics(JOIN*, List<TABLE_LIST>&, st_dynamic_array*))[0x564923e20abe]
sql/sql_select.cc:2554(JOIN::optimize_inner())[0x564923e005db]
sql/sql_select.cc:1893(JOIN::optimize())[0x564923df9639]
sql/sql_select.cc:5093(mysql_select(THD*, TABLE_LIST*, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x564923e1b0d0]
sql/sql_select.cc:584(handle_select(THD*, LEX*, select_result*, unsigned long))[0x564923deaeeb]
sql/sql_parse.cc:6288(execute_sqlcom_select(THD*, TABLE_LIST*))[0x564923d0cdb7]
sql/sql_parse.cc:3958(mysql_execute_command(THD*, bool))[0x564923cfb5e4]
sql/sql_parse.cc:8060(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x564923d180d2]
sql/sql_parse.cc:1896(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool))[0x564923cedcaf]
sql/sql_parse.cc:1407(do_command(THD*, bool))[0x564923ceaa08]
sql/sql_connect.cc:1416(do_handle_one_connection(CONNECT*, bool))[0x5649241ae597]
sql/sql_connect.cc:1320(handle_one_connection)[0x5649241adef4]
perfschema/pfs.cc:2203(pfs_spawn_thread)[0x564924ddcc78]
nptl/pthread_create.c:478(start_thread)[0x7f2f89c05609]
Query (0x6290001092a8): SELECT t0 . c41 AS c38 FROM ( SELECT c40 AS c51 , ( SELECT c41 AS c58 FROM t0 LIMIT 1 ) - LTRIM ( 103 ) AS c2 , -69 AS c58 FROM t0 ) AS t1 JOIN t0 ON t0 . c12 = t0 . c40 WHERE OCT ( + NULLIF ( REVERSE ( c12 ) IS NOT NULL , -49 ) ) NOT LIKE LOG ( 55 NOT LIKE SUBSTRING( -34 , ABS ( 21 ) - FORMAT ( 4 IS NULL , TRUNCATE ( 74 , -1279808445404668877 ) IS NULL IS NULL ) ) , -31 ) GROUP BY c58 , c51 , c41 HAVING c51 = 53 REGEXP EXP ( t1 . c58 )