[MDEV-7538] Wrong constraint (TINYINT or MEDIUMINT and INT) causes server crash Created: 2015-02-03 Updated: 2015-02-04 Due: 2015-02-24 Resolved: 2015-02-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB, Storage Engine - XtraDB |
| Affects Version/s: | 5.5.40, 5.5.41 |
| Fix Version/s: | 5.5.42 |
| Type: | Bug | Priority: | Major |
| Reporter: | Michal Zubkowicz | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Ubuntu 14.04 |
||
| Attachments: |
|
| Description |
|
When I'm trying to create such tables server is killed. Logs in attachment CREATE TABLE orders_products CREATE TABLE dashboard I was trying already to drop database, recreate, etc. |
| Comments |
| Comment by Elena Stepanova [ 2015-02-03 ] |
|
Hi, Please paste the output that you get in the client when you try to execute the statements; paste or attach the output of SHOW VARIABLES statement and your server error log. Thanks. |
| Comment by Michal Zubkowicz [ 2015-02-03 ] |
|
Error message is: After this server is restarted. Table is created but without columns, when I'm deleting table frm file is not deleted. I've already attached error log, and I'm attaching output of show variables |
| Comment by Michal Zubkowicz [ 2015-02-03 ] |
|
Got reason! It was caused by wrong constraint (TINYINT and INT). Newest version reported another error: |
| Comment by Michal Zubkowicz [ 2015-02-04 ] |
|
Today was update of MariaDB in Ubuntu but problem still exists: |
| Comment by Jan Lindström (Inactive) [ 2015-02-04 ] |
|
Could you please explain step by step what you try to do ? |
| Comment by Michal Zubkowicz [ 2015-02-04 ] |
|
I'm trying to run such query: CREATE TABLE test6 CREATE TABLE test7 Of course it's wrong, but it causes default installation MariaDB to crash with attached earlier stacktrace on Ubuntu 14.04 |
| Comment by Jan Lindström (Inactive) [ 2015-02-04 ] |
|
I see, but that does not repeat the crash, you get error 150 as you should get. |
| Comment by Michal Zubkowicz [ 2015-02-04 ] |
|
Maybe I didn't provided everything to reproduce error on clean database, can I send you whole dump (300kb 7zipped) somewhere in private? |
| Comment by Jan Lindström (Inactive) [ 2015-02-04 ] |
|
Sure, jan.lindstrom@mariadb.com |
| Comment by Michal Zubkowicz [ 2015-02-04 ] |
|
Mail sent with whole dump |
| Comment by Jan Lindström (Inactive) [ 2015-02-04 ] |
|
Thanks, problem repeatable. |
| Comment by Jan Lindström (Inactive) [ 2015-02-04 ] |
|
Ok, fix found, is your database secred or can I use it on test case ? |
| Comment by Michal Zubkowicz [ 2015-02-04 ] |
|
Do you need whole database or only few tables? |
| Comment by Jan Lindström (Inactive) [ 2015-02-04 ] |
|
revno: 4420 Analysis: If wrong data types used on foreign constraint there Fix: Add guard foreign->id != NULL before trying to lookup Tested using user database where problem was repeatable. |