[MDEV-10970] Crash while loading mysqldump backup when InnoDB encryption is enabled Created: 2016-10-06 Updated: 2016-12-05 Resolved: 2016-12-02 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Encryption, Storage Engine - InnoDB, Storage Engine - XtraDB |
| Affects Version/s: | 10.1.8, 10.1.17 |
| Fix Version/s: | 10.1.19 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | encryption, innodb | ||
| Sprint: | 10.1.20 |
| Description |
|
A user saw the following crash when loading a mysqldump backup with encryption enabled in MariaDB 10.1.8:
After upgrading to 10.1.17, it is still crashing, but the stack trace is not as useful:
|
| Comments |
| Comment by Jan Lindström (Inactive) [ 2016-10-07 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Based on error log and configuration encryption related. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Geoff Montee (Inactive) [ 2016-10-13 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
When the user switched to a debug build, he started seeing this crash instead:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jan Lindström (Inactive) [ 2016-10-24 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Using empty datadir and mariadb-10.1-17 I could not repeat the issue. I imported the provided data several times both in product and debug build and did not see any assertions. However, I did following change to get more information if encryption information is already stored for tablespace but page 0 is not read.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jan Lindström (Inactive) [ 2016-10-24 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
commit 4edd4ad69807c11a2016ac1477805739270a8ee6 Follow-up: Make sure we do not reference NULL-pointer when space is being | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2016-11-02 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
encryption.innodb_encryption_tables failed with the same assertion failure once: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Geoff Montee (Inactive) [ 2016-12-02 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Should this bug have "Fix Versions" set to 10.1.19 if commit "4edd4ad69807c11a2016ac1477805739270a8ee6" was the fix? That commit seems to be included in the "mariadb-10.1.19" tag according to GitHub. https://github.com/MariaDB/server/commit/4edd4ad69807c11a2016ac1477805739270a8ee6 Or did some other commit also contribute to the fix? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jan Lindström (Inactive) [ 2016-12-05 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
It should be 10.1.19, sorry about error. |