# Run with RocksDB
|
|
CREATE OR REPLACE TABLE t1 (a INT) ENGINE=RocksDB;
|
INSERT INTO t1 VALUES (1);
|
ALTER TABLE t1 AUTO_INCREMENT 10;
|
|
# Cleanup
|
DROP TABLE t1;
|
10.2 6c0f3dd34
|
#3 <signal handler called>
|
#4 0x00007f3d0d2c9ae4 in myrocks::ha_rocksdb::load_auto_incr_value_from_index (this=0x7f3cdc0098f8) at /data/src/10.2/storage/rocksdb/ha_rocksdb.cc:5152
|
#5 0x00007f3d0d2df34c in myrocks::ha_rocksdb::prepare_inplace_alter_table (this=0x7f3cdc0098f8, altered_table=0x7f3cdc0b3ce0, ha_alter_info=0x7f3d04dd6610) at /data/src/10.2/storage/rocksdb/ha_rocksdb.cc:11737
|
#6 0x0000557afc412083 in handler::ha_prepare_inplace_alter_table (this=0x7f3cdc0098f8, altered_table=0x7f3cdc0b3ce0, ha_alter_info=0x7f3d04dd6610) at /data/src/10.2/sql/handler.cc:4210
|
#7 0x0000557afc264e01 in mysql_inplace_alter_table (thd=0x7f3cdc000b00, table_list=0x7f3cdc012538, table=0x7f3cdc0c6b10, altered_table=0x7f3cdc0b3ce0, ha_alter_info=0x7f3d04dd6610, inplace_supported=HA_ALTER_INPLACE_SHARED_LOCK_AFTER_PREPARE, target_mdl_request=0x7f3d04dd6680, alter_ctx=0x7f3d04dd7240) at /data/src/10.2/sql/sql_table.cc:7301
|
#8 0x0000557afc26a5ca in mysql_alter_table (thd=0x7f3cdc000b00, new_db=0x7f3cdc012b48 "test", new_name=0x0, create_info=0x7f3d04dd7e50, table_list=0x7f3cdc012538, alter_info=0x7f3d04dd7da0, order_num=0, order=0x0, ignore=false) at /data/src/10.2/sql/sql_table.cc:9355
|
#9 0x0000557afc2e4346 in Sql_cmd_alter_table::execute (this=0x7f3cdc012b58, thd=0x7f3cdc000b00) at /data/src/10.2/sql/sql_alter.cc:324
|
#10 0x0000557afc19eedc in mysql_execute_command (thd=0x7f3cdc000b00) at /data/src/10.2/sql/sql_parse.cc:6224
|
#11 0x0000557afc1a3a48 in mysql_parse (thd=0x7f3cdc000b00, rawbuf=0x7f3cdc012448 "ALTER TABLE t1 AUTO_INCREMENT 10", length=32, parser_state=0x7f3d04dd9200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:7940
|
#12 0x0000557afc191739 in dispatch_command (command=COM_QUERY, thd=0x7f3cdc000b00, packet=0x7f3cdc18baf1 "ALTER TABLE t1 AUTO_INCREMENT 10", packet_length=32, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1820
|
#13 0x0000557afc19009c in do_command (thd=0x7f3cdc000b00) at /data/src/10.2/sql/sql_parse.cc:1374
|
#14 0x0000557afc2df038 in do_handle_one_connection (connect=0x557aff461290) at /data/src/10.2/sql/sql_connect.cc:1335
|
#15 0x0000557afc2dedc5 in handle_one_connection (arg=0x557aff461290) at /data/src/10.2/sql/sql_connect.cc:1241
|
#16 0x0000557afc6fffa0 in pfs_spawn_thread (arg=0x557aff46b800) at /data/src/10.2/storage/perfschema/pfs.cc:1862
|
#17 0x00007f3d143e1494 in start_thread (arg=0x7f3d04dda700) at pthread_create.c:333
|
#18 0x00007f3d127c793f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
It is a recent regression, apparently from the last merge or post-merge changes, I didn't search for the exact commit.
{"report":{"fcp":1883.1000000238419,"ttfb":389,"pageVisibility":"visible","entityId":67485,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"40014929-4abf-4821-a93a-4f9a42514596","navigationType":0,"readyForUser":1933.2000000476837,"redirectCount":0,"resourceLoadedEnd":1472,"resourceLoadedStart":417.5,"resourceTiming":[{"duration":223.10000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":417.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":417.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":640.6000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":222.89999997615814,"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":417.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":417.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":640.8000000715256,"responseStart":0,"secureConnectionStart":0},{"duration":760.3000000715256,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":418.10000002384186,"connectEnd":418.10000002384186,"connectStart":418.10000002384186,"domainLookupEnd":418.10000002384186,"domainLookupStart":418.10000002384186,"fetchStart":418.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":641.8000000715256,"responseEnd":1178.4000000953674,"responseStart":668.9000000953674,"secureConnectionStart":418.10000002384186},{"duration":1052.8999999761581,"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":419.10000002384186,"connectEnd":419.10000002384186,"connectStart":419.10000002384186,"domainLookupEnd":419.10000002384186,"domainLookupStart":419.10000002384186,"fetchStart":419.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":642.1000000238419,"responseEnd":1472,"responseStart":659.9000000953674,"secureConnectionStart":419.10000002384186},{"duration":251.5,"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":419.3000000715256,"connectEnd":419.3000000715256,"connectStart":419.3000000715256,"domainLookupEnd":419.3000000715256,"domainLookupStart":419.3000000715256,"fetchStart":419.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":642.2000000476837,"responseEnd":670.8000000715256,"responseStart":665.2000000476837,"secureConnectionStart":419.3000000715256},{"duration":256.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":419.5,"connectEnd":419.5,"connectStart":419.5,"domainLookupEnd":419.5,"domainLookupStart":419.5,"fetchStart":419.5,"redirectEnd":0,"redirectStart":0,"requestStart":642.2000000476837,"responseEnd":675.6000000238419,"responseStart":671.4000000953674,"secureConnectionStart":419.5},{"duration":255.79999995231628,"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":419.7000000476837,"connectEnd":419.7000000476837,"connectStart":419.7000000476837,"domainLookupEnd":419.7000000476837,"domainLookupStart":419.7000000476837,"fetchStart":419.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":642.4000000953674,"responseEnd":675.5,"responseStart":670.9000000953674,"secureConnectionStart":419.7000000476837},{"duration":221.69999992847443,"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":419.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":419.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":641.6000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":262.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":420,"connectEnd":420,"connectStart":420,"domainLookupEnd":420,"domainLookupStart":420,"fetchStart":420,"redirectEnd":0,"redirectStart":0,"requestStart":651.2000000476837,"responseEnd":682.7000000476837,"responseStart":675.7000000476837,"secureConnectionStart":420},{"duration":221.60000002384186,"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":420.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":420.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":641.8000000715256,"responseStart":0,"secureConnectionStart":0},{"duration":262.7999999523163,"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":420.3000000715256,"connectEnd":420.3000000715256,"connectStart":420.3000000715256,"domainLookupEnd":420.3000000715256,"domainLookupStart":420.3000000715256,"fetchStart":420.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":651.7000000476837,"responseEnd":683.1000000238419,"responseStart":678.3000000715256,"secureConnectionStart":420.3000000715256},{"duration":972.7000000476837,"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":421.10000002384186,"connectEnd":421.10000002384186,"connectStart":421.10000002384186,"domainLookupEnd":421.10000002384186,"domainLookupStart":421.10000002384186,"fetchStart":421.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":857.6000000238419,"responseEnd":1393.8000000715256,"responseStart":1287.4000000953674,"secureConnectionStart":421.10000002384186},{"duration":963.2999999523163,"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":431.3000000715256,"connectEnd":431.3000000715256,"connectStart":431.3000000715256,"domainLookupEnd":431.3000000715256,"domainLookupStart":431.3000000715256,"fetchStart":431.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":966.6000000238419,"responseEnd":1394.6000000238419,"responseStart":1326.3000000715256,"secureConnectionStart":431.3000000715256},{"duration":225.29999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1323.8000000715256,"connectEnd":1323.8000000715256,"connectStart":1323.8000000715256,"domainLookupEnd":1323.8000000715256,"domainLookupStart":1323.8000000715256,"fetchStart":1323.8000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":1485.8000000715256,"responseEnd":1549.1000000238419,"responseStart":1520.4000000953674,"secureConnectionStart":1323.8000000715256}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":79,"responseStart":388,"responseEnd":430,"domLoading":392,"domInteractive":2074,"domContentLoadedEventStart":2074,"domContentLoadedEventEnd":2122,"domComplete":2953,"loadEventStart":2953,"loadEventEnd":2953,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2048.9000000953674},{"name":"bigPipe.sidebar-id.end","time":2049.8000000715256},{"name":"bigPipe.activity-panel-pipe-id.start","time":2050},{"name":"bigPipe.activity-panel-pipe-id.end","time":2051.9000000953674},{"name":"activityTabFullyLoaded","time":2140.7000000476837}],"measures":[],"correlationId":"a1947e57e3450d","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":106,"dbReadsTimeInMs":11,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
We crash here:
Field *field =
table->key_info[table->s->next_number_index].key_part[0].field;
and we crash because
(gdb) p table->key_info[0]
Cannot access memory at address 0x0
and this "makes sense" because the table doesn't have any indexes.