Bug #46628 server hang and crash
Submitted: 10 Aug 15:13 Modified: 20 Oct 11:48
Reporter: Miroslav Mastný
Status: Open
Category:Server: InnoDB Severity:S1 (Critical)
Version:5.0.67, 5.0.84, .1 OS:Microsoft Windows (XP Prof)
Assigned to: Target Version:

[10 Aug 15:13] Miroslav Mastný
Description:
Server hang and crash after timeout, select max(autoincrement_column) and insert without
autoincrement_column value to innodb always active.

Computer was changed, database engine reinstalled, database structure recreated, all
MyISAM tables repaired.

Query executed from C client: mysql_version.h
#define PROTOCOL_VERSION		10
#define MYSQL_SERVER_VERSION		"4.1.15"

Error log attached.

How to repeat:
Propably execute same queries to deadlock
[10 Aug 15:30] Miguel Solorzano
Thank you for the bug report. Could you please provide the dump file (with insert
statements) and the queries involved?. Thanks in advance.
[10 Aug 15:40] Miroslav Mastný
Is sorry, but i cannot find any dump file. I will send you next time. Where will be
requested dump file located?
[10 Aug 15:51] Miguel Solorzano
Thank you for the feedback. The dump file you need to create it for example with mysqldump
client tool so we can create the database to run the queries against. Thanks in advance.
[11 Aug 12:37] Sveta Smirnova
Thank you for the feedback.

I can not repeat described behavior using generic test.

Please explain how you run these problem queries. Do you use transactions? Is it possible
if you run other queries in same transactions before these 2 problem statements?
[13 Aug 11:59] Susanne Ebrecht
Which MySQL version do you use?
[13 Aug 12:01] Miroslav Mastný
Look for header (Version:     5.0.67/5.0.84)
[13 Aug 12:44] Susanne Ebrecht
This looks like something got wrong during upgrading.

Use ALTER TABLE <your-innodb-tables> ENGINE=INNODB;

This will copy the table. Which means it will refresh it.

I think something happens to indexes or whatever else on your innodb table during
upgrade.
[13 Aug 13:32] Miroslav Mastný
Table was previously completelly rebuilded (create detection_cameras_new, insert all
records from detection_cameras, rename tables), problem stay.
[13 Aug 13:58] Susanne Ebrecht
Please show output from:

SHOW VARIABLES LIKE '%isolation%';
[13 Aug 14:01] Miroslav Mastný
'tx_isolation', 'REPEATABLE-READ'

current version is 5.0.67 (seems to be little more stable)
[21 Sep 12:11] Sveta Smirnova
Thank you for the feedback.

I still can not repeat problem described. Also you have a lot of records "mysqld got
exception 0xc0000005 ;" This can show memory failures also. Please check you RAM.
[21 Sep 12:12] Sveta Smirnova
Please also indicate accurate version of Windows and MySQL package do you run.
[22 Sep 11:47] Sveta Smirnova
Thank you for the feedback.

> Computer was completelly changed, RAM problem is implausible.

Was it same hardware?
[22 Sep 14:33] Miroslav Mastný
No
[20 Oct 11:29] Miroslav Mastný
We upgrade to version 5.1.39, problem stay (server crashes in few hours). New error log
attached.

Do you have any new information or any debug version to more debug output?
[20 Oct 11:40] Valeriy Kravchuk
In the last case I see assertion failure and (forced) crash because of InnoDB flushing
buffer pool and blocking other thread(s) from working with it for too long. 

So, please, send your current my.ini file content. How much RAM do you have in this
system and is it 32-bit or 64-bit OS?
[20 Oct 11:48] Miroslav Mastný
32-bit OS, 2GB memory (1GB free)

My second (testing) server generate same deadlocks, but does't crash.