[MDEV-5029] Crash in MariaDB 5.5.33 with .frm from older MariaDB release Created: 2013-09-18 Updated: 2014-01-29 Resolved: 2013-09-18 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.33 |
| Fix Version/s: | 5.5.33a |
| Type: | Bug | Priority: | Critical |
| Reporter: | Kolbe Kegel (Inactive) | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
An frm file found "in the wild" had 0x2b as its 4th byte. This "works" fine in MariaDB <5.5.33 but causes crashes in MariaDB 5.5.33. Changing this byte in the .frm file to 0x2a allows the table to be used in MariaDB 5.5.33, but the first use gives this warning:
It is not clear how this .frm file was originally created, but I am assured that it was generated by MariaDB. Stacktrace:
|
| Comments |
| Comment by Kolbe Kegel (Inactive) [ 2013-09-18 ] |
|
Sorry, I should specify that this is an Aria table and is supposed to be an Aria table. It was, about a year ago, converted to Aria from MyISAM. I haven't done too much investigation into what version of MariaDB might have been used at the time or anything like that... ALTER TABLE ... ENGINE=ARIA; seems to fix this and put the correct engine ID (0x2a) into the .frm file. |
| Comment by Jean Weisbuch [ 2013-09-18 ] |
|
Modifying the 4th byte to 0x2b on a MyISAM table does exactly the same : works as if nothing were wrong on MariaDB 5.5.32 but crashes on 5.5.33. Here is what i got on 5.5.33 if i try to do a SELECT on the table or a SHOW TABLE STATUS (i can do both without any error on the logs on 5.5.32) : ps: i used the same table structure as the original crashing .frm for my test : http://paste.karbowiak.dk/84e86c5921f0eb3ede3d427295e4dd421bfbb0a2/ |
| Comment by Jean Weisbuch [ 2013-09-18 ] |
|
If you want to check that you don't have one of these frm file with a bad value (don't forget to adjust to your datadir if its not /var/lib/mysql/) : It will return a list of frm files that has this DB_TYPE then if the tables are Aria ones, you will hit the bug. |
| Comment by Sergei Golubchik [ 2013-09-18 ] |
|
For the record:
|
| Comment by Daniel Bartholomew [ 2014-01-29 ] |
|
http://bazaar.launchpad.net/~maria-captains/maria/5.5/revision/4041 |