Stack trace from bb-10.1-jan-encryption commit 549ed8c69b29050135bcdd045870dccd56b46d3b
#3 <signal handler called>
#4 0x00007f85f461d492 in page_cur_is_after_last (cur=0x7f85f3bcf978) at storage/xtradb/include/page0cur.ic:152
#5 0x00007f85f461d57c in page_cur_move_to_next (cur=0x7f85f3bcf978) at storage/xtradb/include/page0cur.ic:196
#6 0x00007f85f4621a6f in row_merge_read_clustered_index (trx=0x7f85db99a678, table=0x7f85db8f8070, old_table=0x7f85db981378, new_table=0x7f85db9815f8, online=true, index=0x7f85db81f070, fts_sort_idx=0x0, psort_info=0x0, files=0x7f85db860b78, key_numbers=0x7f85db81f078, n_index=1, add_cols=0x0, col_map=0x7f85db81f0c0, add_autoinc=18446744073709551615, sequence=..., block=0x7f85e98ff000 <Address 0x7f85e98ff000 out of bounds>, pct_cost=50) at storage/xtradb/row/row0merge.cc:1436
#7 0x00007f85f4626ef7 in row_merge_build_indexes (trx=0x7f85db99a678, old_table=0x7f85db981378, new_table=0x7f85db9815f8, online=true, indexes=0x7f85db81f070, key_numbers=0x7f85db81f078, n_indexes=1, table=0x7f85db8f8070, add_cols=0x0, col_map=0x7f85db81f0c0, add_autoinc=18446744073709551615, sequence=...) at storage/xtradb/row/row0merge.cc:3772
#8 0x00007f85f454a8be in ha_innobase::inplace_alter_table (this=0x7f85db87d088, altered_table=0x7f85db8f8070, ha_alter_info=0x7f85f3bd0630) at storage/xtradb/handler/handler0alter.cc:4076
#9 0x00007f85f41fb981 in handler::ha_inplace_alter_table (this=0x7f85db87d088, altered_table=0x7f85db8f8070, ha_alter_info=0x7f85f3bd0630) at sql/handler.h:3671
#10 0x00007f85f41f39eb in mysql_inplace_alter_table (thd=0x7f85e54dc070, table_list=0x7f85db8e4170, table=0x7f85db89ea70, altered_table=0x7f85db8f8070, ha_alter_info=0x7f85f3bd0630, inplace_supported=HA_ALTER_INPLACE_NO_LOCK_AFTER_PREPARE, target_mdl_request=0x7f85f3bd06a0, alter_ctx=0x7f85f3bd1230) at sql/sql_table.cc:7058
#11 0x00007f85f41f83ab in mysql_alter_table (thd=0x7f85e54dc070, new_db=0x7f85db8e4750 "test", new_name=0x0, create_info=0x7f85f3bd1e20, table_list=0x7f85db8e4170, alter_info=0x7f85f3bd1d90, order_num=0, order=0x0, ignore=false) at sql/sql_table.cc:8864
#12 0x00007f85f4268995 in Sql_cmd_alter_table::execute (this=0x7f85db8e4760, thd=0x7f85e54dc070) at sql/sql_alter.cc:325
#13 0x00007f85f413ddcb in mysql_execute_command (thd=0x7f85e54dc070) at sql/sql_parse.cc:5607
#14 0x00007f85f41420df in mysql_parse (thd=0x7f85e54dc070, rawbuf=0x7f85db8e4088 "alter table t1 engine=InnoDB", length=28, parser_state=0x7f85f3bd31a0) at sql/sql_parse.cc:7208
#15 0x00007f85f4130e63 in dispatch_command (command=COM_QUERY, thd=0x7f85e54dc070, packet=0x7f85eb3f5071 "alter table t1 engine=InnoDB", packet_length=28) at sql/sql_parse.cc:1475
#16 0x00007f85f412fb89 in do_command (thd=0x7f85e54dc070) at sql/sql_parse.cc:1097
#17 0x00007f85f4263ed1 in do_handle_one_connection (thd_arg=0x7f85e54dc070) at sql/sql_connect.cc:1350
#18 0x00007f85f4263c22 in handle_one_connection (arg=0x7f85e54dc070) at sql/sql_connect.cc:1262
#19 0x00007f85f4829fe7 in pfs_spawn_thread (arg=0x7f85e54d4d70) at storage/perfschema/pfs.cc:1860
#20 0x00007f85f3814b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#21 0x00007f85f16a095d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
Test flow
- start server with encryption and valid keys 1 and 4;
- create innodb table with key 4, insert some data;
- restart server with the same key 1 and different key 4;
- try to select from the table (error);
- try to discard tablespace (error);
- try to alter the table (ALTER TABLE .. ENGINE=InnoDB)
Note: innodb_stats_persistent is important for the test flow, so it's reset to the default ON (normally MTR turns it off). An issue with its unexpected importance will be filed separately.
MDEV-8750: Server crashes in page_cur_is_after_last on altering table using a wrong encryption key
Analysis: Server tried to continue reading tablespace using a cursor after
we had resolved that pages in the tablespace can't be decrypted.
Fixed by addind check is tablespace still encrypted.
Jan Lindström (Inactive)
added a comment - commit e04723d754ffff6c532190205d0f3a5a7033b310
Author: Jan Lindström <jan.lindstrom@mariadb.com>
Date: Fri Sep 4 20:09:20 2015 +0300
MDEV-8750 : Server crashes in page_cur_is_after_last on altering table using a wrong encryption key
Analysis: Server tried to continue reading tablespace using a cursor after
we had resolved that pages in the tablespace can't be decrypted.
Fixed by addind check is tablespace still encrypted.
People
Jan Lindström (Inactive)
Elena Stepanova
Votes:
0Vote for this issue
Watchers:
2Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":843.3999998569489,"ttfb":207,"pageVisibility":"visible","entityId":52957,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"1ad1c2e6-b6d6-40f8-83fc-4d06d581769a","navigationType":0,"readyForUser":964.0999999046326,"redirectCount":0,"resourceLoadedEnd":573.3999998569489,"resourceLoadedStart":212.29999995231628,"resourceTiming":[{"duration":9.799999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":212.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":212.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":222.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":10.399999856948853,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/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":212.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":212.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":222.89999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":216.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/b09d0d077992e4331b5f9ec0d3ec448c-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":212.59999990463257,"connectEnd":212.59999990463257,"connectStart":212.59999990463257,"domainLookupEnd":212.59999990463257,"domainLookupStart":212.59999990463257,"fetchStart":212.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":225.69999980926514,"responseEnd":429.2999999523163,"responseStart":252.79999995231628,"secureConnectionStart":212.59999990463257},{"duration":360.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/b47ab3df14096803b180217eb8482517-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/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":212.69999980926514,"connectEnd":212.69999980926514,"connectStart":212.69999980926514,"domainLookupEnd":212.69999980926514,"domainLookupStart":212.69999980926514,"fetchStart":212.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":229.29999995231628,"responseEnd":573.3999998569489,"responseStart":283,"secureConnectionStart":212.69999980926514},{"duration":48.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/6c569cbf8087ab04e40d0bef98627457-CDN/lu2bsh/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":212.79999995231628,"connectEnd":212.79999995231628,"connectStart":212.79999995231628,"domainLookupEnd":212.79999995231628,"domainLookupStart":212.79999995231628,"fetchStart":212.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":230.29999995231628,"responseEnd":261.69999980926514,"responseStart":255.79999995231628,"secureConnectionStart":212.79999995231628},{"duration":49.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":212.89999985694885,"connectEnd":212.89999985694885,"connectStart":212.89999985694885,"domainLookupEnd":212.89999985694885,"domainLookupStart":212.89999985694885,"fetchStart":212.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":231,"responseEnd":262,"responseStart":257.39999985694885,"secureConnectionStart":212.89999985694885},{"duration":49.299999952316284,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":212.89999985694885,"connectEnd":212.89999985694885,"connectStart":212.89999985694885,"domainLookupEnd":212.89999985694885,"domainLookupStart":212.89999985694885,"fetchStart":212.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":233.79999995231628,"responseEnd":262.19999980926514,"responseStart":258.5,"secureConnectionStart":212.89999985694885},{"duration":15.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bsh/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":213,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":213,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":228.5,"responseStart":0,"secureConnectionStart":0},{"duration":49.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":213.19999980926514,"connectEnd":213.19999980926514,"connectStart":213.19999980926514,"domainLookupEnd":213.19999980926514,"domainLookupStart":213.19999980926514,"fetchStart":213.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":234.5,"responseEnd":262.5,"responseStart":259.89999985694885,"secureConnectionStart":213.19999980926514},{"duration":12.700000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bsh/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":217.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":217.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":230.5,"responseStart":0,"secureConnectionStart":0},{"duration":47,"initiatorType":"script","name":"https://jira.mariadb.org/s/81b5d7c27af3ebc078cc4a36383678ba-CDN/lu2bsh/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":218,"connectEnd":218,"connectStart":218,"domainLookupEnd":218,"domainLookupStart":218,"fetchStart":218,"redirectEnd":0,"redirectStart":0,"requestStart":237.59999990463257,"responseEnd":265,"responseStart":262.7999999523163,"secureConnectionStart":218},{"duration":302.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":219.39999985694885,"connectEnd":219.39999985694885,"connectStart":219.39999985694885,"domainLookupEnd":219.39999985694885,"domainLookupStart":219.39999985694885,"fetchStart":219.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":255.09999990463257,"responseEnd":521.7999999523163,"responseStart":511.89999985694885,"secureConnectionStart":219.39999985694885},{"duration":302.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":219.5,"connectEnd":219.5,"connectStart":219.5,"domainLookupEnd":219.5,"domainLookupStart":219.5,"fetchStart":219.5,"redirectEnd":0,"redirectStart":0,"requestStart":255.69999980926514,"responseEnd":522,"responseStart":513.2999999523163,"secureConnectionStart":219.5},{"duration":97,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":574.6999998092651,"connectEnd":574.6999998092651,"connectStart":574.6999998092651,"domainLookupEnd":574.6999998092651,"domainLookupStart":574.6999998092651,"fetchStart":574.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":640.5999999046326,"responseEnd":671.6999998092651,"responseStart":670.1999998092651,"secureConnectionStart":574.6999998092651},{"duration":186.79999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":796.5,"connectEnd":796.5,"connectStart":796.5,"domainLookupEnd":796.5,"domainLookupStart":796.5,"fetchStart":796.5,"redirectEnd":0,"redirectStart":0,"requestStart":951.1999998092651,"responseEnd":983.2999999523163,"responseStart":981.6999998092651,"secureConnectionStart":796.5},{"duration":151,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":835.5999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":835.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":986.5999999046326,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":24,"domainLookupEnd":32,"connectStart":32,"connectEnd":50,"secureConnectionStart":40,"requestStart":51,"responseStart":207,"responseEnd":217,"domLoading":211,"domInteractive":1024,"domContentLoadedEventStart":1024,"domContentLoadedEventEnd":1074,"domComplete":1348,"loadEventStart":1348,"loadEventEnd":1349,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1006.8999998569489},{"name":"bigPipe.sidebar-id.end","time":1007.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1007.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":1008.5999999046326},{"name":"activityTabFullyLoaded","time":1085.6999998092651}],"measures":[],"correlationId":"c8d6cf8ee1a668","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":75,"dbReadsTimeInMs":10,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
commit e04723d754ffff6c532190205d0f3a5a7033b310
Author: Jan Lindström <jan.lindstrom@mariadb.com>
Date: Fri Sep 4 20:09:20 2015 +0300
MDEV-8750: Server crashes in page_cur_is_after_last on altering table using a wrong encryption keyAnalysis: Server tried to continue reading tablespace using a cursor after
we had resolved that pages in the tablespace can't be decrypted.
Fixed by addind check is tablespace still encrypted.