CREATE TABLE t1 (b INT);
|
CREATE TEMPORARY TABLE t1 (a INT) ENGINE=Aria ROW_FORMAT=DYNAMIC;
|
INSERT INTO t1 VALUES (1);
|
DELETE FROM t1 LIMIT 2;
|
OPTIMIZE TABLE t1;
|
INSERT INTO t1 VALUES (1),(2);
|
--error 0,ER_CRASHED_ON_USAGE
|
ALTER TABLE t1 CHANGE COLUMN IF EXISTS x x INT;
|
ALTER TABLE t1;
|
|
# Cleanup
|
DROP TEMPORARY TABLE t1;
|
DROP TABLE t1;
|
Please note that the first ALTER failing with ER_CRASHED_ON_USAGE is already a problem, and is the primary one; it is just masked in the test case to allow it to continue and reach the assertion failure.
MariaDB [test]> ALTER TABLE t1 CHANGE COLUMN IF EXISTS x x INT;
|
ERROR 1194 (HY000): Table 't1' is marked as crashed and should be repaired
|
10.2 b90918da
|
mysqld: /data/src/10.2/sql/sql_error.cc:380: void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*): Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed.
|
190525 17:07:02 [ERROR] mysqld got signal 6 ;
|
|
#6 0x00007f68d3bece67 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x562b4c0802b0 "!is_set() || (m_status == DA_OK_BULK && is_bulk_op())", file=file@entry=0x562b4c0801e8 "/data/src/10.2/sql/sql_error.cc", line=line@entry=380, function=function@entry=0x562b4c080600 <Diagnostics_area::set_ok_status(unsigned long long, unsigned long long, char const*)::__PRETTY_FUNCTION__> "void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*)") at assert.c:92
|
#7 0x00007f68d3becf12 in __GI___assert_fail (assertion=0x562b4c0802b0 "!is_set() || (m_status == DA_OK_BULK && is_bulk_op())", file=0x562b4c0801e8 "/data/src/10.2/sql/sql_error.cc", line=380, function=0x562b4c080600 <Diagnostics_area::set_ok_status(unsigned long long, unsigned long long, char const*)::__PRETTY_FUNCTION__> "void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*)") at assert.c:101
|
#8 0x0000562b4b5c5d51 in Diagnostics_area::set_ok_status (this=0x7f68bc005ca0, affected_rows=0, last_insert_id=0, message=0x7f68cdf1e290 "Records: 0 Duplicates: 0 Warnings: 2") at /data/src/10.2/sql/sql_error.cc:380
|
#9 0x0000562b4b578fa3 in my_ok (thd=0x7f68bc000b00, affected_rows=0, id=0, message=0x7f68cdf1e290 "Records: 0 Duplicates: 0 Warnings: 2") at /data/src/10.2/sql/sql_class.h:4534
|
#10 0x0000562b4b6c92f9 in mysql_alter_table (thd=0x7f68bc000b00, new_db=0x7f68bc012b30 "test", new_name=0x0, create_info=0x7f68cdf1ee60, table_list=0x7f68bc012520, alter_info=0x7f68cdf1edb0, order_num=0, order=0x0, ignore=false) at /data/src/10.2/sql/sql_table.cc:9091
|
#11 0x0000562b4b744e7f in Sql_cmd_alter_table::execute (this=0x7f68bc012b38, thd=0x7f68bc000b00) at /data/src/10.2/sql/sql_alter.cc:321
|
#12 0x0000562b4b5fbb96 in mysql_execute_command (thd=0x7f68bc000b00) at /data/src/10.2/sql/sql_parse.cc:6233
|
#13 0x0000562b4b600cba in mysql_parse (thd=0x7f68bc000b00, rawbuf=0x7f68bc012458 "ALTER TABLE t1", length=14, parser_state=0x7f68cdf20200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:8020
|
#14 0x0000562b4b5ee50e in dispatch_command (command=COM_QUERY, thd=0x7f68bc000b00, packet=0x7f68bc08d891 "ALTER TABLE t1", packet_length=14, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1833
|
#15 0x0000562b4b5ece62 in do_command (thd=0x7f68bc000b00) at /data/src/10.2/sql/sql_parse.cc:1386
|
#16 0x0000562b4b73fb38 in do_handle_one_connection (connect=0x562b4e0154e0) at /data/src/10.2/sql/sql_connect.cc:1335
|
#17 0x0000562b4b73f8b8 in handle_one_connection (arg=0x562b4e0154e0) at /data/src/10.2/sql/sql_connect.cc:1241
|
#18 0x0000562b4bf6c008 in pfs_spawn_thread (arg=0x562b4e038790) at /data/src/10.2/storage/perfschema/pfs.cc:1862
|
#19 0x00007f68d57614a4 in start_thread (arg=0x7f68cdf21700) at pthread_create.c:456
|
#20 0x00007f68d3ca9d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
|
The second statement doesn't have to be ALTER, for example, SHOW CREATE TABLE and TRUNCATE also cause the assertion failure.
Other statements, such as SELECT, cause another ER_CRASHED_ON_USAGE.
Non-debug build doesn't crash, but it produces the same ER_CRASHED_ON_USAGE.
{"report":{"fcp":791.2999999523163,"ttfb":145.70000004768372,"pageVisibility":"visible","entityId":76262,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"0d5079d0-c8e0-48a4-aa78-02203c4bea65","navigationType":0,"readyForUser":856,"redirectCount":0,"resourceLoadedEnd":521.6000000238419,"resourceLoadedStart":153.60000002384186,"resourceTiming":[{"duration":171.60000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":153.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":153.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":325.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":171.39999997615814,"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":153.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":153.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":325.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":180.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":154,"connectEnd":154,"connectStart":154,"domainLookupEnd":154,"domainLookupStart":154,"fetchStart":154,"redirectEnd":0,"redirectStart":0,"requestStart":154,"responseEnd":334.5,"responseStart":334.5,"secureConnectionStart":154},{"duration":216,"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":154.20000004768372,"connectEnd":154.20000004768372,"connectStart":154.20000004768372,"domainLookupEnd":154.20000004768372,"domainLookupStart":154.20000004768372,"fetchStart":154.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":154.20000004768372,"responseEnd":370.2000000476837,"responseStart":370.2000000476837,"secureConnectionStart":154.20000004768372},{"duration":219.80000007152557,"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":154.29999995231628,"connectEnd":154.29999995231628,"connectStart":154.29999995231628,"domainLookupEnd":154.29999995231628,"domainLookupStart":154.29999995231628,"fetchStart":154.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":154.29999995231628,"responseEnd":374.10000002384186,"responseStart":374.10000002384186,"secureConnectionStart":154.29999995231628},{"duration":221.20000004768372,"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":154.39999997615814,"connectEnd":154.39999997615814,"connectStart":154.39999997615814,"domainLookupEnd":154.39999997615814,"domainLookupStart":154.39999997615814,"fetchStart":154.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":154.39999997615814,"responseEnd":375.60000002384186,"responseStart":375.60000002384186,"secureConnectionStart":154.39999997615814},{"duration":223.39999997615814,"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":154.5,"connectEnd":154.5,"connectStart":154.5,"domainLookupEnd":154.5,"domainLookupStart":154.5,"fetchStart":154.5,"redirectEnd":0,"redirectStart":0,"requestStart":154.5,"responseEnd":377.89999997615814,"responseStart":377.89999997615814,"secureConnectionStart":154.5},{"duration":224.39999997615814,"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":154.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":154.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":379,"responseStart":0,"secureConnectionStart":0},{"duration":224.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":154.70000004768372,"connectEnd":154.70000004768372,"connectStart":154.70000004768372,"domainLookupEnd":154.70000004768372,"domainLookupStart":154.70000004768372,"fetchStart":154.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":154.70000004768372,"responseEnd":379.10000002384186,"responseStart":379.10000002384186,"secureConnectionStart":154.70000004768372},{"duration":225.5,"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":154.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":154.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":380.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":225.39999997615814,"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":155,"connectEnd":155,"connectStart":155,"domainLookupEnd":155,"domainLookupStart":155,"fetchStart":155,"redirectEnd":0,"redirectStart":0,"requestStart":155,"responseEnd":380.39999997615814,"responseStart":380.39999997615814,"secureConnectionStart":155},{"duration":333,"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":155.89999997615814,"connectEnd":155.89999997615814,"connectStart":155.89999997615814,"domainLookupEnd":155.89999997615814,"domainLookupStart":155.89999997615814,"fetchStart":155.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":155.89999997615814,"responseEnd":488.89999997615814,"responseStart":488.7999999523163,"secureConnectionStart":155.89999997615814},{"duration":365.60000002384186,"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":156,"connectEnd":156,"connectStart":156,"domainLookupEnd":156,"domainLookupStart":156,"fetchStart":156,"redirectEnd":0,"redirectStart":0,"requestStart":156,"responseEnd":521.6000000238419,"responseStart":521.6000000238419,"secureConnectionStart":156},{"duration":300.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":561.7000000476837,"connectEnd":561.7000000476837,"connectStart":561.7000000476837,"domainLookupEnd":561.7000000476837,"domainLookupStart":561.7000000476837,"fetchStart":561.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":561.7000000476837,"responseEnd":862.2000000476837,"responseStart":862.2000000476837,"secureConnectionStart":561.7000000476837}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":3,"responseStart":146,"responseEnd":149,"domLoading":150,"domInteractive":914,"domContentLoadedEventStart":914,"domContentLoadedEventEnd":950,"domComplete":1765,"loadEventStart":1765,"loadEventEnd":1766,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":898.2000000476837},{"name":"bigPipe.sidebar-id.end","time":898.8999999761581},{"name":"bigPipe.activity-panel-pipe-id.start","time":899},{"name":"bigPipe.activity-panel-pipe-id.end","time":901.2000000476837},{"name":"activityTabFullyLoaded","time":954.7000000476837}],"measures":[],"correlationId":"28b1605d1f9c0e","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":84,"dbReadsTimeInMs":15,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}