PoC:
CREATE TABLE v0 ( EVENTS NUMERIC AS ( REPLACE ( 'x' , 'x' , v1 IN ( DAYOFMONTH ( v1 BETWEEN 'x' AND CURRENT_USER ) = v1 ) ) ) , v1 TIMESTAMP NOT NULL ) ;
|
INSERT IGNORE INTO v0 VALUES ( ( CASE 'x' 'x' = DATE ( CONVERT ( v1 , TIME ) ) * 4206878.000000 WHEN v1 = NULL THEN v1 ELSE v1 END ) , NULL ) ;
|
SELECT 'x' IN ( SELECT 'x' FROM v0 COLUMNS NATURAL JOIN v0 WHERE v1 = -1 ) ;
|
report (compiled with ASAN):
Thread pointer: 0x62b00015e218
|
Attempting backtrace. You can use the following information to find out
|
where mysqld died. If you see no messages after this, something went
|
terribly wrong...
|
stack_bottom = 0x7f8249047880 thread_stack 0x5fc00
|
??:0(__interceptor_backtrace)[0x7cbadb]
|
mysys/stacktrace.c:212(my_print_stacktrace)[0x2a86d37]
|
sql/signal_handler.cc:0(handle_fatal_signal)[0x15af5d9]
|
sigaction.c:0(__restore_rt)[0x7f826dffa3c0]
|
sql/item_cmpfunc.cc:732(Arg_comparator::compare_datetime())[0x16b24b8]
|
sql/item_cmpfunc.cc:1763(Item_func_eq::val_int())[0x16be219]
|
sql/item_func.cc:753(Item_int_func::val_str(String*))[0x1782642]
|
sql/item_strfunc.cc:1204(Item_func_replace::val_str_internal(String*, String*))[0x1866cc6]
|
sql/item.cc:6764(Item::save_str_in_field(Field*, bool))[0x164c31e]
|
sql/item.cc:6812(Item::save_in_field(Field*, bool))[0x164ce5a]
|
sql/table.cc:8761(TABLE::update_virtual_fields(handler*, enum_vcol_update_mode))[0x1072e99]
|
??:0(handler::ha_rnd_next(unsigned char*))[0x15c4e50]
|
sql/records.cc:519(rr_sequential(READ_RECORD*))[0x930065]
|
sql/sql_select.cc:21092(sub_select(JOIN*, st_join_table*, bool))[0xd4c04e]
|
??:0(JOIN::exec_inner())[0xdc6798]
|
sql/sql_select.cc:4528(JOIN::exec())[0xdc344d]
|
??:0(subselect_single_select_engine::exec())[0x1952e44]
|
sql/item_subselect.cc:858(Item_subselect::exec())[0x1928ebc]
|
sql/item_subselect.cc:1965(Item_in_subselect::val_bool())[0x193469b]
|
sql/item_cmpfunc.cc:1638(Item_in_optimizer::val_int())[0x16bcbcb]
|
sql/sql_type.cc:7502(Type_handler::Item_send_long(Item*, Protocol*, st_value*) const)[0x13548b2]
|
sql/protocol.cc:1328(Protocol::send_result_set_row(List<Item>*))[0x920512]
|
sql/sql_class.cc:3060(select_send::send_data(List<Item>&))[0xaf940a]
|
sql/sql_select.cc:4615(JOIN::exec_inner())[0xdc7875]
|
sql/sql_select.cc:4528(JOIN::exec())[0xdc344d]
|
sql/sql_select.cc:5009(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*))[0xd4e4e9]
|
sql/sql_select.cc:543(handle_select(THD*, LEX*, select_result*, unsigned long))[0xd4d74c]
|
sql/sql_parse.cc:6252(execute_sqlcom_select(THD*, TABLE_LIST*))[0xc74411]
|
sql/sql_parse.cc:3943(mysql_execute_command(THD*, bool))[0xc609ca]
|
sql/sql_class.h:2734(THD::enter_stage(PSI_stage_info_v1 const*, char const*, char const*, unsigned int))[0xc4a67f]
|
sql/sql_parse.cc:1894(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool))[0xc41baa]
|
sql/sql_parse.cc:1404(do_command(THD*, bool))[0xc4b74c]
|
sql/sql_connect.cc:1418(do_handle_one_connection(CONNECT*, bool))[0x111f9f3]
|
sql/sql_connect.cc:0(handle_one_connection)[0x111f249]
|
perfschema/pfs.cc:2203(pfs_spawn_thread)[0x1f3f9de]
|
nptl/pthread_create.c:478(start_thread)[0x7f826dfee609]
|
??:0(clone)[0x7f826dd04163]
|
|
Trying to get some variables.
|
Some pointers may be invalid and cause the dump to abort.
|
Query (0x62900008c238): SELECT 'x' IN ( SELECT 'x' FROM v0 COLUMNS NATURAL JOIN v0 WHERE v1 = -1 )
|
- duplicates
-
MDEV-24176
Server crashes after insert in the table with virtual column generated using date_format() and if()
-
-
Closed
{"report":{"fcp":797.3000001907349,"ttfb":204,"pageVisibility":"visible","entityId":108868,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"e1821ce1-a36c-4bbe-861d-c62a1787243d","navigationType":0,"readyForUser":875.4000000953674,"redirectCount":0,"resourceLoadedEnd":1046,"resourceLoadedStart":208.5,"resourceTiming":[{"duration":183.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":208.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":208.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":391.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":183,"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":208.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":208.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":391.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":191.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":208.90000009536743,"connectEnd":208.90000009536743,"connectStart":208.90000009536743,"domainLookupEnd":208.90000009536743,"domainLookupStart":208.90000009536743,"fetchStart":208.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":208.90000009536743,"responseEnd":400.80000019073486,"responseStart":400.80000019073486,"secureConnectionStart":208.90000009536743},{"duration":258.7999999523163,"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":209.10000014305115,"connectEnd":209.10000014305115,"connectStart":209.10000014305115,"domainLookupEnd":209.10000014305115,"domainLookupStart":209.10000014305115,"fetchStart":209.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":209.10000014305115,"responseEnd":467.90000009536743,"responseStart":467.90000009536743,"secureConnectionStart":209.10000014305115},{"duration":262.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":209.20000004768372,"connectEnd":209.20000004768372,"connectStart":209.20000004768372,"domainLookupEnd":209.20000004768372,"domainLookupStart":209.20000004768372,"fetchStart":209.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":209.20000004768372,"responseEnd":471.30000019073486,"responseStart":471.30000019073486,"secureConnectionStart":209.20000004768372},{"duration":262.39999985694885,"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":209.30000019073486,"connectEnd":209.30000019073486,"connectStart":209.30000019073486,"domainLookupEnd":209.30000019073486,"domainLookupStart":209.30000019073486,"fetchStart":209.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":209.30000019073486,"responseEnd":471.7000000476837,"responseStart":471.7000000476837,"secureConnectionStart":209.30000019073486},{"duration":263.09999990463257,"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":209.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":209.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":472.5,"responseStart":0,"secureConnectionStart":0},{"duration":262.7000000476837,"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":209.40000009536743,"connectEnd":209.40000009536743,"connectStart":209.40000009536743,"domainLookupEnd":209.40000009536743,"domainLookupStart":209.40000009536743,"fetchStart":209.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":209.40000009536743,"responseEnd":472.10000014305115,"responseStart":472.10000014305115,"secureConnectionStart":209.40000009536743},{"duration":263.2999999523163,"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":209.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":209.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":472.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":262.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":209.60000014305115,"connectEnd":209.60000014305115,"connectStart":209.60000014305115,"domainLookupEnd":209.60000014305115,"domainLookupStart":209.60000014305115,"fetchStart":209.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":209.60000014305115,"responseEnd":472.5,"responseStart":472.5,"secureConnectionStart":209.60000014305115},{"duration":263.19999980926514,"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":209.80000019073486,"connectEnd":209.80000019073486,"connectStart":209.80000019073486,"domainLookupEnd":209.80000019073486,"domainLookupStart":209.80000019073486,"fetchStart":209.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":209.80000019073486,"responseEnd":473,"responseStart":473,"secureConnectionStart":209.80000019073486},{"duration":830.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":215.20000004768372,"connectEnd":215.20000004768372,"connectStart":215.20000004768372,"domainLookupEnd":215.20000004768372,"domainLookupStart":215.20000004768372,"fetchStart":215.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":215.20000004768372,"responseEnd":1045.7000000476837,"responseStart":1045.7000000476837,"secureConnectionStart":215.20000004768372},{"duration":830.7999999523163,"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":215.20000004768372,"connectEnd":215.20000004768372,"connectStart":215.20000004768372,"domainLookupEnd":215.20000004768372,"domainLookupStart":215.20000004768372,"fetchStart":215.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":215.20000004768372,"responseEnd":1046,"responseStart":1046,"secureConnectionStart":215.20000004768372},{"duration":433.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":611,"connectEnd":611,"connectStart":611,"domainLookupEnd":611,"domainLookupStart":611,"fetchStart":611,"redirectEnd":0,"redirectStart":0,"requestStart":611,"responseEnd":1044.8000001907349,"responseStart":1044.8000001907349,"secureConnectionStart":611},{"duration":309,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":776.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":776.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1085.9000000953674,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":71,"responseStart":204,"responseEnd":211,"domLoading":207,"domInteractive":1068,"domContentLoadedEventStart":1068,"domContentLoadedEventEnd":1102,"domComplete":1687,"loadEventStart":1687,"loadEventEnd":1688,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1053},{"name":"bigPipe.sidebar-id.end","time":1053.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1053.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1056.1000001430511},{"name":"activityTabFullyLoaded","time":1142.3000001907349}],"measures":[],"correlationId":"7afc42d2fa962a","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":70,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}