PoC:
CREATE TABLE v0 ( v1 YEAR NULL UNIQUE KEY CHECK ( v1 NOT LIKE 'x' ) ) PARTITION BY HASH ( abs ( v1 ) + v1 ) ;
|
ALTER TABLE v0 ADD COLUMN v0 JSON AS ( v1 MOD ! ( NOT CONCAT ( 'x' , DAYNAME ( 59 ) , -1 ) ) + ! - SIN ( 'x' ) DIV 'x' ) VIRTUAL ;
|
SELECT CONCAT ( 'x' 'x' 'x' 'x' 'x' 'x' , SPACE ( 68 ) , TIME_TO_SEC ( RAND ( 'x' ) ) ) ^ FALSE ;
|
INSERT IGNORE INTO v0 SET v1 = CONCAT ( concat ( 'x' ) , SPACE ( 20 ) , ASCII ( ceil ( v1 ) + '' ) ) ;
|
SELECT * FROM v0 WHERE NOT 'x' IN ( '' ) ;
|
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 = 0x7fed46179880 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)[0x7fed6b94a3c0]
|
??:0(gsignal)[0x7fed6b57803b]
|
??:0(abort)[0x7fed6b557859]
|
??:0(__cxa_throw_bad_array_new_length)[0x7fed6b7ec911]
|
??:0(std::rethrow_exception(std::__exception_ptr::exception_ptr))[0x7fed6b7f838c]
|
??:0(std::terminate())[0x7fed6b7f83f7]
|
??:0(__cxa_pure_virtual)[0x7fed6b7f9155]
|
??:0(Arg_comparator::compare_real())[0x16b78ba]
|
sql/item_cmpfunc.cc:1787(Item_func_ne::val_int())[0x16be527]
|
sql/item.h:1440(Item::to_longlong_hybrid())[0x178f17b]
|
sql/item_func.cc:1109(Item_func_plus::int_op())[0x1787ef4]
|
sql/item.cc:6802(Item::save_int_in_field(Field*, bool))[0x164cc17]
|
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/ha_partition.cc:5261(ha_partition::rnd_next(unsigned char*))[0x1f0a0ff]
|
sql/handler.cc:3393(handler::ha_rnd_next(unsigned char*))[0x15c44c4]
|
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]
|
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)[0x7fed6b93e609]
|
??:0(clone)[0x7fed6b654163]
|
|
Trying to get some variables.
|
Some pointers may be invalid and cause the dump to abort.
|
Query (0x62900008c238): SELECT * FROM v0 WHERE NOT 'x' IN ( '' )
|
- duplicates
-
MDEV-24176
Server crashes after insert in the table with virtual column generated using date_format() and if()
-
-
Closed
- links to
-
There are no comments yet on this issue.
{"report":{"fcp":1331.6999998092651,"ttfb":238.80000019073486,"pageVisibility":"visible","entityId":108866,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"f9568f3c-8022-4665-a4de-49c2a29fa8ba","navigationType":0,"readyForUser":1409.6000003814697,"redirectCount":0,"resourceLoadedEnd":1664,"resourceLoadedStart":251.19999980926514,"resourceTiming":[{"duration":437.6000003814697,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":251.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":251.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":688.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":437.6000003814697,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":251.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":251.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":689.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":455.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":251.69999980926514,"connectEnd":251.69999980926514,"connectStart":251.69999980926514,"domainLookupEnd":251.69999980926514,"domainLookupStart":251.69999980926514,"fetchStart":251.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":251.69999980926514,"responseEnd":707.3999996185303,"responseStart":707.3999996185303,"secureConnectionStart":251.69999980926514},{"duration":771.0999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":252.10000038146973,"connectEnd":252.10000038146973,"connectStart":252.10000038146973,"domainLookupEnd":252.10000038146973,"domainLookupStart":252.10000038146973,"fetchStart":252.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":252.10000038146973,"responseEnd":1023.1999998092651,"responseStart":1023.1999998092651,"secureConnectionStart":252.10000038146973},{"duration":774.6000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":252.39999961853027,"connectEnd":252.39999961853027,"connectStart":252.39999961853027,"domainLookupEnd":252.39999961853027,"domainLookupStart":252.39999961853027,"fetchStart":252.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":252.39999961853027,"responseEnd":1027,"responseStart":1027,"secureConnectionStart":252.39999961853027},{"duration":775,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":252.5,"connectEnd":252.5,"connectStart":252.5,"domainLookupEnd":252.5,"domainLookupStart":252.5,"fetchStart":252.5,"redirectEnd":0,"redirectStart":0,"requestStart":252.5,"responseEnd":1027.5,"responseStart":1027.5,"secureConnectionStart":252.5},{"duration":775.1000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":252.69999980926514,"connectEnd":252.69999980926514,"connectStart":252.69999980926514,"domainLookupEnd":252.69999980926514,"domainLookupStart":252.69999980926514,"fetchStart":252.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":252.69999980926514,"responseEnd":1027.8000001907349,"responseStart":1027.8000001907349,"secureConnectionStart":252.69999980926514},{"duration":776.1000003814697,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":252.89999961853027,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":252.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1029,"responseStart":0,"secureConnectionStart":0},{"duration":775.2999992370605,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":253.10000038146973,"connectEnd":253.10000038146973,"connectStart":253.10000038146973,"domainLookupEnd":253.10000038146973,"domainLookupStart":253.10000038146973,"fetchStart":253.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":253.10000038146973,"responseEnd":1028.3999996185303,"responseStart":1028.3999996185303,"secureConnectionStart":253.10000038146973},{"duration":775.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":253.60000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":253.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1029.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":775.1000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":253.89999961853027,"connectEnd":253.89999961853027,"connectStart":253.89999961853027,"domainLookupEnd":253.89999961853027,"domainLookupStart":253.89999961853027,"fetchStart":253.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":253.89999961853027,"responseEnd":1029,"responseStart":1029,"secureConnectionStart":253.89999961853027},{"duration":1400.6999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":262.5,"connectEnd":262.5,"connectStart":262.5,"domainLookupEnd":262.5,"domainLookupStart":262.5,"fetchStart":262.5,"redirectEnd":0,"redirectStart":0,"requestStart":262.5,"responseEnd":1663.1999998092651,"responseStart":1663.1999998092651,"secureConnectionStart":262.5},{"duration":1399,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":265,"connectEnd":265,"connectStart":265,"domainLookupEnd":265,"domainLookupStart":265,"fetchStart":265,"redirectEnd":0,"redirectStart":0,"requestStart":265,"responseEnd":1664,"responseStart":1664,"secureConnectionStart":265},{"duration":561.1000003814697,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":852.6999998092651,"connectEnd":852.6999998092651,"connectStart":852.6999998092651,"domainLookupEnd":852.6999998092651,"domainLookupStart":852.6999998092651,"fetchStart":852.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":852.6999998092651,"responseEnd":1413.8000001907349,"responseStart":1413.8000001907349,"secureConnectionStart":852.6999998092651},{"duration":396.5999994277954,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1325.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1325.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1721.8999996185303,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":71,"responseStart":239,"responseEnd":265,"domLoading":242,"domInteractive":1679,"domContentLoadedEventStart":1679,"domContentLoadedEventEnd":1717,"domComplete":2220,"loadEventStart":2220,"loadEventEnd":2220,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1669.3999996185303},{"name":"bigPipe.sidebar-id.end","time":1670.1000003814697},{"name":"bigPipe.activity-panel-pipe-id.start","time":1670.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1670.6999998092651},{"name":"activityTabFullyLoaded","time":1725.1000003814697}],"measures":[],"correlationId":"87f467eb623414","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":97,"dbReadsTimeInMs":14,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}